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