Class DenseLU

java.lang.Object
no.uib.cipr.matrix.DenseLU

public class DenseLU extends Object
Dense LU decomposition FIXME: DenseLU is broken! Fix it
  • Constructor Details

    • DenseLU

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

    • 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
    • getL

      Returns the lower triangular factor
    • getU

      public UpperTriangDenseMatrix getU()
      Returns the upper triangular factor
    • 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
    • solve

      Computes A\B, overwriting B
      Throws:
      MatrixSingularException
    • transSolve

      public DenseMatrix transSolve(DenseMatrix B) throws MatrixSingularException
      Computes AT\B, overwriting B
      Throws:
      MatrixSingularException