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