public class MutableFloatAbsoluteTemperatureVector extends AbstractMutableFloatVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,FloatAbsoluteTemperatureVector,FloatTemperatureVector,MutableFloatAbsoluteTemperatureVector,FloatAbsoluteTemperature>
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
AbstractFloatVectorAbs.Itr
data
Constructor and Description |
---|
MutableFloatAbsoluteTemperatureVector(float[] values,
AbsoluteTemperatureUnit unit,
StorageType storageType)
Construct a new Absolute Mutable FloatAbsoluteTemperatureVector.
|
MutableFloatAbsoluteTemperatureVector(FloatAbsoluteTemperature[] values,
StorageType storageType)
Construct a new Absolute Mutable FloatAbsoluteTemperatureVector.
|
MutableFloatAbsoluteTemperatureVector(FloatVectorData data,
AbsoluteTemperatureUnit unit)
Construct a new Absolute Mutable FloatAbsoluteTemperatureVector.
|
MutableFloatAbsoluteTemperatureVector(List<Float> values,
AbsoluteTemperatureUnit unit,
StorageType storageType)
Construct a new Absolute Mutable FloatAbsoluteTemperatureVector.
|
MutableFloatAbsoluteTemperatureVector(List<FloatAbsoluteTemperature> values,
StorageType storageType)
Construct a new Absolute Mutable FloatAbsoluteTemperatureVector.
|
MutableFloatAbsoluteTemperatureVector(SortedMap<Integer,Float> values,
AbsoluteTemperatureUnit unit,
int length,
StorageType storageType)
Construct a new Absolute Mutable FloatAbsoluteTemperatureVector.
|
MutableFloatAbsoluteTemperatureVector(SortedMap<Integer,FloatAbsoluteTemperature> values,
int length,
StorageType storageType)
Construct a new Absolute Mutable FloatAbsoluteTemperatureVector.
|
Modifier and Type | Method and Description |
---|---|
protected MutableFloatAbsoluteTemperatureVector |
instantiateMutableType(FloatVectorData dvd,
AbsoluteTemperatureUnit unit)
Construct a new Absolute Mutable FloatVector of the right type.
|
protected FloatAbsoluteTemperature |
instantiateScalar(float value,
AbsoluteTemperatureUnit unit)
Construct a new Absolute Immutable FloatScalar of the right type.
|
protected FloatAbsoluteTemperatureVector |
instantiateTypeAbs(FloatVectorData dvd,
AbsoluteTemperatureUnit unit)
Construct a new Absolute Immutable FloatVector of the right type.
|
protected FloatTemperatureVector |
instantiateTypeRel(FloatVectorData dvd,
TemperatureUnit unit)
Construct a new Relative Immutable FloatVector of the right type.
|
FloatAbsoluteTemperature[] |
toArray()
Return an array of FloatAbsoluteTemperature Scalars from this vector.
|
MutableFloatAbsoluteTemperatureVector |
toDense()
return a dense version of this vector.
|
MutableFloatAbsoluteTemperatureVector |
toSparse()
return a sparse version of this vector.
|
assign, ceil, checkCopyOnWrite, copy, decrementBy, decrementBy, decrementBy, divideBy, floor, immutable, incrementBy, incrementBy, incrementBy, multiplyBy, multiplyBy, mutable, normalize, rint, round, set, setCopyOnWrite, setInUnit, setSI
checkUnit, checkUnit, checkUnit, get, iterator, minus, minus, plus
cardinality, checkIndex, checkSize, checkSize, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, size, toString, toString, toString, toString, zSum
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
DIV, MULT, POW
cardinality, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSum
forEach, spliterator
public MutableFloatAbsoluteTemperatureVector(float[] values, AbsoluteTemperatureUnit unit, StorageType storageType) throws ValueException
values
- float[]; the values of the entries in the new Absolute Mutable FloatAbsoluteTemperatureVectorunit
- U; the unit of the new Absolute Mutable FloatAbsoluteTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutableFloatAbsoluteTemperatureVector(List<Float> values, AbsoluteTemperatureUnit unit, StorageType storageType) throws ValueException
values
- List; the values of the entries in the new Absolute Mutable FloatAbsoluteTemperatureVectorunit
- U; the unit of the new Absolute Mutable FloatAbsoluteTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutableFloatAbsoluteTemperatureVector(FloatAbsoluteTemperature[] values, StorageType storageType) throws ValueException
values
- FloatScalar.Rel<U>[]; the values of the entries in the new Absolute Mutable
FloatAbsoluteTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic MutableFloatAbsoluteTemperatureVector(List<FloatAbsoluteTemperature> values, StorageType storageType) throws ValueException
values
- List; the values of the entries in the new Absolute Mutable FloatAbsoluteTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic MutableFloatAbsoluteTemperatureVector(SortedMap<Integer,FloatAbsoluteTemperature> values, int length, StorageType storageType) throws ValueException
values
- FloatScalar.Rel<U>[]; the values of the entries in the new Absolute Sparse Mutable
FloatAbsoluteTemperatureVectorlength
- the size of the vectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic MutableFloatAbsoluteTemperatureVector(SortedMap<Integer,Float> values, AbsoluteTemperatureUnit unit, int length, StorageType storageType) throws ValueException
values
- Map; the map of indexes to values of the Absolute Sparse Mutable FloatAbsoluteTemperatureVectorunit
- U; the unit of the new Absolute Sparse Mutable FloatAbsoluteTemperatureVectorlength
- the size of the vectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullMutableFloatAbsoluteTemperatureVector(FloatVectorData data, AbsoluteTemperatureUnit unit)
data
- an internal data objectunit
- the unitprotected final FloatAbsoluteTemperatureVector instantiateTypeAbs(FloatVectorData dvd, AbsoluteTemperatureUnit unit)
instantiateTypeAbs
in class AbstractFloatVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,FloatAbsoluteTemperatureVector,FloatTemperatureVector,MutableFloatAbsoluteTemperatureVector,FloatAbsoluteTemperature>
dvd
- an internal data objectunit
- the unitprotected final FloatTemperatureVector instantiateTypeRel(FloatVectorData dvd, TemperatureUnit unit)
instantiateTypeRel
in class AbstractFloatVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,FloatAbsoluteTemperatureVector,FloatTemperatureVector,MutableFloatAbsoluteTemperatureVector,FloatAbsoluteTemperature>
dvd
- an internal data objectunit
- the unitprotected final MutableFloatAbsoluteTemperatureVector instantiateMutableType(FloatVectorData dvd, AbsoluteTemperatureUnit unit)
instantiateMutableType
in class AbstractFloatVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,FloatAbsoluteTemperatureVector,FloatTemperatureVector,MutableFloatAbsoluteTemperatureVector,FloatAbsoluteTemperature>
dvd
- an internal data objectunit
- the unitprotected final FloatAbsoluteTemperature instantiateScalar(float value, AbsoluteTemperatureUnit unit)
instantiateScalar
in class AbstractFloatVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,FloatAbsoluteTemperatureVector,FloatTemperatureVector,MutableFloatAbsoluteTemperatureVector,FloatAbsoluteTemperature>
value
- the valueunit
- the unitpublic final MutableFloatAbsoluteTemperatureVector toDense()
public final MutableFloatAbsoluteTemperatureVector toSparse()
public FloatAbsoluteTemperature[] toArray()
RuntimeException
- wrapping a ValueException on error getting one of the valuesCopyright © 2015–2018 Delft University of Technology. All rights reserved.