Matrix.CreateDiagonal<T>(Int32) Method

Constructs a new diagonal matrix.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static DiagonalMatrix<T> CreateDiagonal<T>(
	int rowCount
)

Parameters

rowCount  Int32
The number of rows and columns of the matrix.

Type Parameters

T

Return Value

DiagonalMatrix<T>
A diagonal matrix.

Remarks

Use this constructor to create a square diagonal matrix with nonzero elements on its main diagonal. The elements on the diagonal are initially set to zero.

See Also