public class MutableFloatElectricalPotentialVector extends AbstractMutableFloatVectorRel<ElectricalPotentialUnit,FloatElectricalPotentialVector,MutableFloatElectricalPotentialVector,FloatElectricalPotential>
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.Itrdata| Constructor and Description |
|---|
MutableFloatElectricalPotentialVector(float[] values,
ElectricalPotentialUnit unit,
StorageType storageType)
Construct a new Relative Immutable Float ElectricalPotentialVector.
|
MutableFloatElectricalPotentialVector(FloatElectricalPotential[] values,
StorageType storageType)
Construct a new Relative Immutable Float ElectricalPotentialVector.
|
MutableFloatElectricalPotentialVector(FloatVectorData data,
ElectricalPotentialUnit unit) |
MutableFloatElectricalPotentialVector(List<Float> values,
ElectricalPotentialUnit unit,
StorageType storageType)
Construct a new Relative Immutable Float ElectricalPotentialVector.
|
MutableFloatElectricalPotentialVector(List<FloatElectricalPotential> values,
StorageType storageType)
Construct a new Relative Immutable Float ElectricalPotentialVector.
|
MutableFloatElectricalPotentialVector(SortedMap<Integer,Float> values,
ElectricalPotentialUnit unit,
int length,
StorageType storageType)
Construct a new Relative Immutable Float ElectricalPotentialVector.
|
MutableFloatElectricalPotentialVector(SortedMap<Integer,FloatElectricalPotential> values,
int length,
StorageType storageType)
Construct a new Relative Immutable Float ElectricalPotentialVector.
|
| Modifier and Type | Method and Description |
|---|---|
protected MutableFloatElectricalPotentialVector |
instantiateMutableType(FloatVectorData dvd,
ElectricalPotentialUnit unit)
Construct a new Relative Mutable FloatVector of the right type.
|
protected FloatElectricalPotential |
instantiateScalar(float value,
ElectricalPotentialUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatElectricalPotentialVector |
instantiateType(FloatVectorData dvd,
ElectricalPotentialUnit unit)
Construct a new Relative Immutable FloatVector of the right type.
|
FloatElectricalPotential[] |
toArray()
Return an array of FloatElectricalPotential Scalars from this vector.
|
MutableFloatElectricalPotentialVector |
toDense()
return a dense version of this vector.
|
MutableFloatElectricalPotentialVector |
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, setSIcheckUnit, checkUnit, checkUnit, divide, get, iterator, minus, plus, timescardinality, checkIndex, checkSize, checkSize, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, size, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnitclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWcardinality, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSumforEach, spliteratorpublic MutableFloatElectricalPotentialVector(float[] values,
ElectricalPotentialUnit unit,
StorageType storageType)
throws ValueException
values - float[]; the values of the entries in the new Relative Immutable Float ElectricalPotentialVectorunit - ElectricalPotentialUnit; the unit of the new Relative Immutable Float ElectricalPotentialVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableFloatElectricalPotentialVector(List<Float> values, ElectricalPotentialUnit unit, StorageType storageType) throws ValueException
values - List<Float>; the values of the entries in the new Relative Immutable Float ElectricalPotentialVectorunit - ElectricalPotentialUnit; the unit of the new Relative Immutable Float ElectricalPotentialVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableFloatElectricalPotentialVector(FloatElectricalPotential[] values, StorageType storageType) throws ValueException
values - FloatElectricalPotential[]; the values of the entries in the new Relative Immutable Float
ElectricalPotentialVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatElectricalPotentialVector(List<FloatElectricalPotential> values, StorageType storageType) throws ValueException
values - List<FloatElectricalPotential>; the values of the entries in the new Relative Immutable Float
ElectricalPotentialVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatElectricalPotentialVector(SortedMap<Integer,FloatElectricalPotential> values, int length, StorageType storageType) throws ValueException
values - SortedMap<Integer, FloatElectricalPotential>; the values of the entries in the new Relative Sparse
Mutable Float ElectricalPotentialVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatElectricalPotentialVector(SortedMap<Integer,Float> values, ElectricalPotentialUnit unit, int length, StorageType storageType) throws ValueException
values - SortedMap<Integer, Float>; the map of indexes to values of the Relative Sparse Mutable Float
ElectricalPotentialVectorunit - ElectricalPotentialUnit; the unit of the new Relative Sparse Mutable Float ElectricalPotentialVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullMutableFloatElectricalPotentialVector(FloatVectorData data, ElectricalPotentialUnit unit)
data - FloatVectorData; an internal data objectunit - ElectricalPotentialUnit; the unitprotected final FloatElectricalPotentialVector instantiateType(FloatVectorData dvd, ElectricalPotentialUnit unit)
instantiateType in class AbstractFloatVectorRel<ElectricalPotentialUnit,FloatElectricalPotentialVector,MutableFloatElectricalPotentialVector,FloatElectricalPotential>dvd - FloatVectorData; an internal data objectunit - U; the unitprotected final MutableFloatElectricalPotentialVector instantiateMutableType(FloatVectorData dvd, ElectricalPotentialUnit unit)
instantiateMutableType in class AbstractFloatVectorRel<ElectricalPotentialUnit,FloatElectricalPotentialVector,MutableFloatElectricalPotentialVector,FloatElectricalPotential>dvd - FloatVectorData; an internal data objectunit - U; the unitprotected final FloatElectricalPotential instantiateScalar(float value, ElectricalPotentialUnit unit)
instantiateScalar in class AbstractFloatVectorRel<ElectricalPotentialUnit,FloatElectricalPotentialVector,MutableFloatElectricalPotentialVector,FloatElectricalPotential>value - float; the valueunit - U; the unitpublic final MutableFloatElectricalPotentialVector toDense()
public final MutableFloatElectricalPotentialVector toSparse()
public FloatElectricalPotential[] toArray()
RuntimeException - wrapping a ValueException on error getting one of the valuesCopyright © 2015–2019 Delft University of Technology. All rights reserved.