Class AbstractShortMatrix

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<Short>, DenseGenericMatrix<Short>, DenseGenericMatrix2D<Short>, DenseGenericMatrixMultiD<Short>, GenericMatrix<Short>, GenericMatrix2D<Short>, GenericMatrixMultiD<Short>, SparseGenericMatrix<Short>, SparseGenericMatrix2D<Short>, SparseGenericMatrixMultiD<Short>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, BaseNumberMatrix<Short>, DenseNumberMatrix<Short>, DenseNumberMatrix2D<Short>, DenseNumberMatrixMultiD<Short>, NumberMatrix<Short>, NumberMatrix2D<Short>, NumberMatrixMultiD<Short>, SparseNumberMatrix<Short>, SparseNumberMatrix2D<Short>, SparseNumberMatrixMultiD<Short>, ObjectCalculations, ShortMatrix, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations
Direct Known Subclasses:
AbstractDenseShortMatrix, AbstractSparseShortMatrix, ShortCalculationMatrix

public abstract class AbstractShortMatrix extends AbstractNumberMatrix<Short> implements ShortMatrix
See Also:
  • Field Details

  • Constructor Details

    • AbstractShortMatrix

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

    • getNumber

      public Short getNumber(long... coordinates)
      Description copied from interface: NumberMatrixMultiD
      Returns a Number representation of an entry in the matrix. The stored value will be converted to a Number as good as possible.
      Specified by:
      getNumber in interface NumberMatrixMultiD<Short>
      Parameters:
      coordinates - location of the entry
      Returns:
      a Number representation of the entry @
    • setNumber

      public void setNumber(Short value, long... coordinates)
      Description copied from interface: NumberMatrixMultiD
      Sets an entry in the matrix to a Number value. If the matrix cannot store Number values, the value will be represented as good as possible.
      Specified by:
      setNumber in interface NumberMatrixMultiD<Short>
      Parameters:
      value - Number value
      coordinates - location of the entry @
    • getObject

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

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

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

      public final void setAsShort(short value, long... coordinates)
      Description copied from interface: GettersAndSetters
      Sets an entry in the matrix to a short value. If the matrix cannot store short values, the value will be represented as good as possible.
      Specified by:
      setAsShort in interface GettersAndSetters
      Overrides:
      setAsShort in class AbstractMatrix
      Parameters:
      value - short 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