Returns an identity matrix of the specified dimension.
Namespace:
Extreme.Mathematics.LinearAlgebra
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DenseMatrix<T> GetIdentity(
int dimension
)
Public Shared Function GetIdentity (
dimension As Integer
) As DenseMatrix(Of T)
public:
static DenseMatrix<T>^ GetIdentity(
int dimension
)
static member GetIdentity :
dimension : int -> DenseMatrix<'T>
Parameters
- dimension
- Type: SystemInt32
An integer greater than 0.
Return Value
Type:
DenseMatrixTA
DenseMatrixT of the specified
dimension that has ones on the main diagonal and is zero everywhere
else.
Reference