public abstract class MutableMoneyVector extends MutableDoubleVector.Rel<MoneyUnit>
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-09-29 14:14:28 +0200 (Tue, 29 Sep 2015) $, @version $Revision: 73 $, by $Author: pknoppers $, initial
version Sep 5, 2015
| Modifier and Type | Class and Description |
|---|---|
static class |
MutableMoneyVector.Dense
Double Dense Relative Immutable Money class.
|
static class |
MutableMoneyVector.Sparse
Double Sparse Relative Immutable Money class.
|
MutableDoubleVector.Abs<U extends Unit<U>>, MutableDoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
MutableMoneyVector(MoneyUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
MutableMoneyVector |
abs()
Set the value(s) to their absolute value.
|
MutableMoneyVector |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MutableMoneyVector |
asin()
Set the value(s) to the arc sine of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
MutableMoneyVector |
atan()
Set the value(s) to the arc tangent of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
MutableMoneyVector |
cbrt()
Set the value(s) to the(ir) cube root.
|
MutableMoneyVector |
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.
|
MutableMoneyVector |
copy()
Create a deep copy of this MutableDoubleVector.
|
MutableMoneyVector |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MutableMoneyVector |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MoneyVector |
divide(MoneyVector rel)
Divide this Relative value by a Relative value for a vector or matrix.
|
MoneyVector |
divide(MutableMoneyVector rel)
Divide this Relative value by a Relative value for a vector or matrix.
|
MutableMoneyVector |
divideBy(double constant)
Scale the value(s) by the inverse of a factor; i.e.
|
MutableMoneyVector |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MutableMoneyVector |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
MutableMoneyVector |
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.
|
Money |
get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
abstract MoneyVector |
immutable()
Create a immutable version of this MutableDoubleVector.
|
MutableMoneyVector |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MutableMoneyVector |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MutableMoneyVector |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MutableMoneyVector |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
MoneyVector |
minus(MoneyVector rel)
Subtract a Relative value from this Relative value for a vector or matrix.
|
MoneyVector |
minus(MutableMoneyVector rel)
Subtract a Relative value from this Relative value for a vector or matrix.
|
MutableMoneyVector |
multiplyBy(double constant)
Scale the value(s) by a factor.
|
abstract MutableMoneyVector |
mutable()
Create a mutable version of this DoubleVector.
|
MoneyVector |
plus(MoneyVector rel)
Add a Relative value to this Relative value for a vector or matrix.
|
MoneyVector |
plus(MutableMoneyVector rel)
Add a Relative value to this Relative value for a vector or matrix.
|
MutableMoneyVector |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MutableMoneyVector |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
MutableMoneyVector |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MutableMoneyVector |
signum()
Set the value(s) to the signum function of the value(s); zero if the argument is zero, 1.0 if the argument is greater
than zero, -1.0 if the argument is less than zero.
|
MutableMoneyVector |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MutableMoneyVector |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MutableMoneyVector |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MutableMoneyVector |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MutableMoneyVector |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
MoneyVector |
times(MoneyVector rel)
Multiply a Relative value with this Relative value for a vector or matrix.
|
MoneyVector |
times(MutableMoneyVector rel)
Multiply a Relative value with this Relative value for a vector or matrix.
|
MutableMoneyVector |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
abstract MutableMoneyVector |
toDense()
Create a dense version of this DoubleVector.
|
MutableMoneyVector |
toRadians()
Set the value(s) to approximately equivalent angle(s) measured in radians.
|
abstract MutableMoneyVector |
toSparse()
Create a sparse version of this DoubleVector.
|
decrementBy, divide, incrementBy, minus, plus, plus, timesassign, checkCopyOnWrite, decrementByImpl, incrementByImpl, normalize, scaleValueByValue, scaleValueByValue, set, setInUnit, setSIcardinality, checkIndex, checkSize, checkSize, equals, getData, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, initializeSparse, initializeSparseMA, initializeSparseMR, safeGet, safeSet, size, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcardinality, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSumpublic MutableMoneyVector(MoneyUnit unit)
unit - the unit to usepublic abstract MutableMoneyVector mutable()
mutable in interface DoubleVectorInterface<MoneyUnit>mutable in class MutableDoubleVector.Rel<MoneyUnit>public abstract MoneyVector immutable()
immutable in interface MutableDoubleVectorInterface<MoneyUnit>immutable in class MutableDoubleVector.Rel<MoneyUnit>public abstract MutableMoneyVector toDense()
toDense in interface DoubleVectorInterface<MoneyUnit>toDense in interface MutableDoubleVectorInterface<MoneyUnit>toDense in class MutableDoubleVector.Rel<MoneyUnit>public abstract MutableMoneyVector toSparse()
toSparse in interface DoubleVectorInterface<MoneyUnit>toSparse in interface MutableDoubleVectorInterface<MoneyUnit>toSparse in class MutableDoubleVector.Rel<MoneyUnit>public final Money get(int index) throws ValueException
get in interface DoubleVectorInterface<MoneyUnit>get in class MutableDoubleVector.Rel<MoneyUnit>index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())public final MutableMoneyVector copy()
copy in interface MutableDoubleVectorInterface<MoneyUnit>copy in class MutableDoubleVector.Rel<MoneyUnit>public final MoneyVector plus(MoneyVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MoneyVector minus(MoneyVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MoneyVector times(MoneyVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MoneyVector divide(MoneyVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MoneyVector plus(MutableMoneyVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MoneyVector minus(MutableMoneyVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MoneyVector times(MutableMoneyVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MoneyVector divide(MutableMoneyVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MutableMoneyVector abs()
abs in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>abs in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector acos()
acos in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>acos in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector asin()
asin in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>asin in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector atan()
atan in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>atan in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector cbrt()
cbrt in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>cbrt in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector ceil()
ceil in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>ceil in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector cos()
cos in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>cos in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector cosh()
cosh in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>cosh in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector exp()
exp in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>exp in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector expm1()
expm1 in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>expm1 in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector floor()
floor in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>floor in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector log()
log in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>log in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector log10()
log10 in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>log10 in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector log1p()
log1p in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>log1p in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector pow(double x)
pow in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>pow in class MutableDoubleVector.Rel<MoneyUnit>x - double; the value to use as the powerpublic final MutableMoneyVector rint()
rint in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>rint in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector round()
round in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>round in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector signum()
signum in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>signum in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector sin()
sin in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>sin in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector sinh()
sinh in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>sinh in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector sqrt()
sqrt in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>sqrt in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector tan()
tan in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>tan in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector tanh()
tanh in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>tanh in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector toDegrees()
toDegrees in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>toDegrees in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector toRadians()
toRadians in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>toRadians in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector inv()
inv in interface MathFunctions<MutableDoubleVector.Rel<MoneyUnit>>inv in class MutableDoubleVector.Rel<MoneyUnit>public final MutableMoneyVector multiplyBy(double constant)
multiplyBy in interface DoubleMathFunctions<MutableDoubleVector.Rel<MoneyUnit>>multiplyBy in class MutableDoubleVector.Rel<MoneyUnit>constant - double; the multiplierpublic final MutableMoneyVector divideBy(double constant)
divideBy in interface DoubleMathFunctions<MutableDoubleVector.Rel<MoneyUnit>>divideBy in class MutableDoubleVector.Rel<MoneyUnit>constant - double; the divisorCopyright © 2015 Delft University of Technology. All rights reserved.