AU
- Absolute unitRU
- Relative unitpublic static class MutableDoubleMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>> extends AbstractMutableDoubleMatrixAbs<AU,RU,DoubleMatrix.Abs<AU,RU>,DoubleMatrix.Rel<RU>,MutableDoubleMatrix.Abs<AU,RU>,DoubleScalar.Abs<AU,RU>> implements MathFunctionsAbs<MutableDoubleMatrix.Abs<AU,RU>>, FunctionsAbs<AU,RU,DoubleMatrix.Abs<AU,RU>,DoubleMatrix.Rel<RU>>, DoubleMathFunctions<MutableDoubleMatrix.Abs<AU,RU>>
data
Constructor and Description |
---|
Abs(double[][] values,
AU unit,
StorageType storageType)
Construct a new Absolute Mutable DoubleMatrix.
|
Abs(DoubleMatrixData data,
AU unit)
Construct a new Absolute Mutable DoubleMatrix.
|
Abs(DoubleScalar.Abs<AU,RU>[][] values,
StorageType storageType)
Construct a new Absolute Mutable DoubleMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected MutableDoubleMatrix.Abs<AU,RU> |
instantiateMutableType(DoubleMatrixData dmd,
AU unit)
Construct a new Absolute Mutable DoubleMatrix of the right type.
|
protected DoubleScalar.Abs<AU,RU> |
instantiateScalar(double value,
AU unit)
Construct a new Absolute Immutable DoubleScalar of the right type.
|
protected DoubleMatrix.Abs<AU,RU> |
instantiateTypeAbs(DoubleMatrixData dmd,
AU unit)
Construct a new Absolute Immutable DoubleMatrix of the right type.
|
protected DoubleMatrix.Rel<RU> |
instantiateTypeRel(DoubleMatrixData dmd,
RU unit)
Construct a new Relative Immutable DoubleMatrix of the right type.
|
MutableDoubleMatrix.Abs<AU,RU> |
toDense()
Create a dense version of this DoubleMatrix.
|
MutableDoubleMatrix.Abs<AU,RU> |
toSparse()
Create a sparse version of this DoubleMatrix.
|
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
minus, minus, plus
DIV, divideBy, MULT, multiplyBy, POW
public Abs(double[][] values, AU unit, StorageType storageType) throws ValueException
values
- double[][]; the values of the entries in the new Absolute Mutable DoubleMatrixunit
- AU; the unit of the new Absolute Mutable DoubleMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic Abs(DoubleScalar.Abs<AU,RU>[][] values, StorageType storageType) throws ValueException
values
- DoubleScalar.Abs<AU, RU>[][]; the values of the entries in the new Absolute Mutable DoubleMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesAbs(DoubleMatrixData data, AU unit)
data
- DoubleMatrixData; an internal data objectunit
- AU; the unitpublic MutableDoubleMatrix.Abs<AU,RU> toDense()
toDense
in interface DoubleMatrixInterface<AU extends AbsoluteLinearUnit<AU,RU>>
public MutableDoubleMatrix.Abs<AU,RU> toSparse()
toSparse
in interface DoubleMatrixInterface<AU extends AbsoluteLinearUnit<AU,RU>>
protected final DoubleMatrix.Abs<AU,RU> instantiateTypeAbs(DoubleMatrixData dmd, AU unit)
instantiateTypeAbs
in class AbstractDoubleMatrixAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,DoubleMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleMatrix.Rel<RU extends Unit<RU>>,MutableDoubleMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
dmd
- DoubleMatrixData; an internal data objectunit
- AU; the unitprotected final DoubleMatrix.Rel<RU> instantiateTypeRel(DoubleMatrixData dmd, RU unit)
instantiateTypeRel
in class AbstractDoubleMatrixAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,DoubleMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleMatrix.Rel<RU extends Unit<RU>>,MutableDoubleMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
dmd
- DoubleMatrixData; an internal data objectunit
- RU; the unitprotected final MutableDoubleMatrix.Abs<AU,RU> instantiateMutableType(DoubleMatrixData dmd, AU unit)
instantiateMutableType
in class AbstractDoubleMatrixAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,DoubleMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleMatrix.Rel<RU extends Unit<RU>>,MutableDoubleMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
dmd
- DoubleMatrixData; an internal data objectunit
- AU; the unitprotected final DoubleScalar.Abs<AU,RU> instantiateScalar(double value, AU unit)
instantiateScalar
in class AbstractDoubleMatrixAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,DoubleMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleMatrix.Rel<RU extends Unit<RU>>,MutableDoubleMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
value
- double; the valueunit
- AU; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.