AngouriMath
IdentityMatrix
Method with 2 overloads
IdentityMatrix(System.Int32,System.Int32)
Summary
Creates a rectangular identity matrix
with the given size
Example
using System; using static AngouriMath.MathS; Console.WriteLine(IdentityMatrix(4).ToString(multilineFormat: true)); Console.WriteLine(IdentityMatrix(4, 3).ToString(multilineFormat: true));
Prints
Matrix[4 x 4] 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 Matrix[4 x 3] 1 0 0 0 1 0 0 0 1 0 0 0
IdentityMatrix(System.Int32)
Summary
Creates a square identity matrix
Example
using System; using static AngouriMath.MathS; Console.WriteLine(IdentityMatrix(4).ToString(multilineFormat: true)); Console.WriteLine(IdentityMatrix(4, 3).ToString(multilineFormat: true));
Prints
Matrix[4 x 4] 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 Matrix[4 x 3] 1 0 0 0 1 0 0 0 1 0 0 0
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online