Class DefaultSparseBooleanMatrix

    • Constructor Detail

      • DefaultSparseBooleanMatrix

        public DefaultSparseBooleanMatrix​(Matrix m)
      • DefaultSparseBooleanMatrix

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

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

      • getBoolean

        public boolean getBoolean​(long... coordinates)
        Description copied from interface: BooleanMatrix
        Returns a byte representation of an entry in the matrix. The stored value will be converted to a boolean as good as possible.
        Specified by:
        getBoolean in interface BooleanMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a boolean representation of the entry @
      • setBoolean

        public void setBoolean​(boolean value,
                               long... coordinates)
        Description copied from interface: BooleanMatrix
        Sets an entry in the matrix to a boolean value. If the matrix cannot store byte values, the value will be represented as good as possible.
        Specified by:
        setBoolean in interface BooleanMatrix
        Parameters:
        value - boolean value
        coordinates - location of the entry @