Class DefaultSparseLongMatrix

    • Constructor Detail

      • DefaultSparseLongMatrix

        public DefaultSparseLongMatrix​(Matrix m)
      • DefaultSparseLongMatrix

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

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

      • getLong

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

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