AU
- Absolute unitRU
- Relative unitpublic static class MutableFloatMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>> extends AbstractMutableFloatMatrixAbs<AU,RU,FloatMatrix.Abs<AU,RU>,FloatMatrix.Rel<RU>,MutableFloatMatrix.Abs<AU,RU>,FloatScalar.Abs<AU,RU>> implements MathFunctionsAbs<MutableFloatMatrix.Abs<AU,RU>>, FloatMathFunctions<MutableFloatMatrix.Abs<AU,RU>>
data
Constructor and Description |
---|
Abs(float[][] values,
AU unit,
StorageType storageType)
Construct a new Absolute Mutable FloatMatrix.
|
Abs(FloatMatrixData data,
AU unit)
Construct a new Absolute Mutable FloatMatrix.
|
Abs(FloatScalar.Abs<AU,RU>[][] values,
StorageType storageType)
Construct a new Absolute Mutable FloatMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected MutableFloatMatrix.Abs<AU,RU> |
instantiateMutableType(FloatMatrixData dmd,
AU unit)
Construct a new Absolute Mutable FloatMatrix of the right type.
|
protected FloatScalar.Abs<AU,RU> |
instantiateScalar(float value,
AU unit)
Construct a new Absolute Immutable FloatScalar of the right type.
|
protected FloatMatrix.Abs<AU,RU> |
instantiateTypeAbs(FloatMatrixData dmd,
AU unit)
Construct a new Absolute Immutable FloatMatrix of the right type.
|
protected FloatMatrix.Rel<RU> |
instantiateTypeRel(FloatMatrixData dmd,
RU unit)
Construct a new Relative Immutable FloatMatrix of the right type.
|
MutableFloatMatrix.Abs<AU,RU> |
toDense()
Create a dense version of this FloatMatrix.
|
MutableFloatMatrix.Abs<AU,RU> |
toSparse()
Create a sparse version of this FloatMatrix.
|
assign, ceil, checkCopyOnWrite, copy, decrementBy, decrementBy, decrementBy, divideBy, floor, immutable, incrementBy, incrementBy, incrementBy, multiplyBy, multiplyBy, mutable, normalize, rint, round, set, setCopyOnWrite, setInUnit, setSI
checkUnit, ensureRectangularAndNonEmpty, get, minus, minus, plus
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
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 Abs(float[][] values, AU unit, StorageType storageType) throws ValueException
values
- float[][]; the values of the entries in the new Absolute Mutable FloatMatrixunit
- AU; the unit of the new Absolute Mutable FloatMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic Abs(FloatScalar.Abs<AU,RU>[][] values, StorageType storageType) throws ValueException
values
- FloatScalar.Abs<U>[][]; the values of the entries in the new Absolute Mutable FloatMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesAbs(FloatMatrixData data, AU unit)
data
- an internal data objectunit
- the unitpublic MutableFloatMatrix.Abs<AU,RU> toDense()
toDense
in interface FloatMatrixInterface<AU extends AbsoluteLinearUnit<AU,RU>>
public MutableFloatMatrix.Abs<AU,RU> toSparse()
toSparse
in interface FloatMatrixInterface<AU extends AbsoluteLinearUnit<AU,RU>>
protected final FloatMatrix.Abs<AU,RU> instantiateTypeAbs(FloatMatrixData dmd, AU unit)
instantiateTypeAbs
in class AbstractFloatMatrixAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,FloatMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,FloatMatrix.Rel<RU extends Unit<RU>>,MutableFloatMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,FloatScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
dmd
- an internal data objectunit
- the unitprotected final FloatMatrix.Rel<RU> instantiateTypeRel(FloatMatrixData dmd, RU unit)
instantiateTypeRel
in class AbstractFloatMatrixAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,FloatMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,FloatMatrix.Rel<RU extends Unit<RU>>,MutableFloatMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,FloatScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
dmd
- an internal data objectunit
- the unitprotected final MutableFloatMatrix.Abs<AU,RU> instantiateMutableType(FloatMatrixData dmd, AU unit)
instantiateMutableType
in class AbstractFloatMatrixAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,FloatMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,FloatMatrix.Rel<RU extends Unit<RU>>,MutableFloatMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,FloatScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
dmd
- an internal data objectunit
- the unitprotected final FloatScalar.Abs<AU,RU> instantiateScalar(float value, AU unit)
instantiateScalar
in class AbstractFloatMatrixAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,FloatMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,FloatMatrix.Rel<RU extends Unit<RU>>,MutableFloatMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,FloatScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
value
- the valueunit
- the unitCopyright © 2015–2018 Delft University of Technology. All rights reserved.