Class DenseSolve.LUFactor

java.lang.Object
de.labathome.trustconstr.sparse.DenseSolve.LUFactor
Enclosing class:
DenseSolve

public static final class DenseSolve.LUFactor extends Object
Factorisation of a square matrix A ready to repeatedly solve(double[]) against right-hand sides.

The factor stores LU in the LAPACK column-major layout used by dgesv; calling solve costs only a forward/back substitution.

  • Method Details

    • solve

      public double[] solve(double[] b)
      Solve A x = b reusing the captured LU.
      Parameters:
      b - length-n right-hand side; not modified
      Returns:
      length-n solution x
    • n

      public int n()
      Returns:
      the dimension of the factored matrix