# Returns an identity matrix.

ident = function( n )
{
    return diag( fill( scalar (n); 1.0 ) );
};


syntax highlighted by Code2HTML, v. 0.9.1