Class DefaultSparseLongMatrix

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<Long>, DenseGenericMatrix<Long>, DenseGenericMatrix2D<Long>, DenseGenericMatrixMultiD<Long>, GenericMatrix<Long>, GenericMatrix2D<Long>, GenericMatrixMultiD<Long>, SparseGenericMatrix<Long>, SparseGenericMatrix2D<Long>, SparseGenericMatrixMultiD<Long>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, LongMatrix, Matrix, Matrix2D, MatrixMultiD, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations

public class DefaultSparseLongMatrix extends DefaultSparseGenericMatrix<Long> implements LongMatrix
See Also:
  • Field Details

  • Constructor Details

    • DefaultSparseLongMatrix

      public DefaultSparseLongMatrix(Matrix m)
    • DefaultSparseLongMatrix

      public DefaultSparseLongMatrix(Matrix m, int maximumNumberOfEntries)
    • DefaultSparseLongMatrix

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

    • getValueType

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