Matrix.CreateBanded Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

CreateBanded<T>(Int32, Int32, Int32, Int32) Constructs a new general band matrix.
CreateBanded<T>(Int32, Int32, Int32, Int32, Boolean) Constructs a new general band matrix.

CreateBanded<T>(Int32, Int32, Int32, Int32)

Constructs a new general band matrix.
C#
public static BandMatrix<T> CreateBanded<T>(
	int rowCount,
	int columnCount,
	int lowerBandwidth,
	int upperBandwidth
)

Parameters

rowCount  Int32
The number of rows.
columnCount  Int32
The number of columns.
lowerBandwidth  Int32
The number of diagonals below the main diagonal that may contain nonzero elements.
upperBandwidth  Int32
The number of diagonals above the main diagonal that may contain nonzero elements.

Type Parameters

T

Return Value

BandMatrix<T>
A BandMatrix<T>.

CreateBanded<T>(Int32, Int32, Int32, Int32, Boolean)

Constructs a new general band matrix.
C#
public static BandMatrix<T> CreateBanded<T>(
	int rowCount,
	int columnCount,
	int lowerBandwidth,
	int upperBandwidth,
	bool allocateForLUDecomposition
)

Parameters

rowCount  Int32
The number of rows.
columnCount  Int32
The number of columns.
lowerBandwidth  Int32
The number of diagonals below the main diagonal that may contain nonzero elements.
upperBandwidth  Int32
The number of diagonals above the main diagonal that may contain nonzero elements.
allocateForLUDecomposition  Boolean
Indicates whether extra space should be allocated to store the elements of the LU decomposition of the matrix.

Type Parameters

T

Return Value

BandMatrix<T>
A BandMatrix<T>.

See Also