public class FloatDimensionlessMatrix extends AbstractFloatMatrixRel<DimensionlessUnit,FloatDimensionlessMatrix,MutableFloatDimensionlessMatrix,FloatDimensionless>
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 |
---|
FloatDimensionlessMatrix(float[][] values,
DimensionlessUnit unit,
StorageType storageType)
Construct a new Relative Immutable FloatDimensionlessMatrix.
|
FloatDimensionlessMatrix(FloatDimensionless[][] values,
StorageType storageType)
Construct a new Relative Immutable FloatDimensionlessMatrix.
|
FloatDimensionlessMatrix(FloatMatrixData data,
DimensionlessUnit unit) |
Modifier and Type | Method and Description |
---|---|
protected MutableFloatDimensionlessMatrix |
instantiateMutableType(FloatMatrixData fmd,
DimensionlessUnit unit)
Construct a new Relative Mutable FloatMatrix of the right type.
|
protected FloatDimensionless |
instantiateScalar(float value,
DimensionlessUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatDimensionlessMatrix |
instantiateType(FloatMatrixData fmd,
DimensionlessUnit unit)
Construct a new Relative Immutable FloatMatrix of the right type.
|
FloatDimensionlessMatrix |
toDense()
Create a dense version of this FloatMatrix.
|
FloatDimensionlessMatrix |
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 FloatDimensionlessMatrix(float[][] values, DimensionlessUnit unit, StorageType storageType) throws ValueException
values
- float[][]; the values of the entries in the new Relative Immutable FloatDimensionlessMatrixunit
- DimensionlessUnit; the unit of the new Relative Immutable FloatDimensionlessMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic FloatDimensionlessMatrix(FloatDimensionless[][] values, StorageType storageType) throws ValueException
values
- FloatDimensionless[][]; the values of the entries in the new Relative Immutable Float
FloatDimensionlessMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesFloatDimensionlessMatrix(FloatMatrixData data, DimensionlessUnit unit)
data
- FloatMatrixData; an internal data objectunit
- DimensionlessUnit; the unitpublic final FloatDimensionlessMatrix toDense()
public final FloatDimensionlessMatrix toSparse()
protected final FloatDimensionlessMatrix instantiateType(FloatMatrixData fmd, DimensionlessUnit unit)
instantiateType
in class AbstractFloatMatrixRel<DimensionlessUnit,FloatDimensionlessMatrix,MutableFloatDimensionlessMatrix,FloatDimensionless>
fmd
- FloatMatrixData; an internal data objectunit
- U; the unitprotected final MutableFloatDimensionlessMatrix instantiateMutableType(FloatMatrixData fmd, DimensionlessUnit unit)
instantiateMutableType
in class AbstractFloatMatrixRel<DimensionlessUnit,FloatDimensionlessMatrix,MutableFloatDimensionlessMatrix,FloatDimensionless>
fmd
- FloatMatrixData; an internal data objectunit
- U; the unitprotected final FloatDimensionless instantiateScalar(float value, DimensionlessUnit unit)
instantiateScalar
in class AbstractFloatMatrixRel<DimensionlessUnit,FloatDimensionlessMatrix,MutableFloatDimensionlessMatrix,FloatDimensionless>
value
- float; the valueunit
- U; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.