public class MoneyPerMassMatrix extends AbstractDoubleMatrixRel<MoneyPerMassUnit,MoneyPerMassMatrix,MutableMoneyPerMassMatrix,MoneyPerMass>
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 |
---|
MoneyPerMassMatrix(double[][] values,
MoneyPerMassUnit unit,
StorageType storageType)
Construct a new Relative Immutable Double MoneyPerMassMatrix.
|
MoneyPerMassMatrix(DoubleMatrixData data,
MoneyPerMassUnit unit) |
MoneyPerMassMatrix(MoneyPerMass[][] values,
StorageType storageType)
Construct a new Relative Immutable Double MoneyPerMassMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected MutableMoneyPerMassMatrix |
instantiateMutableType(DoubleMatrixData dmd,
MoneyPerMassUnit unit)
Construct a new Relative Mutable DoubleMatrix of the right type.
|
protected MoneyPerMass |
instantiateScalar(double value,
MoneyPerMassUnit unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
protected MoneyPerMassMatrix |
instantiateType(DoubleMatrixData dmd,
MoneyPerMassUnit unit)
Construct a new Relative Immutable DoubleMatrix of the right type.
|
MoneyPerMassMatrix |
toDense()
Create a dense version of this DoubleMatrix.
|
MoneyPerMassMatrix |
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 MoneyPerMassMatrix(double[][] values, MoneyPerMassUnit unit, StorageType storageType) throws ValueException
values
- double[][]; the values of the entries in the new Relative Immutable Double MoneyPerMassMatrixunit
- MoneyPerMassUnit; the unit of the new Relative Immutable Double MoneyPerMassMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MoneyPerMassMatrix(MoneyPerMass[][] values, StorageType storageType) throws ValueException
values
- MoneyPerMass[][]; the values of the entries in the new Relative Immutable Double MoneyPerMassMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesMoneyPerMassMatrix(DoubleMatrixData data, MoneyPerMassUnit unit)
data
- DoubleMatrixData; an internal data objectunit
- MoneyPerMassUnit; the unitpublic final MoneyPerMassMatrix toDense()
public final MoneyPerMassMatrix toSparse()
protected final MoneyPerMassMatrix instantiateType(DoubleMatrixData dmd, MoneyPerMassUnit unit)
instantiateType
in class AbstractDoubleMatrixRel<MoneyPerMassUnit,MoneyPerMassMatrix,MutableMoneyPerMassMatrix,MoneyPerMass>
dmd
- DoubleMatrixData; an internal data objectunit
- U; the unitprotected final MutableMoneyPerMassMatrix instantiateMutableType(DoubleMatrixData dmd, MoneyPerMassUnit unit)
instantiateMutableType
in class AbstractDoubleMatrixRel<MoneyPerMassUnit,MoneyPerMassMatrix,MutableMoneyPerMassMatrix,MoneyPerMass>
dmd
- DoubleMatrixData; an internal data objectunit
- U; the unitprotected final MoneyPerMass instantiateScalar(double value, MoneyPerMassUnit unit)
instantiateScalar
in class AbstractDoubleMatrixRel<MoneyPerMassUnit,MoneyPerMassMatrix,MutableMoneyPerMassMatrix,MoneyPerMass>
value
- double; the valueunit
- U; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.