public class FloatVolumeMatrix extends AbstractFloatMatrixRel<VolumeUnit,FloatVolumeMatrix,MutableFloatVolumeMatrix,FloatVolume>
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 |
---|
FloatVolumeMatrix(float[][] values,
VolumeUnit unit,
StorageType storageType)
Construct a new Relative Immutable FloatVolumeMatrix.
|
FloatVolumeMatrix(FloatMatrixData data,
VolumeUnit unit) |
FloatVolumeMatrix(FloatVolume[][] values,
StorageType storageType)
Construct a new Relative Immutable FloatVolumeMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected MutableFloatVolumeMatrix |
instantiateMutableType(FloatMatrixData fmd,
VolumeUnit unit)
Construct a new Relative Mutable FloatMatrix of the right type.
|
protected FloatVolume |
instantiateScalar(float value,
VolumeUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatVolumeMatrix |
instantiateType(FloatMatrixData fmd,
VolumeUnit unit)
Construct a new Relative Immutable FloatMatrix of the right type.
|
FloatVolumeMatrix |
toDense()
Create a dense version of this FloatMatrix.
|
FloatVolumeMatrix |
toSparse()
Create a sparse version of this FloatMatrix.
|
checkUnit, divide, ensureRectangularAndNonEmpty, get, minus, mutable, 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
cardinality, columns, determinant, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, rows, toString, toString, toString, toString, zSum
public FloatVolumeMatrix(float[][] values, VolumeUnit unit, StorageType storageType) throws ValueException
values
- float[][]; the values of the entries in the new Relative Immutable FloatVolumeMatrixunit
- VolumeUnit; the unit of the new Relative Immutable FloatVolumeMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic FloatVolumeMatrix(FloatVolume[][] values, StorageType storageType) throws ValueException
values
- FloatVolume[][]; the values of the entries in the new Relative Immutable Float FloatVolumeMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesFloatVolumeMatrix(FloatMatrixData data, VolumeUnit unit)
data
- FloatMatrixData; an internal data objectunit
- VolumeUnit; the unitpublic final FloatVolumeMatrix toDense()
public final FloatVolumeMatrix toSparse()
protected final FloatVolumeMatrix instantiateType(FloatMatrixData fmd, VolumeUnit unit)
instantiateType
in class AbstractFloatMatrixRel<VolumeUnit,FloatVolumeMatrix,MutableFloatVolumeMatrix,FloatVolume>
fmd
- FloatMatrixData; an internal data objectunit
- U; the unitprotected final MutableFloatVolumeMatrix instantiateMutableType(FloatMatrixData fmd, VolumeUnit unit)
instantiateMutableType
in class AbstractFloatMatrixRel<VolumeUnit,FloatVolumeMatrix,MutableFloatVolumeMatrix,FloatVolume>
fmd
- FloatMatrixData; an internal data objectunit
- U; the unitprotected final FloatVolume instantiateScalar(float value, VolumeUnit unit)
instantiateScalar
in class AbstractFloatMatrixRel<VolumeUnit,FloatVolumeMatrix,MutableFloatVolumeMatrix,FloatVolume>
value
- float; the valueunit
- U; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.