Class Pivot

java.lang.Object
org.ojalgo.matrix.decomposition.Pivot

final class Pivot extends Object
  • Field Details

    • myDoneBits

      private final BitSet myDoneBits
    • myModified

      private boolean myModified
    • myOrder

      private int[] myOrder
    • myReverse

      private int[] myReverse
    • myReverseNeedsUpdate

      private boolean myReverseNeedsUpdate
    • mySign

      private int mySign
  • Constructor Details

    • Pivot

      Pivot()
    • Pivot

      Pivot(int... order)
  • Method Details

    • doReverse

      private static int[] doReverse(int[] original, int[] inverse)
    • reverse

      static int[] reverse(int[] original)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • followPermutationCycles

      private <N extends Comparable<N>, M extends Access2D<N> & Mutate2D> void followPermutationCycles(M elements, int[] order)
    • applyPivotOrder

      <N extends Comparable<N>, M extends Access2D<N> & Mutate2D> void applyPivotOrder(M arg)
      Equivalent to selecting the rows (or columns) in the pivot order, arg.rows(pivot.getOrder()).
    • applyReverseOrder

      <N extends Comparable<N>, M extends Access2D<N> & Mutate2D> void applyReverseOrder(M arg)
      Equivalent to selecting the rows (or columns) in the reverse order, arg.rows(pivot.reverseOrder()).
    • change

      void change(int ind1, int ind2)
    • cycle

      void cycle(int ind1, int ind2)
      Performs a cycle permutation on the pivot order.

      This method applies a cycle permutation that moves the element at position ind1 to position ind2, while shifting all elements in between one position to the left.

      The method only performs the cycle if ind1 is less than ind2. If ind1 is greater than or equal to ind2, no changes are made to the pivot order.

      Parameters:
      ind1 - The starting index of the cycle
      ind2 - The ending index of the cycle
    • getOrder

      int[] getOrder()
    • isModified

      boolean isModified()
    • locationOf

      int locationOf(int original)
    • reset

      void reset(int numberOf)
    • reverseOrder

      int[] reverseOrder()
    • signum

      int signum()