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.Itr
data
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, 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
forEach, spliterator
public 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
- StorageType; 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<Float>; the values of the entries in the new Absolute Mutable FloatVectorunit
- AU; the unit of the new Absolute Mutable FloatVectorstorageType
- StorageType; 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.Abs<AU, RU>[]; the values of the entries in the new Absolute Mutable FloatVectorstorageType
- StorageType; 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<FloatScalar.Abs<AU, RU>>; the values of the entries in the new Absolute Mutable
FloatVectorstorageType
- StorageType; 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
- SortedMap<Integer, FloatScalar.Abs<AU, RU>>; the values of the entries in the new Absolute
Sparse Mutable FloatVectorlength
- int; the size of the vectorstorageType
- StorageType; 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
- SortedMap<Integer, Float>; the map of indexes to values of the Absolute Sparse Mutable
FloatVectorunit
- AU; the unit of the new Absolute Sparse Mutable FloatVectorlength
- int; the size of the vectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic Abs(FloatVectorData data, AU unit)
data
- FloatVectorData; an internal data objectunit
- AU; 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
- FloatVectorData; an internal data objectunit
- AU; 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
- FloatVectorData; an internal data objectunit
- RU; 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
- FloatVectorData; an internal data objectunit
- AU; 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
- float; the valueunit
- AU; the unitpublic final FloatVector.Abs<AU,RU> toDense()
public final FloatVector.Abs<AU,RU> toSparse()
Copyright © 2015–2019 Delft University of Technology. All rights reserved.