Class DenseLU


  • public class DenseLU
    extends java.lang.Object
    Dense LU decomposition FIXME: DenseLU is broken! Fix it
    • Constructor Detail

      • DenseLU

        public DenseLU​(int m,
                       int n)
        Constructor for DenseLU
        Parameters:
        m - Number of rows
        n - Number of columns
    • Method Detail

      • factorize

        public static DenseLU factorize​(Matrix A)
        Creates an LU decomposition of the given matrix
        Parameters:
        A - Matrix to decompose. Not modified
        Returns:
        The current decomposition
      • factor

        public DenseLU factor​(DenseMatrix A)
        Creates an LU decomposition of the given matrix
        Parameters:
        A - Matrix to decompose. Overwritten with the decomposition
        Returns:
        The current decomposition
      • getLU

        public DenseMatrix getLU()
        Returns the decomposition matrix
      • rcond

        public double rcond​(Matrix A,
                            Matrix.Norm norm)
        Computes the reciprocal condition number, using either the infinity norm of the 1 norm.
        Parameters:
        A - The matrix this is a decomposition of
        norm - Either Norm.One or Norm.Infinity
        Returns:
        The reciprocal condition number. Values close to unity indicate a well-conditioned system, while numbers close to zero do not.
      • getPivots

        public int[] getPivots()
        Returns the row pivots
      • isSingular

        public boolean isSingular()
        Checks for singularity