Changes the dimensions of this matrix to those specified, adding zeros or truncating as necessary.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public void Resize(
	int rows,
	int cols
)
Visual Basic (Declaration)
Public Sub Resize ( _
	rows As Integer, _
	cols As Integer _
)
Visual C++
public:
void Resize(
	int rows, 
	int cols
)

Parameters

rows
Type: System..::.Int32
The number of rows.
cols
Type: System..::.Int32
The number of columns.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the number of rows is less than the 3.

See Also