AU
- Absolute unitRU
- Relative unitpublic static class FloatMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>> extends AbstractFloatMatrixAbs<AU,RU,FloatMatrix.Abs<AU,RU>,FloatMatrix.Rel<RU>,MutableFloatMatrix.Abs<AU,RU>,FloatScalar.Abs<AU,RU>>
data
Constructor and Description |
---|
Abs(float[][] values,
AU unit,
StorageType storageType)
Construct a new Absolute Immutable FloatMatrix.
|
Abs(FloatMatrixData data,
AU unit)
Construct a new Absolute Immutable FloatMatrix.
|
Abs(FloatScalar.Abs<AU,RU>[][] values,
StorageType storageType)
Construct a new Absolute Immutable 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.
|
FloatMatrix.Abs<AU,RU> |
toDense()
Create a dense version of this FloatMatrix.
|
FloatMatrix.Abs<AU,RU> |
toSparse()
Create a sparse version of this FloatMatrix.
|
checkUnit, ensureRectangularAndNonEmpty, get, minus, minus, mutable, 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
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 Immutable FloatMatrixunit
- AU; the unit of the new Absolute Immutable FloatMatrixstorageType
- StorageType; 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<AU, RU>[][]; the values of the entries in the new Absolute Immutable FloatMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesAbs(FloatMatrixData data, AU unit)
data
- FloatMatrixData; an internal data objectunit
- AU; the unitpublic FloatMatrix.Abs<AU,RU> toDense()
public FloatMatrix.Abs<AU,RU> toSparse()
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
- FloatMatrixData; an internal data objectunit
- AU; 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
- FloatMatrixData; an internal data objectunit
- RU; 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
- FloatMatrixData; an internal data objectunit
- AU; 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
- float; the valueunit
- AU; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.