Class AbstractLongMatrix

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
Direct Known Subclasses:
AbstractDenseLongMatrix, AbstractSparseLongMatrix, LongCalculationMatrix

public abstract class AbstractLongMatrix extends AbstractGenericMatrix<Long> implements LongMatrix
See Also:
  • Field Details

  • Constructor Details

    • AbstractLongMatrix

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

    • getObject

      public final Long getObject(long... coordinates)
      Specified by:
      getObject in interface GenericMatrixMultiD<Long>
    • setObject

      public final void setObject(Long o, long... coordinates)
      Specified by:
      setObject in interface GenericMatrixMultiD<Long>
      Overrides:
      setObject in class AbstractGenericMatrix<Long>
    • getAsLong

      public final long getAsLong(long... coordinates)
      Description copied from interface: GettersAndSetters
      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:
      getAsLong in interface GettersAndSetters
      Overrides:
      getAsLong in class AbstractMatrix
      Parameters:
      coordinates - location of the entry
      Returns:
      a long representation of the entry @
    • setAsLong

      public final void setAsLong(long value, long... coordinates)
      Description copied from interface: GettersAndSetters
      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:
      setAsLong in interface GettersAndSetters
      Overrides:
      setAsLong in class AbstractMatrix
      Parameters:
      value - long value
      coordinates - location of the entry @
    • getAsDouble

      public final double getAsDouble(long... coordinates)
      Description copied from interface: GettersAndSetters
      Returns a double representation of an entry in the matrix. The stored value will be converted to a double as good as possible.
      Specified by:
      getAsDouble in interface GettersAndSetters
      Overrides:
      getAsDouble in class AbstractMatrix
      Parameters:
      coordinates - location of the entry
      Returns:
      a double representation of the entry @
    • setAsDouble

      public final void setAsDouble(double value, long... coordinates)
      Description copied from interface: GettersAndSetters
      Sets an entry in the matrix to a double value. If the matrix cannot store double values, the value will be represented as good as possible.
      Specified by:
      setAsDouble in interface GettersAndSetters
      Overrides:
      setAsDouble in class AbstractMatrix
      Parameters:
      value - double value
      coordinates - location of the entry @
    • getValueType

      public final ValueType getValueType()
      Specified by:
      getValueType in interface BaseMatrixProperties
      Overrides:
      getValueType in class AbstractMatrix