AU
- Absolute unitRU
- Relative unitpublic static class DoubleMatrix.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>> extends AbstractDoubleMatrixAbs<AU,RU,DoubleMatrix.Abs<AU,RU>,DoubleMatrix.Rel<RU>,MutableDoubleMatrix.Abs<AU,RU>,DoubleScalar.Abs<AU,RU>>
data
Constructor and Description |
---|
Abs(double[][] values,
AU unit,
StorageType storageType)
Construct a new Absolute Immutable DoubleMatrix.
|
Abs(DoubleMatrixData data,
AU unit)
Construct a new Absolute Immutable DoubleMatrix.
|
Abs(DoubleScalar.Abs<AU,RU>[][] values,
StorageType storageType)
Construct a new Absolute Immutable 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.
|
DoubleMatrix.Abs<AU,RU> |
toDense()
Create a dense version of this DoubleMatrix.
|
DoubleMatrix.Abs<AU,RU> |
toSparse()
Create a sparse version of this DoubleMatrix.
|
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
public Abs(double[][] values, AU unit, StorageType storageType) throws ValueException
values
- double[][]; the values of the entries in the new Absolute Immutable DoubleMatrixunit
- AU; the unit of the new Absolute Immutable 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 Immutable
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 DoubleMatrix.Abs<AU,RU> toDense()
public DoubleMatrix.Abs<AU,RU> toSparse()
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.