34 const SquareMatrix<Type>& matrix,
38 scalar diagProduct = 1.0;
40 for (
label i = 0; i < matrix.n(); ++i)
42 diagProduct *= matrix[i][i];
45 return sign*diagProduct;
50 Foam::scalar
Foam::det(
const SquareMatrix<Type>& matrix)
52 SquareMatrix<Type> matrixTmp = matrix;
63 Foam::scalar
Foam::det(SquareMatrix<Type>& matrix)