Class AbstractDecomposition<N extends Comparable<N>>

java.lang.Object
org.ojalgo.matrix.decomposition.AbstractDecomposition<N>
All Implemented Interfaces:
MatrixDecomposition<N>, Structure1D, Structure2D
Direct Known Subclasses:
GenericDecomposition, RawDecomposition

abstract class AbstractDecomposition<N extends Comparable<N>> extends Object implements MatrixDecomposition<N>
  • Field Details

    • myComputed

      private boolean myComputed
    • mySolvable

      private Boolean mySolvable
  • Constructor Details

    • AbstractDecomposition

      AbstractDecomposition()
  • Method Details

    • countColumns

      public final long countColumns()
      Description copied from interface: Structure2D
      Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.
      Specified by:
      countColumns in interface Structure2D
      Returns:
      The number of columns
    • countRows

      public final long countRows()
      Description copied from interface: Structure2D
      Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.
      Specified by:
      countRows in interface Structure2D
      Returns:
      The number of rows
    • isComputed

      public final boolean isComputed()
      Specified by:
      isComputed in interface MatrixDecomposition<N extends Comparable<N>>
      Returns:
      true if decomposition has been attemped and was successful; false if not.
      See Also:
    • reset

      public void reset()
      Description copied from interface: MatrixDecomposition
      Delete computed results, and resets attributes to default values
      Specified by:
      reset in interface MatrixDecomposition<N extends Comparable<N>>
    • allocate

      protected abstract PhysicalStore<N> allocate(long numberOfRows, long numberOfColumns)
    • checkSolvability

      protected boolean checkSolvability()
    • computed

      protected final boolean computed(boolean computed)
    • function

      protected abstract FunctionSet<N> function()
    • getDimensionalEpsilon

      protected final double getDimensionalEpsilon()
    • isAspectRatioNormal

      protected final boolean isAspectRatioNormal()
    • scalar

      protected abstract Scalar.Factory<N> scalar()
    • isSolvable

      boolean isSolvable()