public class MutableDirectionMatrix extends AbstractMutableDoubleMatrixAbs<DirectionUnit,AngleUnit,DirectionMatrix,AngleMatrix,MutableDirectionMatrix,Direction>
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 |
|---|
MutableDirectionMatrix(Direction[][] values,
StorageType storageType)
Construct a new Absolute Mutable Double DirectionMatrix.
|
MutableDirectionMatrix(double[][] values,
DirectionUnit unit,
StorageType storageType)
Construct a new Absolute Mutable Double DirectionMatrix.
|
MutableDirectionMatrix(DoubleMatrixData data,
DirectionUnit unit)
Construct a new Absolute Mutable Double DirectionMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
protected MutableDirectionMatrix |
instantiateMutableType(DoubleMatrixData dmd,
DirectionUnit unit)
Construct a new Absolute Mutable DoubleMatrix of the right type.
|
protected Direction |
instantiateScalar(double value,
DirectionUnit unit)
Construct a new Absolute Immutable DoubleScalar of the right type.
|
protected DirectionMatrix |
instantiateTypeAbs(DoubleMatrixData dmd,
DirectionUnit unit)
Construct a new Absolute Immutable DoubleMatrix of the right type.
|
protected AngleMatrix |
instantiateTypeRel(DoubleMatrixData dmd,
AngleUnit unit)
Construct a new Relative Immutable DoubleMatrix of the right type.
|
MutableDirectionMatrix |
toDense()
Create a dense version of this DoubleMatrix.
|
MutableDirectionMatrix |
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, setSIcheckUnit, ensureRectangularAndNonEmpty, get, minus, minus, pluscardinality, checkIndex, checkSize, checkSize, columns, determinant, ensureRectangularAndNonEmpty, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, rows, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnitclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWpublic MutableDirectionMatrix(double[][] values,
DirectionUnit unit,
StorageType storageType)
throws ValueException
values - double[][]; the values of the entries in the new Absolute Mutable Double DirectionMatrixunit - DirectionUnit; the unit of the new Absolute Mutable Double DirectionMatrixstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableDirectionMatrix(Direction[][] values, StorageType storageType) throws ValueException
values - Direction[][]; the values of the entries in the new Absolute Mutable Double DirectionMatrixstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriesMutableDirectionMatrix(DoubleMatrixData data, DirectionUnit unit)
data - DoubleMatrixData; an internal data objectunit - DirectionUnit; the unitpublic final MutableDirectionMatrix toDense()
public final MutableDirectionMatrix toSparse()
protected final DirectionMatrix instantiateTypeAbs(DoubleMatrixData dmd, DirectionUnit unit)
instantiateTypeAbs in class AbstractDoubleMatrixAbs<DirectionUnit,AngleUnit,DirectionMatrix,AngleMatrix,MutableDirectionMatrix,Direction>dmd - DoubleMatrixData; an internal data objectunit - AU; the unitprotected final AngleMatrix instantiateTypeRel(DoubleMatrixData dmd, AngleUnit unit)
instantiateTypeRel in class AbstractDoubleMatrixAbs<DirectionUnit,AngleUnit,DirectionMatrix,AngleMatrix,MutableDirectionMatrix,Direction>dmd - DoubleMatrixData; an internal data objectunit - RU; the unitprotected final MutableDirectionMatrix instantiateMutableType(DoubleMatrixData dmd, DirectionUnit unit)
instantiateMutableType in class AbstractDoubleMatrixAbs<DirectionUnit,AngleUnit,DirectionMatrix,AngleMatrix,MutableDirectionMatrix,Direction>dmd - DoubleMatrixData; an internal data objectunit - AU; the unitprotected final Direction instantiateScalar(double value, DirectionUnit unit)
instantiateScalar in class AbstractDoubleMatrixAbs<DirectionUnit,AngleUnit,DirectionMatrix,AngleMatrix,MutableDirectionMatrix,Direction>value - double; the valueunit - AU; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.