Class DefaultSparseIntMatrix

    • Constructor Detail

      • DefaultSparseIntMatrix

        public DefaultSparseIntMatrix​(Matrix m)
      • DefaultSparseIntMatrix

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

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

      • getInt

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

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