U - Unit the unit for which this Vector will be createdpublic static class MutableFloatVector.Abs<U extends Unit<U>> extends MutableFloatVector<U> implements Absolute, MathFunctionsAbs<MutableFloatVector.Abs<U>>, FunctionsAbs<U,FloatVector.Abs<U>,FloatVector.Rel<U>>, FloatMathFunctions<MutableFloatVector.Abs<U>>
MutableFloatVector.Abs<U extends Unit<U>>, MutableFloatVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Abs(float[] values,
U unit,
StorageType storageType)
Construct a new Absolute Mutable FloatVector.
|
Abs(FloatScalar.Abs<U>[] values,
StorageType storageType)
Construct a new Absolute Mutable FloatVector.
|
Abs(FloatVectorData data,
U unit)
Construct a new Absolute Mutable FloatVector.
|
Abs(List<Float> values,
U unit,
StorageType storageType)
Construct a new Absolute Mutable FloatVector.
|
Abs(List<S> values,
StorageType storageType)
Construct a new Absolute Mutable FloatVector.
|
Abs(SortedMap<Integer,Float> values,
U unit,
int length,
StorageType storageType)
Construct a new Relative Mutable FloatVector.
|
Abs(SortedMap<Integer,S> values,
int length,
StorageType storageType)
Construct a new Relative Mutable FloatVector.
|
| Modifier and Type | Method and Description |
|---|---|
MutableFloatVector.Abs<U> |
ceil()
Set the value(s) to the smallest (closest to negative infinity) value(s) that are greater than or equal to the argument
and equal to a mathematical integer.
|
MutableFloatVector.Abs<U> |
copy()
Create a deep copy of this MutableFloatVector.
|
MutableFloatVector.Abs<U> |
decrementBy(float decrement)
Decrement the value by the supplied constant and return the changed vector.
|
MutableFloatVector.Abs<U> |
decrementBy(FloatScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the changed vector.
|
MutableFloatVector.Abs<U> |
decrementBy(FloatVector.Rel<U> decrement)
Decrement the value by the supplied value and return the changed vector.
|
MutableFloatVector.Abs<U> |
divideBy(float factor)
Scale the value(s) by the inverse of a factor; i.e.
|
MutableFloatVector.Abs<U> |
divideBy(FloatScalar.Rel<U> factor)
Divide the values in the vector by the supplied value and return the changed vector.
|
MutableFloatVector.Abs<U> |
divideBy(FloatVector.Rel<U> factors)
Divide the values in the vector by the supplied values and return the changed vector.
|
MutableFloatVector.Abs<U> |
floor()
Set the value(s) to the largest (closest to positive infinity) value(s) that are less than or equal to the argument and
equal to a mathematical integer.
|
FloatScalar.Abs<U> |
get(int index)
Retrieve the value stored at a specified index as a FloatScalar.
|
FloatVector.Abs<U> |
immutable()
Create a immutable version of this MutableFloatVector.
|
MutableFloatVector.Abs<U> |
incrementBy(float increment)
Increment the value by the supplied constant and return the changed vector.
|
MutableFloatVector.Abs<U> |
incrementBy(FloatScalar.Rel<U> increment)
Increment the value by the supplied value and return the changed vector.
|
MutableFloatVector.Abs<U> |
incrementBy(FloatVector.Rel<U> increment)
Increment the value by the supplied value and return the changed vector.
|
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> |
multiplyBy(float factor)
Scale the value(s) by a factor.
|
MutableFloatVector.Abs<U> |
multiplyBy(FloatScalar.Rel<U> factor)
Multiply the values in the vector by the supplied value and return the changed vector.
|
MutableFloatVector.Abs<U> |
multiplyBy(FloatVector.Rel<U> factors)
Multiply the values in the vector by the supplied values and return the changed vector.
|
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.
|
MutableFloatVector.Abs<U> |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
MutableFloatVector.Abs<U> |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MutableFloatVector.Abs<U> |
toDense()
Create a dense version of this FloatVector.
|
MutableFloatVector.Abs<U> |
toSparse()
Create a sparse version of this FloatVector.
|
assign, checkCopyOnWrite, instantiateMutableAbs, normalize, set, setCopyOnWrite, setInUnit, setSIcardinality, 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, isRelativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWcardinality, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSumpublic Abs(float[] values,
U unit,
StorageType storageType)
throws ValueException
values - float[]; the values of the entries in the new Absolute Mutable FloatVectorunit - U; 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, U unit, StorageType storageType) throws ValueException
values - List; the values of the entries in the new Absolute Mutable FloatVectorunit - U; 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<U>[] values, StorageType storageType) throws ValueException
values - FloatScalar.Abs<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<S> values, StorageType storageType) throws ValueException
S - the Scalar type usedvalues - 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,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 FloatVector.Abs<U> immutable()
immutable in interface MutableFloatVectorInterface<U extends Unit<U>>public MutableFloatVector.Abs<U> mutable()
mutable in interface FloatVectorInterface<U extends Unit<U>>public MutableFloatVector.Abs<U> copy()
copy in interface MutableFloatVectorInterface<U extends Unit<U>>public MutableFloatVector.Abs<U> toDense()
toDense in interface FloatVectorInterface<U extends Unit<U>>toDense in interface MutableFloatVectorInterface<U extends Unit<U>>public MutableFloatVector.Abs<U> toSparse()
toSparse in interface FloatVectorInterface<U extends Unit<U>>toSparse in interface MutableFloatVectorInterface<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 final MutableFloatVector.Abs<U> incrementBy(FloatVector.Rel<U> increment) throws ValueException
increment - FloatVector.Rel<U>; amount by which the value is incrementedValueException - when the size of increment is not identical to the size of thispublic final MutableFloatVector.Abs<U> incrementBy(FloatScalar.Rel<U> increment)
increment - FloatScalar.Rel<U>; amount by which the value is incrementedpublic final MutableFloatVector.Abs<U> incrementBy(float increment)
increment - amount by which the value is incrementedpublic final MutableFloatVector.Abs<U> decrementBy(FloatVector.Rel<U> decrement) throws ValueException
decrement - FloatVector.Rel<U>; amount by which the value is decrementedValueException - when the size of increment is not identical to the size of thispublic final MutableFloatVector.Abs<U> decrementBy(FloatScalar.Rel<U> decrement)
decrement - FloatScalar.Rel<U>; amount by which the value is decrementedpublic final MutableFloatVector.Abs<U> decrementBy(float decrement)
decrement - amount by which the value is decrementedpublic final MutableFloatVector.Abs<U> multiplyBy(FloatVector.Rel<U> factors) throws ValueException
factors - FloatVector.Rel<U>; amounts by which the value is multipliedValueException - when the size of the factors is not identical to the size of thispublic final MutableFloatVector.Abs<U> multiplyBy(FloatScalar.Rel<U> factor)
factor - FloatScalar.Rel<U>; amount by which the values in the vector are multipliedpublic MutableFloatVector.Abs<U> multiplyBy(float factor)
multiplyBy in interface FloatMathFunctions<MutableFloatVector.Abs<U extends Unit<U>>>factor - float; the multiplierpublic final MutableFloatVector.Abs<U> divideBy(FloatVector.Rel<U> factors) throws ValueException
factors - FloatVector.Rel<U>; amounts by which the value is dividedValueException - when the size of the factors is not identical to the size of thispublic MutableFloatVector.Abs<U> divideBy(float factor)
divideBy in interface FloatMathFunctions<MutableFloatVector.Abs<U extends Unit<U>>>factor - float; the divisorpublic final MutableFloatVector.Abs<U> divideBy(FloatScalar.Rel<U> factor)
factor - FloatScalar.Rel<U>; amount by which the values in the vector are dividedpublic 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 sizepublic MutableFloatVector.Abs<U> ceil()
ceil in interface MathFunctionsAbs<MutableFloatVector.Abs<U extends Unit<U>>>public MutableFloatVector.Abs<U> floor()
floor in interface MathFunctionsAbs<MutableFloatVector.Abs<U extends Unit<U>>>public MutableFloatVector.Abs<U> rint()
rint in interface MathFunctionsAbs<MutableFloatVector.Abs<U extends Unit<U>>>public MutableFloatVector.Abs<U> round()
round in interface MathFunctionsAbs<MutableFloatVector.Abs<U extends Unit<U>>>Copyright © 2015–2016 Delft University of Technology. All rights reserved.