Click or drag to resize
sqx

SQXIdentityMatrix Method

Function [Matrix] IdentityMatrix([int] n)

Namespace:  sqx
Assembly:  SQX (in SQX.dll) Version: 1.0.2.6 (1.0.2.6)
Syntax
C#
public static Matrix IdentityMatrix(
	SqlInt32 n
)

Parameters

n
Type: System.Data.SqlTypesSqlInt32
[int]

Return Value

Type: Matrix
[Matrix]
Examples
SQL
declare @A sqx.Matrix = sqx.IdentityMatrix(3)
print @A.ToString()
/*
1,0,0;
0,1,0;
0,0,1*/
See Also