Class LuFactor

java.lang.Object
jdistlib.accelerator.LuFactor

public final class LuFactor extends Object
Immutable FP64 partial-pivoted LU factorization of a square matrix.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LuFactor(int dimension, double[] packed, int[] permutation, int determinantSign)
    Creates a factor where row i came from original row permutation[i].
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    double
     
    double[]
    Returns packed unit-lower and upper factors in row-major storage.
    int[]
    Returns the new-to-original row permutation.
    double[]
    solve(double[] right)
     
    double[]
    solve(double[] right, int columns)
    Solves A*X=right; right sides use row-major dimension-by-columns storage.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LuFactor

      public LuFactor(int dimension, double[] packed, int[] permutation, int determinantSign)
      Creates a factor where row i came from original row permutation[i].
  • Method Details

    • dimension

      public int dimension()
    • packed

      public double[] packed()
      Returns packed unit-lower and upper factors in row-major storage.
    • permutation

      public int[] permutation()
      Returns the new-to-original row permutation.
    • determinantSign

      public int determinantSign()
    • logAbsDeterminant

      public double logAbsDeterminant()
    • solve

      public double[] solve(double[] right)
    • solve

      public double[] solve(double[] right, int columns)
      Solves A*X=right; right sides use row-major dimension-by-columns storage.