Documentation of 'org.ujmp.core.doublematrix.impl.IndexedSparseDoubleMatrix2D' Java class
IndexedSparseDoubleMatrix2D
org.ujmp.core.doublematrix.impl

Class IndexedSparseDoubleMatrix2D

    • Constructor Detail

      • IndexedSparseDoubleMatrix2D

        public IndexedSparseDoubleMatrix2D(Matrix m)
      • IndexedSparseDoubleMatrix2D

        public IndexedSparseDoubleMatrix2D(long rows,
                                           long columns)
    • Method Detail

      • getDouble

        public double getDouble(long row,
                                long column)
      • setDouble

        public void setDouble(double value,
                              long row,
                              long column)
      • clear

        public final void clear()
      • getDouble

        public double getDouble(int row,
                                int column)
      • setDouble

        public void setDouble(double value,
                              int row,
                              int column)
      • containsCoordinates

        public boolean containsCoordinates(long... coordinates)
        Description copied from interface: CoordinateFunctions
        Determines if the given Coordinates are part of the Matrix. If the Matrix is dense, true is returned for all Coordinates smaller than the Matrix's size. For sparse Matrices, this function checks if the coordinates are actually stored in the matrix or not.
        Parameters:
        coordinates - The coordinates to check
        Returns:
        a boolean stating if the coordinates are part of the Matrix
      • availableCoordinates

        public java.lang.Iterable<long[]> availableCoordinates()
        Description copied from interface: CoordinateFunctions
        Returns an Iterator that only goes over the coordinates in the Matrix that are stored. For most Matrices, this is the same as allCoordinates(). For sparse Matrices, it iterates only over the entries in it.
        Specified by:
        availableCoordinates in interface CoordinateFunctions
        Specified by:
        availableCoordinates in class AbstractSparseDoubleMatrix2D
        Returns:
        Iterable over the saved entries in a Matrix.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.