Class AbstractByteMatrix

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Matrix>, HasMetaData, BaseMatrix, BooleanCalculations, ByteMatrix, CanPerformCalculations, DenseMatrix, DenseMatrix2D, DenseMatrixMultiD, BasicDoubleCalculations, DoubleCalculations, BasicEntrywiseDoubleCalculations, CreatorDoubleCalculations, EntrywiseDoubleCalculations, HyperbolicDoubleCalculations, MiscEntrywiseDoubleCalculations, RoundingDoubleCalculations, TrigonometricDoubleCalculations, DecompositionDoubleCalculations, DiscretizeCalculations, GeneralDoubleCalculations, MiscGeneralDoubleCalculations, MissingValueDoubleCalculations, StatisticalDoubleCalculations, BaseGenericMatrix<Byte>, DenseGenericMatrix<Byte>, DenseGenericMatrix2D<Byte>, DenseGenericMatrixMultiD<Byte>, GenericMatrix<Byte>, GenericMatrix2D<Byte>, GenericMatrixMultiD<Byte>, SparseGenericMatrix<Byte>, SparseGenericMatrix2D<Byte>, SparseGenericMatrixMultiD<Byte>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations
Direct Known Subclasses:
AbstractDenseByteMatrix, AbstractSparseByteMatrix, ByteCalculationMatrix

public abstract class AbstractByteMatrix extends AbstractGenericMatrix<Byte> implements ByteMatrix
See Also:
  • Field Details

  • Constructor Details

    • AbstractByteMatrix

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

    • getObject

      public final Byte getObject(long... coordinates)
      Specified by:
      getObject in interface GenericMatrixMultiD<Byte>
    • setObject

      public final void setObject(Byte o, long... coordinates)
      Specified by:
      setObject in interface GenericMatrixMultiD<Byte>
      Overrides:
      setObject in class AbstractGenericMatrix<Byte>
    • getAsByte

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

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

      public final 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 final void setAsDouble(double value, 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:
      value - double value
      coordinates - location of the entry @
    • getValueType

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