Class AbstractGenericMatrix<T>

java.lang.Object
java.lang.Number
org.ujmp.core.AbstractMatrix
org.ujmp.core.genericmatrix.stub.AbstractGenericMatrix<T>
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<T>, DenseGenericMatrix<T>, DenseGenericMatrix2D<T>, DenseGenericMatrixMultiD<T>, GenericMatrix<T>, GenericMatrix2D<T>, GenericMatrixMultiD<T>, SparseGenericMatrix<T>, SparseGenericMatrix2D<T>, SparseGenericMatrixMultiD<T>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations
Direct Known Subclasses:
AbstractBooleanMatrix, AbstractByteArrayMatrix, AbstractByteMatrix, AbstractCharMatrix, AbstractDenseGenericMatrix, AbstractFloatMatrix, AbstractIntMatrix, AbstractLongMatrix, AbstractNumberMatrix, AbstractObjectMatrix, AbstractSparseGenericMatrix, AbstractStringMatrix, SynchronizedGenericMatrix

public abstract class AbstractGenericMatrix<T> extends AbstractMatrix implements GenericMatrix<T>
See Also:
  • Field Details

  • Constructor Details

    • AbstractGenericMatrix

      protected AbstractGenericMatrix(long... size)
  • Method Details

    • getAsObject

      public final T getAsObject(long... coordinates)
      Description copied from interface: GettersAndSetters
      Returns a raw entry in the matrix as it is stored. If the matrix supports Generics, the return type will match the type that is stored.
      Specified by:
      getAsObject in interface GettersAndSetters
      Parameters:
      coordinates - location of the entry
      Returns:
      entry object @
    • getObject

      public T getObject(long row, long column)
      Specified by:
      getObject in interface GenericMatrix2D<T>
    • setObject

      public void setObject(T value, long row, long column)
      Specified by:
      setObject in interface GenericMatrix2D<T>
    • getObject

      public T getObject(int row, int column)
      Specified by:
      getObject in interface GenericMatrix2D<T>
    • setObject

      public void setObject(T value, int row, int column)
      Specified by:
      setObject in interface GenericMatrix2D<T>
    • setObject

      public void setObject(T value, long... coordinates)
      Specified by:
      setObject in interface GenericMatrixMultiD<T>
    • setAsObject

      public final void setAsObject(Object o, long... coordinates)
      Description copied from interface: GettersAndSetters
      Sets an entry in the matrix to an object. If the matrix cannot store this object type, the value will be represented as good as possible.
      Specified by:
      setAsObject in interface GettersAndSetters
      Parameters:
      o - the object to store
      coordinates - location of the entry @