Version

IdentityMatrix Method

Returns an N-dimensional identity Matrix.
Syntax
'Declaration
 
Public Shared Function IdentityMatrix( _
   ByVal ParamArray N() As Integer _
) As Matrix
public static Matrix IdentityMatrix( 
   params int[] N
)

Parameters

N
The dimensions of the identity Matrix.

Return Value

An N-dimensional identity Matrix.
Exceptions
ExceptionDescription
System.ArgumentException Occurs when N[i] is less than 1.
Remarks
If only one dimension is passed in, a two-dimensional square identity Matrix is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also