Class DefaultSparseByteMatrix

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

public class DefaultSparseByteMatrix extends DefaultSparseGenericMatrix<Byte> implements ByteMatrix
See Also:
  • Field Details

  • Constructor Details

    • DefaultSparseByteMatrix

      public DefaultSparseByteMatrix(Matrix m)
    • DefaultSparseByteMatrix

      public DefaultSparseByteMatrix(Matrix m, int maximumNumberOfEntries)
    • DefaultSparseByteMatrix

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

    • getValueType

      public final ValueType getValueType()
      Specified by:
      getValueType in interface BaseMatrixProperties
      Overrides:
      getValueType in class DefaultSparseGenericMatrix<Byte>
    • getByte

      public byte getByte(long... coordinates)
      Description copied from interface: ByteMatrix
      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:
      getByte in interface ByteMatrix
      Parameters:
      coordinates - location of the entry
      Returns:
      a byte representation of the entry @
    • setByte

      public void setByte(byte value, long... coordinates)
      Description copied from interface: ByteMatrix
      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:
      setByte in interface ByteMatrix
      Parameters:
      value - byte value
      coordinates - location of the entry @