public class MutableFloatPositionMatrix extends AbstractMutableFloatMatrixAbs<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 |
---|
MutableFloatPositionMatrix(float[][] values,
PositionUnit unit,
StorageType storageType)
Construct a new Absolute Mutable FloatPositionMatrix.
|
MutableFloatPositionMatrix(FloatMatrixData data,
PositionUnit unit)
Construct a new Absolute Mutable FloatPositionMatrix.
|
MutableFloatPositionMatrix(FloatPosition[][] values,
StorageType storageType)
Construct a new Absolute Mutable 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.
|
MutableFloatPositionMatrix |
toDense()
Create a dense version of this FloatMatrix.
|
MutableFloatPositionMatrix |
toSparse()
Create a sparse version of this FloatMatrix.
|
assign, ceil, checkCopyOnWrite, copy, decrementBy, decrementBy, decrementBy, divideBy, floor, immutable, incrementBy, incrementBy, incrementBy, multiplyBy, multiplyBy, mutable, normalize, rint, round, set, setCopyOnWrite, setInUnit, setSI
checkUnit, ensureRectangularAndNonEmpty, get, minus, minus, 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
DIV, MULT, POW
cardinality, columns, determinant, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, rows, toString, toString, toString, toString, zSum
public MutableFloatPositionMatrix(float[][] values, PositionUnit unit, StorageType storageType) throws ValueException
values
- float[][]; the values of the entries in the new Absolute Mutable FloatPositionMatrixunit
- U; the unit of the new Absolute Mutable FloatPositionMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutableFloatPositionMatrix(FloatPosition[][] values, StorageType storageType) throws ValueException
values
- FloatScalar.Rel<U>[][]; the values of the entries in the new Absolute Mutable FloatPositionMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesMutableFloatPositionMatrix(FloatMatrixData data, PositionUnit unit)
data
- an internal data objectunit
- the unitpublic final MutableFloatPositionMatrix toDense()
public final MutableFloatPositionMatrix 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.