Creates a unitary matrix.
Mat One a()
a():name of a two-dimensional floating point array with the same numberof rows and columns
Mat One a() creates, from a two dimensional floating point array a() with the same number of rows and columns, an array in which the elements a(1,1), a(2,2), ...,a(n,n) are equal to 1 and all other elements are equal to 0.
OpenW # 1
Global Double a(1 ... 3, 1 ... 3)
Mat One a()
Mat Print a()
prints:
1,0,0
0,1,0
0,0,1
ArrayFill, Mat Clr, Mat Set, Mat Neg
{Created by Sjouke Hamstra; Last updated: 15/10/2014 by James Gaite}