public class PressureMatrix extends AbstractDoubleMatrixRel<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 |
|---|
PressureMatrix(double[][] values,
PressureUnit unit,
StorageType storageType)
Construct a new Relative Immutable Double PressureMatrix.
|
PressureMatrix(DoubleMatrixData data,
PressureUnit unit) |
PressureMatrix(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.
|
PressureMatrix |
toDense()
Create a dense version of this DoubleMatrix.
|
PressureMatrix |
toSparse()
Create a sparse version of this DoubleMatrix.
|
checkUnit, divide, ensureRectangularAndNonEmpty, get, minus, mutable, plus, timescardinality, checkIndex, checkSize, checkSize, columns, determinant, ensureRectangularAndNonEmpty, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, rows, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnitpublic PressureMatrix(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 PressureMatrix(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 entriesPressureMatrix(DoubleMatrixData data, PressureUnit unit)
data - DoubleMatrixData; an internal data objectunit - PressureUnit; the unitpublic final PressureMatrix toDense()
public final PressureMatrix 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.