public class FloatPositionMatrix extends AbstractFloatMatrixAbs<PositionUnit,LengthUnit,FloatPositionMatrix,FloatLengthMatrix,MutableFloatPositionMatrix,FloatPosition>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-09-29 14:14:28 +0200 (Tue, 29 Sep 2015) $, @version $Revision: 73 $, by $Author: pknoppers $, initial
version Sep 5, 2015
data
Constructor and Description |
---|
FloatPositionMatrix(float[][] values,
PositionUnit unit,
StorageType storageType)
Construct a new Absolute Immutable FloatPositionMatrix.
|
FloatPositionMatrix(FloatMatrixData data,
PositionUnit unit)
Construct a new Absolute Immutable FloatPositionMatrix.
|
FloatPositionMatrix(FloatPosition[][] values,
StorageType storageType)
Construct a new Absolute Immutable FloatPositionMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected MutableFloatPositionMatrix |
instantiateMutableType(FloatMatrixData fmd,
PositionUnit unit)
Construct a new Absolute Mutable FloatMatrix of the right type.
|
protected FloatPosition |
instantiateScalar(float value,
PositionUnit unit)
Construct a new Absolute Immutable FloatScalar of the right type.
|
protected FloatPositionMatrix |
instantiateTypeAbs(FloatMatrixData fmd,
PositionUnit unit)
Construct a new Absolute Immutable FloatMatrix of the right type.
|
protected FloatLengthMatrix |
instantiateTypeRel(FloatMatrixData fmd,
LengthUnit unit)
Construct a new Relative Immutable FloatMatrix of the right type.
|
FloatPositionMatrix |
toDense()
Create a dense version of this FloatMatrix.
|
FloatPositionMatrix |
toSparse()
Create a sparse version of this FloatMatrix.
|
checkUnit, ensureRectangularAndNonEmpty, get, minus, minus, mutable, plus
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 FloatPositionMatrix(float[][] values, PositionUnit unit, StorageType storageType) throws ValueException
values
- float[][]; the values of the entries in the new Absolute Immutable FloatPositionMatrixunit
- U; the unit of the new Absolute Immutable FloatPositionMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic FloatPositionMatrix(FloatPosition[][] values, StorageType storageType) throws ValueException
values
- FloatScalar.Rel<U>[][]; the values of the entries in the new Absolute Immutable FloatPositionMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesFloatPositionMatrix(FloatMatrixData data, PositionUnit unit)
data
- an internal data objectunit
- the unitpublic final FloatPositionMatrix toDense()
public final FloatPositionMatrix toSparse()
protected final FloatPositionMatrix instantiateTypeAbs(FloatMatrixData fmd, PositionUnit unit)
instantiateTypeAbs
in class AbstractFloatMatrixAbs<PositionUnit,LengthUnit,FloatPositionMatrix,FloatLengthMatrix,MutableFloatPositionMatrix,FloatPosition>
fmd
- an internal data objectunit
- the unitprotected final FloatLengthMatrix instantiateTypeRel(FloatMatrixData fmd, LengthUnit unit)
instantiateTypeRel
in class AbstractFloatMatrixAbs<PositionUnit,LengthUnit,FloatPositionMatrix,FloatLengthMatrix,MutableFloatPositionMatrix,FloatPosition>
fmd
- an internal data objectunit
- the unitprotected final MutableFloatPositionMatrix instantiateMutableType(FloatMatrixData fmd, PositionUnit unit)
instantiateMutableType
in class AbstractFloatMatrixAbs<PositionUnit,LengthUnit,FloatPositionMatrix,FloatLengthMatrix,MutableFloatPositionMatrix,FloatPosition>
fmd
- an internal data objectunit
- the unitprotected final FloatPosition instantiateScalar(float value, PositionUnit unit)
instantiateScalar
in class AbstractFloatMatrixAbs<PositionUnit,LengthUnit,FloatPositionMatrix,FloatLengthMatrix,MutableFloatPositionMatrix,FloatPosition>
value
- the valueunit
- the unitCopyright © 2015–2018 Delft University of Technology. All rights reserved.