Class AbstractSparseByteArrayMatrix2D

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Matrix>, HasMetaData, BaseMatrix, BooleanCalculations, ByteArrayMatrix, ByteArrayMatrix2D, SparseByteArrayMatrix, SparseByteArrayMatrix2D, 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

public abstract class AbstractSparseByteArrayMatrix2D extends AbstractSparseByteArrayMatrix implements SparseByteArrayMatrix2D
See Also:
  • Field Details

  • Constructor Details

    • AbstractSparseByteArrayMatrix2D

      public AbstractSparseByteArrayMatrix2D(long rows, long columns)
  • Method Details

    • getByteArray

      public final byte[] getByteArray(long... coordinates)
      Description copied from interface: ByteArrayMatrix
      Returns a byte array representation of an entry in the matrix. The stored value will be converted to a byte as good as possible.
      Specified by:
      getByteArray in interface ByteArrayMatrix
      Parameters:
      coordinates - location of the entry
      Returns:
      a byte array representation of the entry @
    • setByteArray

      public final void setByteArray(byte[] value, long... coordinates)
      Description copied from interface: ByteArrayMatrix
      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:
      setByteArray in interface ByteArrayMatrix
      Parameters:
      value - byte array value
      coordinates - location of the entry @
    • getObject

      public final byte[] getObject(long row, long column)
      Specified by:
      getObject in interface GenericMatrix2D<byte[]>
      Overrides:
      getObject in class AbstractGenericMatrix<byte[]>
    • getObject

      public final byte[] getObject(int row, int column)
      Specified by:
      getObject in interface GenericMatrix2D<byte[]>
      Overrides:
      getObject in class AbstractGenericMatrix<byte[]>
    • setObject

      public final void setObject(byte[] value, long row, long column)
      Specified by:
      setObject in interface GenericMatrix2D<byte[]>
      Overrides:
      setObject in class AbstractGenericMatrix<byte[]>
    • setObject

      public final void setObject(byte[] value, int row, int column)
      Specified by:
      setObject in interface GenericMatrix2D<byte[]>
      Overrides:
      setObject in class AbstractGenericMatrix<byte[]>