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