Class DefaultSparseByteMatrix

    • Constructor Detail

      • DefaultSparseByteMatrix

        public DefaultSparseByteMatrix​(Matrix m)
      • DefaultSparseByteMatrix

        public DefaultSparseByteMatrix​(Matrix m,
                                       int maximumNumberOfEntries)
      • DefaultSparseByteMatrix

        public DefaultSparseByteMatrix​(long... size)
    • Method Detail

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