Class AbstractSparseByteArrayMatrix2D

    • Constructor Detail

      • AbstractSparseByteArrayMatrix2D

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

      • 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 @