IDN

Member Of Menu: 
Array
Argument Types: 
Real
Symbol
Array
Result Type(s): 
None
Array
Invertible: 
No
Valid In Expression: 
No
Stack Diagram: 
Real1 Array2
Array1 Array2
Symbol1

This operation returns an identity matrix. An identity matrix has values zero in all positions except along the diagonal from the top left to the bottom right whose values are all one. An identity matrix is always a square matrix.

If the argument is a real value, then the result is an identity matrix with that many rows and that many columns. If the argument is an array, it must be a square matrix. An error will be returned if it is a vector or non-square matrix. The result will be an identity matrix with the same dimensions.

Finally, if the argument is a symbol, then the value of that symbol must be a square matrix. An identity matrix of the same dimensions will then be stored at that symbol.