public class MutablePositionMatrix extends AbstractMutableDoubleMatrixAbs<PositionUnit,LengthUnit,PositionMatrix,LengthMatrix,MutablePositionMatrix,Position>
Copyright (c) 2013-2019 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 |
---|
MutablePositionMatrix(double[][] values,
PositionUnit unit,
StorageType storageType)
Construct a new Absolute Mutable Double PositionMatrix.
|
MutablePositionMatrix(DoubleMatrixData data,
PositionUnit unit)
Construct a new Absolute Mutable Double PositionMatrix.
|
MutablePositionMatrix(Position[][] values,
StorageType storageType)
Construct a new Absolute Mutable Double PositionMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected MutablePositionMatrix |
instantiateMutableType(DoubleMatrixData dmd,
PositionUnit unit)
Construct a new Absolute Mutable DoubleMatrix of the right type.
|
protected Position |
instantiateScalar(double value,
PositionUnit unit)
Construct a new Absolute Immutable DoubleScalar of the right type.
|
protected PositionMatrix |
instantiateTypeAbs(DoubleMatrixData dmd,
PositionUnit unit)
Construct a new Absolute Immutable DoubleMatrix of the right type.
|
protected LengthMatrix |
instantiateTypeRel(DoubleMatrixData dmd,
LengthUnit unit)
Construct a new Relative Immutable DoubleMatrix of the right type.
|
MutablePositionMatrix |
toDense()
Create a dense version of this DoubleMatrix.
|
MutablePositionMatrix |
toSparse()
Create a sparse version of this DoubleMatrix.
|
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
public MutablePositionMatrix(double[][] values, PositionUnit unit, StorageType storageType) throws ValueException
values
- double[][]; the values of the entries in the new Absolute Mutable Double PositionMatrixunit
- PositionUnit; the unit of the new Absolute Mutable Double PositionMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutablePositionMatrix(Position[][] values, StorageType storageType) throws ValueException
values
- Position[][]; the values of the entries in the new Absolute Mutable Double PositionMatrixstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesMutablePositionMatrix(DoubleMatrixData data, PositionUnit unit)
data
- DoubleMatrixData; an internal data objectunit
- PositionUnit; the unitpublic final MutablePositionMatrix toDense()
public final MutablePositionMatrix toSparse()
protected final PositionMatrix instantiateTypeAbs(DoubleMatrixData dmd, PositionUnit unit)
instantiateTypeAbs
in class AbstractDoubleMatrixAbs<PositionUnit,LengthUnit,PositionMatrix,LengthMatrix,MutablePositionMatrix,Position>
dmd
- DoubleMatrixData; an internal data objectunit
- AU; the unitprotected final LengthMatrix instantiateTypeRel(DoubleMatrixData dmd, LengthUnit unit)
instantiateTypeRel
in class AbstractDoubleMatrixAbs<PositionUnit,LengthUnit,PositionMatrix,LengthMatrix,MutablePositionMatrix,Position>
dmd
- DoubleMatrixData; an internal data objectunit
- RU; the unitprotected final MutablePositionMatrix instantiateMutableType(DoubleMatrixData dmd, PositionUnit unit)
instantiateMutableType
in class AbstractDoubleMatrixAbs<PositionUnit,LengthUnit,PositionMatrix,LengthMatrix,MutablePositionMatrix,Position>
dmd
- DoubleMatrixData; an internal data objectunit
- AU; the unitprotected final Position instantiateScalar(double value, PositionUnit unit)
instantiateScalar
in class AbstractDoubleMatrixAbs<PositionUnit,LengthUnit,PositionMatrix,LengthMatrix,MutablePositionMatrix,Position>
value
- double; the valueunit
- AU; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.