DiagonalMatrix<T> Constructor

Constructs a new DiagonalMatrix<T>.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
public DiagonalMatrix(
	int rowCount,
	int columnCount,
	Vector<T> values,
	ArrayAttributes attributes
)

Parameters

rowCount  Int32
The number of rows in the new matrix.
columnCount  Int32
The number of columns in the new matrix.
values  Vector<T>
A Vector<T> containing the components of the diagonal.
attributes  ArrayAttributes
The attributes of the new matrix.

Exceptions

ArgumentOutOfRangeException

rowCount is less than zero.

-or-

columnCount is less than zero.

See Also