Special matrices in Rascal:

There are special functions to create matrices:

identity(n) - create n x n identity matrix
ones(n,m)   - create n x m matrix with ones
zeros(n,m)  - create n x m matrix with zeros
rand(n,m)   - create n x m matrix with [0,1] random numbers