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