Dense Matrix<T>.Get Identity Method
Returns an identity matrix of the specified dimension.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A DenseMatrix<T, TSlice, TStorage2D> of the specified dimension that has ones on the main diagonal and is zero everywhere else.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static DenseMatrix<T> GetIdentity(
int dimension
)
Parameters
- dimension Int32
- An integer greater than 0.
Return Value
DenseMatrix<T>A DenseMatrix<T, TSlice, TStorage2D> of the specified dimension that has ones on the main diagonal and is zero everywhere else.