public class MutableFloatAngleSolidVector extends AbstractMutableFloatVectorRel<AngleSolidUnit,FloatAngleSolidVector,MutableFloatAngleSolidVector,FloatAngleSolid>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
AbstractFloatVectorRel.Itr
data
Constructor and Description |
---|
MutableFloatAngleSolidVector(float[] values,
AngleSolidUnit unit,
StorageType storageType)
Construct a new Relative Immutable Float AngleSolidVector.
|
MutableFloatAngleSolidVector(FloatAngleSolid[] values,
StorageType storageType)
Construct a new Relative Immutable Float AngleSolidVector.
|
MutableFloatAngleSolidVector(FloatVectorData data,
AngleSolidUnit unit) |
MutableFloatAngleSolidVector(List<Float> values,
AngleSolidUnit unit,
StorageType storageType)
Construct a new Relative Immutable Float AngleSolidVector.
|
MutableFloatAngleSolidVector(List<FloatAngleSolid> values,
StorageType storageType)
Construct a new Relative Immutable Float AngleSolidVector.
|
MutableFloatAngleSolidVector(SortedMap<Integer,Float> values,
AngleSolidUnit unit,
int length,
StorageType storageType)
Construct a new Relative Immutable Float AngleSolidVector.
|
MutableFloatAngleSolidVector(SortedMap<Integer,FloatAngleSolid> values,
int length,
StorageType storageType)
Construct a new Relative Immutable Float AngleSolidVector.
|
Modifier and Type | Method and Description |
---|---|
protected MutableFloatAngleSolidVector |
instantiateMutableType(FloatVectorData dvd,
AngleSolidUnit unit)
Construct a new Relative Mutable FloatVector of the right type.
|
protected FloatAngleSolid |
instantiateScalar(float value,
AngleSolidUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatAngleSolidVector |
instantiateType(FloatVectorData dvd,
AngleSolidUnit unit)
Construct a new Relative Immutable FloatVector of the right type.
|
FloatAngleSolid[] |
toArray()
Return an array of FloatAngleSolid Scalars from this vector.
|
MutableFloatAngleSolidVector |
toDense()
return a dense version of this vector.
|
MutableFloatAngleSolidVector |
toSparse()
return a sparse version of this vector.
|
abs, assign, ceil, checkCopyOnWrite, copy, decrementBy, decrementBy, decrementBy, divideBy, divideBy, divideBy, floor, immutable, incrementBy, incrementBy, incrementBy, multiplyBy, multiplyBy, multiplyBy, mutable, neg, normalize, rint, round, set, setCopyOnWrite, setInUnit, setSI
checkUnit, checkUnit, checkUnit, divide, get, iterator, minus, plus, times
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 MutableFloatAngleSolidVector(float[] values, AngleSolidUnit unit, StorageType storageType) throws ValueException
values
- float[]; the values of the entries in the new Relative Immutable Float AngleSolidVectorunit
- AngleSolidUnit; the unit of the new Relative Immutable Float AngleSolidVectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutableFloatAngleSolidVector(List<Float> values, AngleSolidUnit unit, StorageType storageType) throws ValueException
values
- List<Float>; the values of the entries in the new Relative Immutable Float AngleSolidVectorunit
- AngleSolidUnit; the unit of the new Relative Immutable Float AngleSolidVectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutableFloatAngleSolidVector(FloatAngleSolid[] values, StorageType storageType) throws ValueException
values
- FloatAngleSolid[]; the values of the entries in the new Relative Immutable Float AngleSolidVectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic MutableFloatAngleSolidVector(List<FloatAngleSolid> values, StorageType storageType) throws ValueException
values
- List<FloatAngleSolid>; the values of the entries in the new Relative Immutable Float AngleSolidVectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic MutableFloatAngleSolidVector(SortedMap<Integer,FloatAngleSolid> values, int length, StorageType storageType) throws ValueException
values
- SortedMap<Integer, FloatAngleSolid>; the values of the entries in the new Relative Sparse Mutable
Float AngleSolidVectorlength
- int; the size of the vectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic MutableFloatAngleSolidVector(SortedMap<Integer,Float> values, AngleSolidUnit unit, int length, StorageType storageType) throws ValueException
values
- SortedMap<Integer, Float>; the map of indexes to values of the Relative Sparse Mutable Float
AngleSolidVectorunit
- AngleSolidUnit; the unit of the new Relative Sparse Mutable Float AngleSolidVectorlength
- int; the size of the vectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullMutableFloatAngleSolidVector(FloatVectorData data, AngleSolidUnit unit)
data
- FloatVectorData; an internal data objectunit
- AngleSolidUnit; the unitprotected final FloatAngleSolidVector instantiateType(FloatVectorData dvd, AngleSolidUnit unit)
instantiateType
in class AbstractFloatVectorRel<AngleSolidUnit,FloatAngleSolidVector,MutableFloatAngleSolidVector,FloatAngleSolid>
dvd
- FloatVectorData; an internal data objectunit
- U; the unitprotected final MutableFloatAngleSolidVector instantiateMutableType(FloatVectorData dvd, AngleSolidUnit unit)
instantiateMutableType
in class AbstractFloatVectorRel<AngleSolidUnit,FloatAngleSolidVector,MutableFloatAngleSolidVector,FloatAngleSolid>
dvd
- FloatVectorData; an internal data objectunit
- U; the unitprotected final FloatAngleSolid instantiateScalar(float value, AngleSolidUnit unit)
instantiateScalar
in class AbstractFloatVectorRel<AngleSolidUnit,FloatAngleSolidVector,MutableFloatAngleSolidVector,FloatAngleSolid>
value
- float; the valueunit
- U; the unitpublic final MutableFloatAngleSolidVector toDense()
public final MutableFloatAngleSolidVector toSparse()
public FloatAngleSolid[] toArray()
RuntimeException
- wrapping a ValueException on error getting one of the valuesCopyright © 2015–2019 Delft University of Technology. All rights reserved.