public class MutablePressureMatrix extends AbstractMutableDoubleMatrixRel<PressureUnit,PressureMatrix,MutablePressureMatrix,Pressure>
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 |
---|
MutablePressureMatrix(double[][] values,
PressureUnit unit,
StorageType storageType)
Construct a new Relative Immutable Double PressureMatrix.
|
MutablePressureMatrix(DoubleMatrixData data,
PressureUnit unit) |
MutablePressureMatrix(Pressure[][] values,
StorageType storageType)
Construct a new Relative Immutable Double PressureMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected MutablePressureMatrix |
instantiateMutableType(DoubleMatrixData dmd,
PressureUnit unit)
Construct a new Relative Mutable DoubleMatrix of the right type.
|
protected Pressure |
instantiateScalar(double value,
PressureUnit unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
protected PressureMatrix |
instantiateType(DoubleMatrixData dmd,
PressureUnit unit)
Construct a new Relative Immutable DoubleMatrix of the right type.
|
MutablePressureMatrix |
toDense()
Create a dense version of this DoubleMatrix.
|
MutablePressureMatrix |
toSparse()
Create a sparse version of this DoubleMatrix.
|
abs, assign, ceil, checkCopyOnWrite, copy, decrementBy, decrementBy, decrementBy, divideBy, divideBy, divideBy, floor, immutable, incrementBy, incrementBy, incrementBy, multiplyBy, multiplyBy, multiplyBy, mutable, neg, normalize, rint, round, set, setCopyOnWrite, setInUnit, setSI
checkUnit, divide, ensureRectangularAndNonEmpty, get, minus, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
DIV, MULT, POW
public MutablePressureMatrix(double[][] values, PressureUnit unit, StorageType storageType) throws ValueException
values
- double[][]; the values of the entries in the new Relative Immutable Double PressureMatrixunit
- PressureUnit; the unit of the new Relative Immutable Double PressureMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutablePressureMatrix(Pressure[][] values, StorageType storageType) throws ValueException
values
- Pressure[][]; the values of the entries in the new Relative Immutable Double PressureMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesMutablePressureMatrix(DoubleMatrixData data, PressureUnit unit)
data
- DoubleMatrixData; an internal data objectunit
- PressureUnit; the unitpublic final MutablePressureMatrix toDense()
public final MutablePressureMatrix toSparse()
protected final PressureMatrix instantiateType(DoubleMatrixData dmd, PressureUnit unit)
instantiateType
in class AbstractDoubleMatrixRel<PressureUnit,PressureMatrix,MutablePressureMatrix,Pressure>
dmd
- DoubleMatrixData; an internal data objectunit
- U; the unitprotected final MutablePressureMatrix instantiateMutableType(DoubleMatrixData dmd, PressureUnit unit)
instantiateMutableType
in class AbstractDoubleMatrixRel<PressureUnit,PressureMatrix,MutablePressureMatrix,Pressure>
dmd
- DoubleMatrixData; an internal data objectunit
- U; the unitprotected final Pressure instantiateScalar(double value, PressureUnit unit)
instantiateScalar
in class AbstractDoubleMatrixRel<PressureUnit,PressureMatrix,MutablePressureMatrix,Pressure>
value
- double; the valueunit
- U; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.