U - Unitpublic static class FloatVector.Rel<U extends Unit<U>> extends AbstractFloatVectorRel<U,FloatVector.Rel<U>,MutableFloatVector.Rel<U>,FloatScalar.Rel<U>>
AbstractFloatVectorRel.Itrdata| Constructor and Description |
|---|
Rel(float[] values,
U unit,
StorageType storageType)
Construct a new Relative Mutable FloatVector.
|
Rel(FloatScalar.Rel<U>[] values,
StorageType storageType)
Construct a new Relative Mutable FloatVector.
|
Rel(FloatVectorData data,
U unit)
Construct a new Relative Mutable FloatVector.
|
Rel(List<Float> values,
U unit,
StorageType storageType)
Construct a new Relative Mutable FloatVector.
|
Rel(List<FloatScalar.Rel<U>> values,
StorageType storageType)
Construct a new Relative Mutable FloatVector.
|
Rel(SortedMap<Integer,Float> values,
U unit,
int length,
StorageType storageType)
Construct a new Relative Mutable FloatVector.
|
Rel(SortedMap<Integer,FloatScalar.Rel<U>> values,
int length,
StorageType storageType)
Construct a new Relative Mutable FloatVector.
|
| Modifier and Type | Method and Description |
|---|---|
protected MutableFloatVector.Rel<U> |
instantiateMutableType(FloatVectorData dvd,
U unit)
Construct a new Relative Mutable FloatVector of the right type.
|
protected FloatScalar.Rel<U> |
instantiateScalar(float value,
U unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatVector.Rel<U> |
instantiateType(FloatVectorData dvd,
U unit)
Construct a new Relative Immutable FloatVector of the right type.
|
FloatVector.Rel<U> |
toDense()
return a dense version of this vector.
|
FloatVector.Rel<U> |
toSparse()
return a sparse version of this vector.
|
checkUnit, checkUnit, checkUnit, divide, get, iterator, minus, mutable, 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, waitforEach, spliteratorpublic Rel(float[] values,
U unit,
StorageType storageType)
throws ValueException
values - float[]; the values of the entries in the new Relative Mutable FloatVectorunit - U; the unit of the new Relative Mutable FloatVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic Rel(List<Float> values, U unit, StorageType storageType) throws ValueException
values - List; the values of the entries in the new Relative Mutable FloatVectorunit - U; the unit of the new Relative Mutable FloatVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic Rel(FloatScalar.Rel<U>[] values, StorageType storageType) throws ValueException
values - FloatScalar.Rel<U>[]; the values of the entries in the new Relative Mutable FloatVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic Rel(List<FloatScalar.Rel<U>> values, StorageType storageType) throws ValueException
values - List; the values of the entries in the new Relative Mutable FloatVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic Rel(SortedMap<Integer,FloatScalar.Rel<U>> values, int length, StorageType storageType) throws ValueException
values - FloatScalar.Rel<U>[]; the values of the entries in the new Relative Sparse Mutable FloatVectorlength - the size of the vectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic Rel(SortedMap<Integer,Float> values, U unit, int length, StorageType storageType) throws ValueException
values - Map; the map of indexes to values of the Relative Sparse Mutable FloatVectorunit - U; the unit of the new Relative Sparse Mutable FloatVectorlength - the size of the vectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic Rel(FloatVectorData data, U unit)
data - an internal data objectunit - the unitprotected final FloatVector.Rel<U> instantiateType(FloatVectorData dvd, U unit)
instantiateType in class AbstractFloatVectorRel<U extends Unit<U>,FloatVector.Rel<U extends Unit<U>>,MutableFloatVector.Rel<U extends Unit<U>>,FloatScalar.Rel<U extends Unit<U>>>dvd - an internal data objectunit - the unitprotected final MutableFloatVector.Rel<U> instantiateMutableType(FloatVectorData dvd, U unit)
instantiateMutableType in class AbstractFloatVectorRel<U extends Unit<U>,FloatVector.Rel<U extends Unit<U>>,MutableFloatVector.Rel<U extends Unit<U>>,FloatScalar.Rel<U extends Unit<U>>>dvd - an internal data objectunit - the unitprotected final FloatScalar.Rel<U> instantiateScalar(float value, U unit)
instantiateScalar in class AbstractFloatVectorRel<U extends Unit<U>,FloatVector.Rel<U extends Unit<U>>,MutableFloatVector.Rel<U extends Unit<U>>,FloatScalar.Rel<U extends Unit<U>>>value - the valueunit - the unitpublic final FloatVector.Rel<U> toDense()
public final FloatVector.Rel<U> toSparse()
Copyright © 2015–2018 Delft University of Technology. All rights reserved.