DiagonalMatrix<T> Constructor

Constructs a new DiagonalMatrix<T>.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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