@issingular |

Test matrix for singularity.

Syntax: @issingular(m)

m: matrix, sym

Return: integer

Returns “1” if the square matrix or sym, m, is singular, and “0” otherwise.

A singular matrix has a determinant of 0, and cannot be inverted.

Examples

matrix m1 = @mnrnd(1, 10)

sym s1 = @inner(m1)

= @issingular(s1)

returns 1 indicating that the inner product of M1 is singular (i.e., not invertible).

Cross-references