Function det_

Calculate the determinant of a square matrix.

Unqual!T det_(T, Storage stor) (
  MatrixView!(T,stor) m
);

Examples

import scid.matrix;
...
auto m = matrix!double(2, 2);
m[0,0] = 1.0;  m[0,1] = 2.0;
m[1,0] = 3.0;  m[1,1] = 4.0;

auto d = det(m);
writeln(d);   // Prints "-2"