Class AbstractObjectMatrix

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Matrix>, HasMetaData, BaseMatrix, BooleanCalculations, CanPerformCalculations, DenseMatrix, DenseMatrix2D, DenseMatrixMultiD, BasicDoubleCalculations, DoubleCalculations, BasicEntrywiseDoubleCalculations, CreatorDoubleCalculations, EntrywiseDoubleCalculations, HyperbolicDoubleCalculations, MiscEntrywiseDoubleCalculations, RoundingDoubleCalculations, TrigonometricDoubleCalculations, DecompositionDoubleCalculations, DiscretizeCalculations, GeneralDoubleCalculations, MiscGeneralDoubleCalculations, MissingValueDoubleCalculations, StatisticalDoubleCalculations, BaseGenericMatrix<Object>, DenseGenericMatrix<Object>, DenseGenericMatrix2D<Object>, DenseGenericMatrixMultiD<Object>, GenericMatrix<Object>, GenericMatrix2D<Object>, GenericMatrixMultiD<Object>, SparseGenericMatrix<Object>, SparseGenericMatrix2D<Object>, SparseGenericMatrixMultiD<Object>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, BaseObjectMatrix, ObjectCalculations, DenseObjectMatrix, DenseObjectMatrix2D, DenseObjectMatrixMultiD, ObjectMatrix, ObjectMatrix2D, ObjectMatrixMultiD, SparseObjectMatrix, SparseObjectMatrix2D, SparseObjectMatrixMultiD, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations
Direct Known Subclasses:
AbstractDenseObjectMatrix, AbstractSparseObjectMatrix, FileMatrix

public abstract class AbstractObjectMatrix extends AbstractGenericMatrix<Object> implements ObjectMatrix
See Also:
  • Field Details

  • Constructor Details

    • AbstractObjectMatrix

      public AbstractObjectMatrix(long... size)
  • Method Details

    • getAsDouble

      public double getAsDouble(long... coordinates)
      Description copied from interface: GettersAndSetters
      Returns a double representation of an entry in the matrix. The stored value will be converted to a double as good as possible.
      Specified by:
      getAsDouble in interface GettersAndSetters
      Overrides:
      getAsDouble in class AbstractMatrix
      Parameters:
      coordinates - location of the entry
      Returns:
      a double representation of the entry @
    • setAsDouble

      public void setAsDouble(double v, long... coordinates)
      Description copied from interface: GettersAndSetters
      Sets an entry in the matrix to a double value. If the matrix cannot store double values, the value will be represented as good as possible.
      Specified by:
      setAsDouble in interface GettersAndSetters
      Overrides:
      setAsDouble in class AbstractMatrix
      Parameters:
      v - double value
      coordinates - location of the entry @
    • getValueType

      public final ValueType getValueType()
      Specified by:
      getValueType in interface BaseMatrixProperties
      Overrides:
      getValueType in class AbstractMatrix