Class DefaultSparseIntMatrix

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Matrix>, HasMetaData, BaseMatrix, BooleanCalculations, CanPerformCalculations, DenseMatrix, DenseMatrix2D, DenseMatrixMultiD, BasicDoubleCalculations, DoubleCalculations, BasicEntrywiseDoubleCalculations, CreatorDoubleCalculations, EntrywiseDoubleCalculations, HyperbolicDoubleCalculations, MiscEntrywiseDoubleCalculations, RoundingDoubleCalculations, TrigonometricDoubleCalculations, DecompositionDoubleCalculations, DiscretizeCalculations, GeneralDoubleCalculations, MiscGeneralDoubleCalculations, MissingValueDoubleCalculations, StatisticalDoubleCalculations, BaseGenericMatrix<Integer>, DenseGenericMatrix<Integer>, DenseGenericMatrix2D<Integer>, DenseGenericMatrixMultiD<Integer>, GenericMatrix<Integer>, GenericMatrix2D<Integer>, GenericMatrixMultiD<Integer>, SparseGenericMatrix<Integer>, SparseGenericMatrix2D<Integer>, SparseGenericMatrixMultiD<Integer>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, IntMatrix, Matrix, Matrix2D, MatrixMultiD, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations

public class DefaultSparseIntMatrix extends DefaultSparseGenericMatrix<Integer> implements IntMatrix
See Also:
  • Field Details

  • Constructor Details

    • DefaultSparseIntMatrix

      public DefaultSparseIntMatrix(Matrix m)
    • DefaultSparseIntMatrix

      public DefaultSparseIntMatrix(Matrix m, int maximumNumberOfEntries)
    • DefaultSparseIntMatrix

      public DefaultSparseIntMatrix(long... size)
  • Method Details

    • getValueType

      public final ValueType getValueType()
      Specified by:
      getValueType in interface BaseMatrixProperties
      Overrides:
      getValueType in class DefaultSparseGenericMatrix<Integer>
    • 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 @