Matrix.CreateUpperBanded Method

Definition

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

Overload List

CreateUpperBanded<T>(Int32, Int32, Int32) Constructs an upper band matrix
CreateUpperBanded<T>(Int32, Int32, Int32, MatrixDiagonal) Constructs an upper band matrix

CreateUpperBanded<T>(Int32, Int32, Int32)

Constructs an upper band matrix
C#
public static BandMatrix<T> CreateUpperBanded<T>(
	int rowCount,
	int columnCount,
	int bandwidth
)

Parameters

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

Type Parameters

T

Return Value

BandMatrix<T>
A BandMatrix<T>.

CreateUpperBanded<T>(Int32, Int32, Int32, MatrixDiagonal)

Constructs an upper band matrix
C#
public static BandMatrix<T> CreateUpperBanded<T>(
	int rowCount,
	int columnCount,
	int bandwidth,
	MatrixDiagonal matrixDiagonal
)

Parameters

rowCount  Int32
The number of rows.
columnCount  Int32
The number of columns.
bandwidth  Int32
The number of diagonals above or below the main diagonal that may contain nonzero elements.
matrixDiagonal  MatrixDiagonal
A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.

Type Parameters

T

Return Value

BandMatrix<T>
A BandMatrix<T>.

See Also