public class MutableFlowVolumeMatrix extends AbstractMutableDoubleMatrixRel<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 |
|---|
MutableFlowVolumeMatrix(double[][] values,
FlowVolumeUnit unit,
StorageType storageType)
Construct a new Relative Immutable Double FlowVolumeMatrix.
|
MutableFlowVolumeMatrix(DoubleMatrixData data,
FlowVolumeUnit unit) |
MutableFlowVolumeMatrix(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.
|
MutableFlowVolumeMatrix |
toDense()
Create a dense version of this DoubleMatrix.
|
MutableFlowVolumeMatrix |
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, setSIcheckUnit, divide, ensureRectangularAndNonEmpty, get, minus, 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, setDisplayUnitclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWpublic MutableFlowVolumeMatrix(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 MutableFlowVolumeMatrix(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 entriesMutableFlowVolumeMatrix(DoubleMatrixData data, FlowVolumeUnit unit)
data - DoubleMatrixData; an internal data objectunit - FlowVolumeUnit; the unitpublic final MutableFlowVolumeMatrix toDense()
public final MutableFlowVolumeMatrix 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.