U - Unit the unit for which this Vector will be createdpublic static class FloatVector.Abs<U extends Unit<U>> extends FloatVector<U> implements Absolute, FunctionsAbs<U,FloatVector.Abs<U>,FloatVector.Rel<U>>
FloatVector.Abs<U extends Unit<U>>, FloatVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Abs(float[] values,
U unit,
StorageType storageType)
Construct a new Absolute Immutable FloatVector.
|
Abs(FloatScalar.Abs<U>[] values,
StorageType storageType)
Construct a new Absolute Immutable FloatVector.
|
Abs(FloatVectorData data,
U unit)
Construct a new Absolute Immutable FloatVector.
|
Abs(List<Float> values,
U unit,
StorageType storageType)
Construct a new Absolute Immutable FloatVector.
|
Abs(List<S> values,
StorageType storageType)
Construct a new Absolute Immutable FloatVector.
|
Abs(SortedMap<Integer,Float> values,
U unit,
int length,
StorageType storageType)
Construct a new Relative Immutable FloatVector.
|
Abs(SortedMap<Integer,S> values,
int length,
StorageType storageType)
Construct a new Relative Immutable FloatVector.
|
| Modifier and Type | Method and Description |
|---|---|
FloatScalar.Abs<U> |
get(int index)
Retrieve the value stored at a specified index as a FloatScalar.
|
FloatVector.Rel<U> |
minus(FloatVector.Abs<U> abs)
Subtract an Absolute value from this Absolute value for a vector or matrix.
|
FloatVector.Abs<U> |
minus(FloatVector.Rel<U> rel)
Subtract a Relative value from this Absolute value for a vector or matrix.
|
MutableFloatVector.Abs<U> |
mutable()
Create a mutable version of this FloatVector.
|
FloatVector.Abs<U> |
plus(FloatVector.Rel<U> rel)
Add a Relative value to this Absolute value for a vector or matrix.
|
FloatVector.Abs<U> |
toDense()
Create a dense version of this FloatVector.
|
FloatVector.Abs<U> |
toSparse()
Create a sparse version of this FloatVector.
|
cardinality, checkIndex, checkSize, checkSize, checkUnit, checkUnit, checkUnit, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, instantiateAbs, instantiateRel, size, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativepublic Abs(float[] values,
U unit,
StorageType storageType)
throws ValueException
values - float[]; the values of the entries in the new Absolute Immutable FloatVectorunit - U; the unit of the new Absolute Immutable FloatVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic Abs(List<Float> values, U unit, StorageType storageType) throws ValueException
values - List; the values of the entries in the new Absolute Immutable FloatVectorunit - U; the unit of the new Absolute Immutable FloatVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic Abs(FloatScalar.Abs<U>[] values, StorageType storageType) throws ValueException
values - FloatScalar.Abs<U>[]; the values of the entries in the new Absolute Immutable FloatVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic Abs(List<S> values, StorageType storageType) throws ValueException
S - the Scalar type usedvalues - List; the values of the entries in the new Absolute Immutable FloatVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic Abs(SortedMap<Integer,S> values, int length, StorageType storageType) throws ValueException
S - the Scalar type usedvalues - 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 Abs(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 nullAbs(FloatVectorData data, U unit)
data - an internal data objectunit - the unitpublic MutableFloatVector.Abs<U> mutable()
mutable in interface FloatVectorInterface<U extends Unit<U>>public FloatVector.Abs<U> toDense()
toDense in interface FloatVectorInterface<U extends Unit<U>>public FloatVector.Abs<U> toSparse()
toSparse in interface FloatVectorInterface<U extends Unit<U>>public FloatScalar.Abs<U> get(int index) throws ValueException
get in interface FloatVectorInterface<U extends Unit<U>>index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())public FloatVector.Abs<U> plus(FloatVector.Rel<U> rel) throws ValueException
plus in interface FunctionsAbs<U extends Unit<U>,FloatVector.Abs<U extends Unit<U>>,FloatVector.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector and the operand have a different sizepublic FloatVector.Abs<U> minus(FloatVector.Rel<U> rel) throws ValueException
minus in interface FunctionsAbs<U extends Unit<U>,FloatVector.Abs<U extends Unit<U>>,FloatVector.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector and the operand have a different sizepublic FloatVector.Rel<U> minus(FloatVector.Abs<U> abs) throws ValueException
minus in interface FunctionsAbs<U extends Unit<U>,FloatVector.Abs<U extends Unit<U>>,FloatVector.Rel<U extends Unit<U>>>abs - A the right operandValueException - in case this vector and the operand have a different sizeCopyright © 2015–2016 Delft University of Technology. All rights reserved.