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, setSIcheckUnit, divide, ensureRectangularAndNonEmpty, get, minus, plus, timescardinality, checkIndex, checkSize, checkSize, columns, determinant, ensureRectangularAndNonEmpty, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, rows, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnitclone, finalize, getClass, notify, notifyAll, wait, wait, waitabs, negceil, floor, rint, roundDIV, divideBy, MULT, multiplyBy, POWcardinality, columns, determinant, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, rows, toString, toString, toString, toString, zSumpublic 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 - StorageType; 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.Rel<U>[][]; the values of the entries in the new Relative Mutable FloatMatrixstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriesRel(FloatMatrixData data, U unit)
data - FloatMatrixData; an internal data objectunit - U; 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 - FloatMatrixData; an internal data objectunit - U; 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 - FloatMatrixData; an internal data objectunit - U; 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 - float; the valueunit - U; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.