Class LUPDecomposition

java.lang.Object
org.opensourcephysics.numerics.LUPDecomposition

public class LUPDecomposition extends Object
Lower Upper Permutation (LUP) decomposition See Object Oriented Implementation of Numerical Methods by Didier H. Besset.
Author:
Didier H. Besset
  • Constructor Details

  • Method Details

    • determinant

      public double determinant()
      Gets the determinant.
      Returns:
      double[]
    • inverseMatrixComponents

      public double[][] inverseMatrixComponents()
      Calculates the inverse matrix components.
      Returns:
      the matrix inverse or null if the inverse does not exist
    • symmetrizeComponents

      public static void symmetrizeComponents(double[][] components)
      Make sure the supplied matrix components are those of a symmetric matrix
      Parameters:
      components - double
    • solve

      public double[] solve(double[] c)
      Parameters:
      c - double[]
      Returns:
      double[]
    • toString

      public String toString()
      Returns a String that represents the value of this object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the receiver