Encog.MathUtil.Matrices.Decomposition.LUDecomposition.Det C# (CSharp) Method

Det() public method

Determinant
public Det ( ) : double
return double
        public double Det()
        {
            if (m != n)
            {
                throw new MatrixError("Matrix must be square.");
            }
            double d = pivsign;
            for (int j = 0; j < n; j++)
            {
                d *= LU[j][j];
            }
            return d;
        }