Changes the dimensions and bandwidths 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,
	int lowerBandwidth,
	int upperBandwidth
)
Visual Basic (Declaration)
Public Sub Resize ( _
	rows As Integer, _
	cols As Integer, _
	lowerBandwidth As Integer, _
	upperBandwidth As Integer _
)
Visual C++
public:
void Resize(
	int rows, 
	int cols, 
	int lowerBandwidth, 
	int upperBandwidth
)

Parameters

rows
Type: System..::.Int32
The number of rows.
cols
Type: System..::.Int32
The number of columns.
lowerBandwidth
Type: System..::.Int32
The lower bandwidth.
upperBandwidth
Type: System..::.Int32
The upper bandwidth.

Exceptions

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

See Also