Class DefaultSparseRowDoubleMatrix2D

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Matrix>, HasMetaData, BaseMatrix, BooleanCalculations, CanPerformCalculations, DenseMatrix, DenseMatrix2D, DenseMatrixMultiD, BaseDoubleMatrix, BasicDoubleCalculations, DoubleCalculations, BasicEntrywiseDoubleCalculations, CreatorDoubleCalculations, EntrywiseDoubleCalculations, HyperbolicDoubleCalculations, MiscEntrywiseDoubleCalculations, RoundingDoubleCalculations, TrigonometricDoubleCalculations, DecompositionDoubleCalculations, DiscretizeCalculations, GeneralDoubleCalculations, MiscGeneralDoubleCalculations, MissingValueDoubleCalculations, StatisticalDoubleCalculations, DenseDoubleMatrix, DenseDoubleMatrix2D, DenseDoubleMatrixMultiD, DoubleMatrix, DoubleMatrix2D, DoubleMatrixMultiD, SparseDoubleMatrix, SparseDoubleMatrix2D, SparseDoubleMatrixMultiD, BaseGenericMatrix<Double>, DenseGenericMatrix<Double>, DenseGenericMatrix2D<Double>, DenseGenericMatrixMultiD<Double>, GenericMatrix<Double>, GenericMatrix2D<Double>, GenericMatrixMultiD<Double>, SparseGenericMatrix<Double>, SparseGenericMatrix2D<Double>, SparseGenericMatrixMultiD<Double>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, BaseNumberMatrix<Double>, DenseNumberMatrix<Double>, DenseNumberMatrix2D<Double>, DenseNumberMatrixMultiD<Double>, NumberMatrix<Double>, NumberMatrix2D<Double>, NumberMatrixMultiD<Double>, SparseNumberMatrix<Double>, SparseNumberMatrix2D<Double>, SparseNumberMatrixMultiD<Double>, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations

public class DefaultSparseRowDoubleMatrix2D extends AbstractSparseDoubleMatrix2D
See Also:
  • Field Details

  • Constructor Details

    • DefaultSparseRowDoubleMatrix2D

      public DefaultSparseRowDoubleMatrix2D(long rows, long columns)
    • DefaultSparseRowDoubleMatrix2D

      public DefaultSparseRowDoubleMatrix2D(Matrix m)
  • Method Details

    • getDouble

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

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

      public 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.
    • 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
    • setDouble

      public void setDouble(double o, long row, long column)
    • setDouble

      public void setDouble(double o, int row, int column)
    • setSize

      public void setSize(long... size)
      Description copied from interface: BaseMatrixProperties
      Sets the size of the matrix. This is an optional method that is not implemented for all matrices. If this method is not implemented, a MatrixException is thrown.
      Specified by:
      setSize in interface BaseMatrixProperties
      Overrides:
      setSize in class AbstractMatrix
      Parameters:
      size - the new size of the matrix
    • getRow

      public Matrix getRow(long row)
    • selectRows

      public Matrix selectRows(Calculation.Ret returnType, long... rows)
      Description copied from interface: ObjectCalculations
      Selects rows in the Matrix and returns a link to it.
      Specified by:
      selectRows in interface ObjectCalculations
      Overrides:
      selectRows in class AbstractMatrix
      Parameters:
      returnType - Defines if a new Matrix or a link should be returned.
      rows - selected rows
      Returns:
      Link to original Matrix with desired rows @
    • clear

      public final void clear()