Class AbstractSparseByteMatrix2D

    • Constructor Detail

      • AbstractSparseByteMatrix2D

        public AbstractSparseByteMatrix2D​(long rows,
                                          long columns)
    • Method Detail

      • getByte

        public final 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 final 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 @