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