U
- Unit the unit for which this Matrix will be createdpublic static class MutableFloatMatrix.Rel<U extends Unit<U>> extends AbstractMutableFloatMatrixRel<U,FloatMatrix.Rel<U>,MutableFloatMatrix.Rel<U>,FloatScalar.Rel<U>> implements MathFunctionsRel<MutableFloatMatrix.Rel<U>>, FloatMathFunctions<MutableFloatMatrix.Rel<U>>
data
Constructor and Description |
---|
Rel(float[][] values,
U unit,
StorageType storageType)
Construct a new Relative Mutable FloatMatrix.
|
Rel(FloatMatrixData data,
U unit)
Construct a new Relative Mutable FloatMatrix.
|
Rel(FloatScalar.Rel<U>[][] values,
StorageType storageType)
Construct a new Relative Mutable FloatMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected MutableFloatMatrix.Rel<U> |
instantiateMutableType(FloatMatrixData dmd,
U unit)
Construct a new Relative Mutable FloatMatrix of the right type.
|
protected FloatScalar.Rel<U> |
instantiateScalar(float value,
U unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatMatrix.Rel<U> |
instantiateType(FloatMatrixData dmd,
U unit)
Construct a new Relative Immutable FloatMatrix of the right type.
|
MutableFloatMatrix.Rel<U> |
toDense()
Create a dense version of this FloatMatrix.
|
MutableFloatMatrix.Rel<U> |
toSparse()
Create a sparse version of this FloatMatrix.
|
abs, assign, ceil, checkCopyOnWrite, copy, decrementBy, decrementBy, decrementBy, divideBy, divideBy, divideBy, floor, immutable, incrementBy, incrementBy, incrementBy, multiplyBy, multiplyBy, multiplyBy, mutable, neg, normalize, rint, round, set, setCopyOnWrite, setInUnit, setSI
checkUnit, divide, ensureRectangularAndNonEmpty, get, minus, plus, times
cardinality, checkIndex, checkSize, checkSize, columns, determinant, ensureRectangularAndNonEmpty, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, rows, toString, toString, toString, toString, zSum
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
abs, neg
ceil, floor, rint, round
DIV, divideBy, MULT, multiplyBy, POW
cardinality, columns, determinant, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, rows, toString, toString, toString, toString, zSum
public Rel(float[][] values, U unit, StorageType storageType) throws ValueException
values
- float[][]; the values of the entries in the new Relative Mutable FloatMatrixunit
- U; the unit of the new Relative Mutable FloatMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic Rel(FloatScalar.Rel<U>[][] values, StorageType storageType) throws ValueException
values
- FloatScalar.Abs<U>[][]; the values of the entries in the new Relative Mutable FloatMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesRel(FloatMatrixData data, U unit)
data
- an internal data objectunit
- the unitpublic MutableFloatMatrix.Rel<U> toDense()
toDense
in interface FloatMatrixInterface<U extends Unit<U>>
public MutableFloatMatrix.Rel<U> toSparse()
toSparse
in interface FloatMatrixInterface<U extends Unit<U>>
protected final FloatMatrix.Rel<U> instantiateType(FloatMatrixData dmd, U unit)
instantiateType
in class AbstractFloatMatrixRel<U extends Unit<U>,FloatMatrix.Rel<U extends Unit<U>>,MutableFloatMatrix.Rel<U extends Unit<U>>,FloatScalar.Rel<U extends Unit<U>>>
dmd
- an internal data objectunit
- the unitprotected final MutableFloatMatrix.Rel<U> instantiateMutableType(FloatMatrixData dmd, U unit)
instantiateMutableType
in class AbstractFloatMatrixRel<U extends Unit<U>,FloatMatrix.Rel<U extends Unit<U>>,MutableFloatMatrix.Rel<U extends Unit<U>>,FloatScalar.Rel<U extends Unit<U>>>
dmd
- an internal data objectunit
- the unitprotected final FloatScalar.Rel<U> instantiateScalar(float value, U unit)
instantiateScalar
in class AbstractFloatMatrixRel<U extends Unit<U>,FloatMatrix.Rel<U extends Unit<U>>,MutableFloatMatrix.Rel<U extends Unit<U>>,FloatScalar.Rel<U extends Unit<U>>>
value
- the valueunit
- the unitCopyright © 2015–2018 Delft University of Technology. All rights reserved.