Class BigDecimalCalculationMatrix

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Matrix>, HasMetaData, BaseMatrix, BaseBigDecimalMatrix, BigDecimalMatrix, BigDecimalMatrix2D, BigDecimalMatrixMultiD, DenseBigDecimalMatrix, DenseBigDecimalMatrix2D, DenseBigDecimalMatrixMultiD, SparseBigDecimalMatrix, SparseBigDecimalMatrix2D, SparseBigDecimalMatrixMultiD, BooleanCalculations, CanPerformCalculations, DenseMatrix, DenseMatrix2D, DenseMatrixMultiD, BasicDoubleCalculations, DoubleCalculations, BasicEntrywiseDoubleCalculations, CreatorDoubleCalculations, EntrywiseDoubleCalculations, HyperbolicDoubleCalculations, MiscEntrywiseDoubleCalculations, RoundingDoubleCalculations, TrigonometricDoubleCalculations, DecompositionDoubleCalculations, DiscretizeCalculations, GeneralDoubleCalculations, MiscGeneralDoubleCalculations, MissingValueDoubleCalculations, StatisticalDoubleCalculations, BaseGenericMatrix<BigDecimal>, DenseGenericMatrix<BigDecimal>, DenseGenericMatrix2D<BigDecimal>, DenseGenericMatrixMultiD<BigDecimal>, GenericMatrix<BigDecimal>, GenericMatrix2D<BigDecimal>, GenericMatrixMultiD<BigDecimal>, SparseGenericMatrix<BigDecimal>, SparseGenericMatrix2D<BigDecimal>, SparseGenericMatrixMultiD<BigDecimal>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, BaseNumberMatrix<BigDecimal>, DenseNumberMatrix<BigDecimal>, DenseNumberMatrix2D<BigDecimal>, DenseNumberMatrixMultiD<BigDecimal>, NumberMatrix2D<BigDecimal>, NumberMatrixMultiD<BigDecimal>, SparseNumberMatrix<BigDecimal>, SparseNumberMatrix2D<BigDecimal>, SparseNumberMatrixMultiD<BigDecimal>, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations

public class BigDecimalCalculationMatrix extends AbstractBigDecimalMatrix
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • containsCoordinates

      public boolean containsCoordinates(long... coordinates)
      Description copied from interface: CoordinateFunctions
      Determines if the given Coordinates are part of the Matrix. If the Matrix is dense, true is returned for all Coordinates smaller than the Matrix's size. For sparse Matrices, this function checks if the coordinates are actually stored in the matrix or not.
      Parameters:
      coordinates - The coordinates to check
      Returns:
      a boolean stating if the coordinates are part of the Matrix
    • availableCoordinates

      public Iterable<long[]> availableCoordinates()
      Description copied from interface: CoordinateFunctions
      Returns an Iterator that only goes over the coordinates in the Matrix that are stored. For most Matrices, this is the same as allCoordinates(). For sparse Matrices, it iterates only over the entries in it.
      Returns:
      Iterable over the saved entries in a Matrix.
    • getSize

      public long[] getSize()
      Specified by:
      getSize in interface BaseMatrixProperties
      Overrides:
      getSize in class AbstractMatrix
    • fireValueChanged

      public void fireValueChanged()
      Description copied from interface: HasGUIObject
      This method is used to signal changes in the object to the corresponding GUIObject if it exists.

      Maybe this method can be deleted, when all changes are made trough the GUIObject?

      Specified by:
      fireValueChanged in interface HasGUIObject
      Specified by:
      fireValueChanged in interface Matrix
      Overrides:
      fireValueChanged in class AbstractMatrix
    • getBigDecimal

      public BigDecimal getBigDecimal(long... coordinates)
    • setBigDecimal

      public void setBigDecimal(BigDecimal value, long... coordinates)
    • getBigDecimal

      public BigDecimal getBigDecimal(long row, long column)
    • setBigDecimal

      public void setBigDecimal(BigDecimal value, long row, long column)
    • getBigDecimal

      public BigDecimal getBigDecimal(int row, int column)
    • setBigDecimal

      public void setBigDecimal(BigDecimal value, int row, int column)
    • getNumber

      public BigDecimal getNumber(long... coordinates)
      Description copied from interface: NumberMatrixMultiD
      Returns a Number representation of an entry in the matrix. The stored value will be converted to a Number as good as possible.
      Parameters:
      coordinates - location of the entry
      Returns:
      a Number representation of the entry @
    • setNumber

      public void setNumber(BigDecimal value, long... coordinates)
      Description copied from interface: NumberMatrixMultiD
      Sets an entry in the matrix to a Number value. If the matrix cannot store Number values, the value will be represented as good as possible.
      Parameters:
      value - Number value
      coordinates - location of the entry @
    • isSparse

      public final boolean isSparse()
    • clear

      public final void clear()