det

Syntax

det(X)

Arguments

X is a matrix.

Details

Return the determinant of matrix X. NULL values are replaced with 0 in the calculation.

Examples

$ x=1..4$2:2;
$ x;

#0

#1

1

3

2

4

$ x.det();
-2

$ x=1 2 3 6 5 4 8 7 0$3:3;
$ x;

#0

#1

#2

1

6

8

2

5

7

3

4

0

$ det(x);
42

$ x=1 2 3 6 5 4 8 7 NULL $3:3;
$ x;

#0

#1

#2

1

6

8

2

5

7

3

4

$ det(x);
42