Darwin Help

Back to Index

Identity

Function Identity - create an identity matrix

Calling Sequence  Identity(n)
Parameters
NameTypeDescription

n posintdimension of the matrix
Return Type  matrix(integer)
Synopsis Creates a new identity matrix of dimension n x n.
Examples
> Identity(3);
[[1, 0, 0], [0, 1, 0], [0, 0, 1]]
See also Cholesky,   convolve,   Eigenvalues,   GaussElim,   GivensElim,   matrix,   matrix_inverse,   transpose