Class DefaultSparseCharMatrix

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

public class DefaultSparseCharMatrix extends DefaultSparseGenericMatrix<Character> implements CharMatrix
See Also:
  • Field Details

  • Constructor Details

    • DefaultSparseCharMatrix

      public DefaultSparseCharMatrix(Matrix m)
    • DefaultSparseCharMatrix

      public DefaultSparseCharMatrix(Matrix m, int maximumNumberOfEntries)
    • DefaultSparseCharMatrix

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

    • getValueType

      public final ValueType getValueType()
      Specified by:
      getValueType in interface BaseMatrixProperties
      Overrides:
      getValueType in class DefaultSparseGenericMatrix<Character>
    • getChar

      public char getChar(long... coordinates)
      Description copied from interface: CharMatrix
      Returns a char representation of an entry in the matrix. The stored value will be converted to a char as good as possible.
      Specified by:
      getChar in interface CharMatrix
      Parameters:
      coordinates - location of the entry
      Returns:
      a char representation of the entry @
    • setChar

      public void setChar(char value, long... coordinates)
      Description copied from interface: CharMatrix
      Sets an entry in the matrix to a char value. If the matrix cannot store char values, the value will be represented as good as possible.
      Specified by:
      setChar in interface CharMatrix
      Parameters:
      value - char value
      coordinates - location of the entry @