AIMA.Core.Util.Math.LUDecomposition.det C# (CSharp) Method

det() public method

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