Class DefaultSparseFloatMatrix

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, FloatMatrix, BaseGenericMatrix<Float>, DenseGenericMatrix<Float>, DenseGenericMatrix2D<Float>, DenseGenericMatrixMultiD<Float>, GenericMatrix<Float>, GenericMatrix2D<Float>, GenericMatrixMultiD<Float>, SparseGenericMatrix<Float>, SparseGenericMatrix2D<Float>, SparseGenericMatrixMultiD<Float>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations

public class DefaultSparseFloatMatrix extends DefaultSparseGenericMatrix<Float> implements FloatMatrix
See Also:
  • Field Details

  • Constructor Details

    • DefaultSparseFloatMatrix

      public DefaultSparseFloatMatrix(Matrix m)
    • DefaultSparseFloatMatrix

      public DefaultSparseFloatMatrix(Matrix m, int maximumNumberOfEntries)
    • DefaultSparseFloatMatrix

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

    • getValueType

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

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

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