public class MoneyPerVolumeMatrix extends AbstractDoubleMatrixRel<MoneyPerVolumeUnit,MoneyPerVolumeMatrix,MutableMoneyPerVolumeMatrix,MoneyPerVolume>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
data
Constructor and Description |
---|
MoneyPerVolumeMatrix(double[][] values,
MoneyPerVolumeUnit unit,
StorageType storageType)
Construct a new Relative Immutable Double MoneyPerVolumeMatrix.
|
MoneyPerVolumeMatrix(DoubleMatrixData data,
MoneyPerVolumeUnit unit) |
MoneyPerVolumeMatrix(MoneyPerVolume[][] values,
StorageType storageType)
Construct a new Relative Immutable Double MoneyPerVolumeMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected MutableMoneyPerVolumeMatrix |
instantiateMutableType(DoubleMatrixData dmd,
MoneyPerVolumeUnit unit)
Construct a new Relative Mutable DoubleMatrix of the right type.
|
protected MoneyPerVolume |
instantiateScalar(double value,
MoneyPerVolumeUnit unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
protected MoneyPerVolumeMatrix |
instantiateType(DoubleMatrixData dmd,
MoneyPerVolumeUnit unit)
Construct a new Relative Immutable DoubleMatrix of the right type.
|
MoneyPerVolumeMatrix |
toDense()
Create a dense version of this DoubleMatrix.
|
MoneyPerVolumeMatrix |
toSparse()
Create a sparse version of this DoubleMatrix.
|
checkUnit, divide, ensureRectangularAndNonEmpty, get, minus, mutable, plus, times
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 MoneyPerVolumeMatrix(double[][] values, MoneyPerVolumeUnit unit, StorageType storageType) throws ValueException
values
- double[][]; the values of the entries in the new Relative Immutable Double MoneyPerVolumeMatrixunit
- MoneyPerVolumeUnit; the unit of the new Relative Immutable Double MoneyPerVolumeMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MoneyPerVolumeMatrix(MoneyPerVolume[][] values, StorageType storageType) throws ValueException
values
- MoneyPerVolume[][]; the values of the entries in the new Relative Immutable Double MoneyPerVolumeMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesMoneyPerVolumeMatrix(DoubleMatrixData data, MoneyPerVolumeUnit unit)
data
- DoubleMatrixData; an internal data objectunit
- MoneyPerVolumeUnit; the unitpublic final MoneyPerVolumeMatrix toDense()
public final MoneyPerVolumeMatrix toSparse()
protected final MoneyPerVolumeMatrix instantiateType(DoubleMatrixData dmd, MoneyPerVolumeUnit unit)
instantiateType
in class AbstractDoubleMatrixRel<MoneyPerVolumeUnit,MoneyPerVolumeMatrix,MutableMoneyPerVolumeMatrix,MoneyPerVolume>
dmd
- DoubleMatrixData; an internal data objectunit
- U; the unitprotected final MutableMoneyPerVolumeMatrix instantiateMutableType(DoubleMatrixData dmd, MoneyPerVolumeUnit unit)
instantiateMutableType
in class AbstractDoubleMatrixRel<MoneyPerVolumeUnit,MoneyPerVolumeMatrix,MutableMoneyPerVolumeMatrix,MoneyPerVolume>
dmd
- DoubleMatrixData; an internal data objectunit
- U; the unitprotected final MoneyPerVolume instantiateScalar(double value, MoneyPerVolumeUnit unit)
instantiateScalar
in class AbstractDoubleMatrixRel<MoneyPerVolumeUnit,MoneyPerVolumeMatrix,MutableMoneyPerVolumeMatrix,MoneyPerVolume>
value
- double; the valueunit
- U; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.