Class DefaultSparseBooleanMatrix

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

public class DefaultSparseBooleanMatrix extends DefaultSparseGenericMatrix<Boolean> implements BooleanMatrix
See Also:
  • Field Details

  • Constructor Details

    • DefaultSparseBooleanMatrix

      public DefaultSparseBooleanMatrix(Matrix m)
    • DefaultSparseBooleanMatrix

      public DefaultSparseBooleanMatrix(Matrix m, int maximumNumberOfEntries)
    • DefaultSparseBooleanMatrix

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

    • getValueType

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

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

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