U - Unit the unit for which this Vector will be createdpublic static class MutableDoubleVector.Abs<U extends Unit<U>> extends MutableDoubleVector<U> implements Absolute, MathFunctionsAbs<MutableDoubleVector.Abs<U>>, FunctionsAbs<U,DoubleVector.Abs<U>,DoubleVector.Rel<U>>, DoubleMathFunctions<MutableDoubleVector.Abs<U>>
MutableDoubleVector.Abs<U extends Unit<U>>, MutableDoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Abs(double[] values,
U unit,
StorageType storageType)
Construct a new Absolute Mutable DoubleVector.
|
Abs(DoubleScalar.Abs<U>[] values,
StorageType storageType)
Construct a new Absolute Mutable DoubleVector.
|
Abs(DoubleVectorData data,
U unit)
Construct a new Absolute Mutable DoubleVector.
|
Abs(List<Double> values,
U unit,
StorageType storageType)
Construct a new Absolute Mutable DoubleVector.
|
Abs(List<S> values,
StorageType storageType)
Construct a new Absolute Mutable DoubleVector.
|
Abs(SortedMap<Integer,Double> values,
U unit,
int length,
StorageType storageType)
Construct a new Relative Mutable DoubleVector.
|
Abs(SortedMap<Integer,S> values,
int length,
StorageType storageType)
Construct a new Relative Mutable DoubleVector.
|
| Modifier and Type | Method and Description |
|---|---|
MutableDoubleVector.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.
|
MutableDoubleVector.Abs<U> |
copy()
Create a deep copy of this MutableDoubleVector.
|
MutableDoubleVector.Abs<U> |
decrementBy(double decrement)
Decrement the value by the supplied constant and return the changed vector.
|
MutableDoubleVector.Abs<U> |
decrementBy(DoubleScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the changed vector.
|
MutableDoubleVector.Abs<U> |
decrementBy(DoubleVector.Rel<U> decrement)
Decrement the value by the supplied value and return the changed vector.
|
MutableDoubleVector.Abs<U> |
divideBy(double factor)
Scale the value(s) by the inverse of a factor; i.e.
|
MutableDoubleVector.Abs<U> |
divideBy(DoubleScalar.Rel<U> factor)
Divide the values in the vector by the supplied value and return the changed vector.
|
MutableDoubleVector.Abs<U> |
divideBy(DoubleVector.Rel<U> factors)
Divide the values in the vector by the supplied values and return the changed vector.
|
MutableDoubleVector.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.
|
DoubleScalar.Abs<U> |
get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
DoubleVector.Abs<U> |
immutable()
Create a immutable version of this MutableDoubleVector.
|
MutableDoubleVector.Abs<U> |
incrementBy(double increment)
Increment the value by the supplied constant and return the changed vector.
|
MutableDoubleVector.Abs<U> |
incrementBy(DoubleScalar.Rel<U> increment)
Increment the value by the supplied value and return the changed vector.
|
MutableDoubleVector.Abs<U> |
incrementBy(DoubleVector.Rel<U> increment)
Increment the value by the supplied value and return the changed vector.
|
DoubleVector.Rel<U> |
minus(DoubleVector.Abs<U> abs)
Subtract an Absolute value from this Absolute value for a vector or matrix.
|
DoubleVector.Abs<U> |
minus(DoubleVector.Rel<U> rel)
Subtract a Relative value from this Absolute value for a vector or matrix.
|
MutableDoubleVector.Abs<U> |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
MutableDoubleVector.Abs<U> |
multiplyBy(DoubleScalar.Rel<U> factor)
Multiply the values in the vector by the supplied value and return the changed vector.
|
MutableDoubleVector.Abs<U> |
multiplyBy(DoubleVector.Rel<U> factors)
Multiply the values in the vector by the supplied values and return the changed vector.
|
MutableDoubleVector.Abs<U> |
mutable()
Create a mutable version of this DoubleVector.
|
DoubleVector.Abs<U> |
plus(DoubleVector.Rel<U> rel)
Add a Relative value to this Absolute value for a vector or matrix.
|
MutableDoubleVector.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.
|
MutableDoubleVector.Abs<U> |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MutableDoubleVector.Abs<U> |
toDense()
Create a dense version of this DoubleVector.
|
MutableDoubleVector.Abs<U> |
toSparse()
Create a sparse version of this DoubleVector.
|
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(double[] values,
U unit,
StorageType storageType)
throws ValueException
values - double[]; the values of the entries in the new Absolute Mutable DoubleVectorunit - U; the unit of the new Absolute Mutable DoubleVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic Abs(List<Double> values, U unit, StorageType storageType) throws ValueException
values - List; the values of the entries in the new Absolute Mutable DoubleVectorunit - U; the unit of the new Absolute Mutable DoubleVectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic Abs(DoubleScalar.Abs<U>[] values, StorageType storageType) throws ValueException
values - DoubleScalar.Abs<U>[]; the values of the entries in the new Absolute Mutable DoubleVectorstorageType - 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 DoubleVectorstorageType - 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 - DoubleScalar.Rel<U>[]; the values of the entries in the new Relative Sparse Mutable DoubleVectorlength - the size of the vectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic Abs(SortedMap<Integer,Double> values, U unit, int length, StorageType storageType) throws ValueException
values - Map; the map of indexes to values of the Relative Sparse Mutable DoubleVectorunit - U; the unit of the new Relative Sparse Mutable DoubleVectorlength - the size of the vectorstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullAbs(DoubleVectorData data, U unit)
data - an internal data objectunit - the unitpublic DoubleVector.Abs<U> immutable()
immutable in interface MutableDoubleVectorInterface<U extends Unit<U>>public MutableDoubleVector.Abs<U> mutable()
mutable in interface DoubleVectorInterface<U extends Unit<U>>public MutableDoubleVector.Abs<U> copy()
copy in interface MutableDoubleVectorInterface<U extends Unit<U>>public MutableDoubleVector.Abs<U> toDense()
toDense in interface DoubleVectorInterface<U extends Unit<U>>toDense in interface MutableDoubleVectorInterface<U extends Unit<U>>public MutableDoubleVector.Abs<U> toSparse()
toSparse in interface DoubleVectorInterface<U extends Unit<U>>toSparse in interface MutableDoubleVectorInterface<U extends Unit<U>>public DoubleScalar.Abs<U> get(int index) throws ValueException
get in interface DoubleVectorInterface<U extends Unit<U>>index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())public final MutableDoubleVector.Abs<U> incrementBy(DoubleVector.Rel<U> increment) throws ValueException
increment - DoubleVector.Rel<U>; amount by which the value is incrementedValueException - when the size of increment is not identical to the size of thispublic final MutableDoubleVector.Abs<U> incrementBy(DoubleScalar.Rel<U> increment)
increment - DoubleScalar.Rel<U>; amount by which the value is incrementedpublic final MutableDoubleVector.Abs<U> incrementBy(double increment)
increment - amount by which the value is incrementedpublic final MutableDoubleVector.Abs<U> decrementBy(DoubleVector.Rel<U> decrement) throws ValueException
decrement - DoubleVector.Rel<U>; amount by which the value is decrementedValueException - when the size of increment is not identical to the size of thispublic final MutableDoubleVector.Abs<U> decrementBy(DoubleScalar.Rel<U> decrement)
decrement - DoubleScalar.Rel<U>; amount by which the value is decrementedpublic final MutableDoubleVector.Abs<U> decrementBy(double decrement)
decrement - amount by which the value is decrementedpublic final MutableDoubleVector.Abs<U> multiplyBy(DoubleVector.Rel<U> factors) throws ValueException
factors - DoubleVector.Rel<U>; amounts by which the value is multipliedValueException - when the size of the factors is not identical to the size of thispublic final MutableDoubleVector.Abs<U> multiplyBy(DoubleScalar.Rel<U> factor)
factor - DoubleScalar.Rel<U>; amount by which the values in the vector are multipliedpublic MutableDoubleVector.Abs<U> multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<MutableDoubleVector.Abs<U extends Unit<U>>>factor - double; the multiplierpublic final MutableDoubleVector.Abs<U> divideBy(DoubleVector.Rel<U> factors) throws ValueException
factors - DoubleVector.Rel<U>; amounts by which the value is dividedValueException - when the size of the factors is not identical to the size of thispublic MutableDoubleVector.Abs<U> divideBy(double factor)
divideBy in interface DoubleMathFunctions<MutableDoubleVector.Abs<U extends Unit<U>>>factor - double; the divisorpublic final MutableDoubleVector.Abs<U> divideBy(DoubleScalar.Rel<U> factor)
factor - DoubleScalar.Rel<U>; amount by which the values in the vector are dividedpublic DoubleVector.Abs<U> plus(DoubleVector.Rel<U> rel) throws ValueException
plus in interface FunctionsAbs<U extends Unit<U>,DoubleVector.Abs<U extends Unit<U>>,DoubleVector.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector and the operand have a different sizepublic DoubleVector.Abs<U> minus(DoubleVector.Rel<U> rel) throws ValueException
minus in interface FunctionsAbs<U extends Unit<U>,DoubleVector.Abs<U extends Unit<U>>,DoubleVector.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector and the operand have a different sizepublic DoubleVector.Rel<U> minus(DoubleVector.Abs<U> abs) throws ValueException
minus in interface FunctionsAbs<U extends Unit<U>,DoubleVector.Abs<U extends Unit<U>>,DoubleVector.Rel<U extends Unit<U>>>abs - A the right operandValueException - in case this vector and the operand have a different sizepublic MutableDoubleVector.Abs<U> ceil()
ceil in interface MathFunctionsAbs<MutableDoubleVector.Abs<U extends Unit<U>>>public MutableDoubleVector.Abs<U> floor()
floor in interface MathFunctionsAbs<MutableDoubleVector.Abs<U extends Unit<U>>>public MutableDoubleVector.Abs<U> rint()
rint in interface MathFunctionsAbs<MutableDoubleVector.Abs<U extends Unit<U>>>public MutableDoubleVector.Abs<U> round()
round in interface MathFunctionsAbs<MutableDoubleVector.Abs<U extends Unit<U>>>Copyright © 2015–2016 Delft University of Technology. All rights reserved.