Diagonal Matrix<T>.Create Identity Method
Returns an identity matrix as a diagonal matrix.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
A DiagonalMatrix<T>.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static DiagonalMatrix<T> CreateIdentity(
int dimension
)
Parameters
- dimension Int32
- The size of the matrix.
Return Value
DiagonalMatrix<T>A DiagonalMatrix<T>.
Remarks
The elements of the matrix are read-only.