public abstract class MutableMassVector extends MutableDoubleVector.Rel<MassUnit>
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 |
MutableMassVector.Dense
Double Dense Relative Immutable Mass class.
|
static class |
MutableMassVector.Sparse
Double Sparse Relative Immutable Mass class.
|
MutableDoubleVector.Abs<U extends Unit<U>>, MutableDoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
MutableMassVector(MassUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
MutableMassVector |
abs()
Set the value(s) to their absolute value.
|
MutableMassVector |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MutableMassVector |
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.
|
MutableMassVector |
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.
|
MutableMassVector |
cbrt()
Set the value(s) to the(ir) cube root.
|
MutableMassVector |
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.
|
MutableMassVector |
copy()
Create a deep copy of this MutableDoubleVector.
|
MutableMassVector |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MutableMassVector |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MassVector |
divide(MassVector rel)
Divide this Relative value by a Relative value for a vector or matrix.
|
MassVector |
divide(MutableMassVector rel)
Divide this Relative value by a Relative value for a vector or matrix.
|
MutableMassVector |
divideBy(double constant)
Scale the value(s) by the inverse of a factor; i.e.
|
MutableMassVector |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MutableMassVector |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
MutableMassVector |
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.
|
Mass |
get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
abstract MassVector |
immutable()
Create a immutable version of this MutableDoubleVector.
|
MutableMassVector |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MutableMassVector |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MutableMassVector |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MutableMassVector |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
MassVector |
minus(MassVector rel)
Subtract a Relative value from this Relative value for a vector or matrix.
|
MassVector |
minus(MutableMassVector rel)
Subtract a Relative value from this Relative value for a vector or matrix.
|
MutableMassVector |
multiplyBy(double constant)
Scale the value(s) by a factor.
|
abstract MutableMassVector |
mutable()
Create a mutable version of this DoubleVector.
|
MassVector |
plus(MassVector rel)
Add a Relative value to this Relative value for a vector or matrix.
|
MassVector |
plus(MutableMassVector rel)
Add a Relative value to this Relative value for a vector or matrix.
|
MutableMassVector |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MutableMassVector |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
MutableMassVector |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MutableMassVector |
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.
|
MutableMassVector |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MutableMassVector |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MutableMassVector |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MutableMassVector |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MutableMassVector |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
MassVector |
times(MassVector rel)
Multiply a Relative value with this Relative value for a vector or matrix.
|
MassVector |
times(MutableMassVector rel)
Multiply a Relative value with this Relative value for a vector or matrix.
|
MutableMassVector |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
abstract MutableMassVector |
toDense()
Create a dense version of this DoubleVector.
|
MutableMassVector |
toRadians()
Set the value(s) to approximately equivalent angle(s) measured in radians.
|
abstract MutableMassVector |
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 MutableMassVector(MassUnit unit)
unit - the unit to usepublic abstract MutableMassVector mutable()
mutable in interface DoubleVectorInterface<MassUnit>mutable in class MutableDoubleVector.Rel<MassUnit>public abstract MassVector immutable()
immutable in interface MutableDoubleVectorInterface<MassUnit>immutable in class MutableDoubleVector.Rel<MassUnit>public abstract MutableMassVector toDense()
toDense in interface DoubleVectorInterface<MassUnit>toDense in interface MutableDoubleVectorInterface<MassUnit>toDense in class MutableDoubleVector.Rel<MassUnit>public abstract MutableMassVector toSparse()
toSparse in interface DoubleVectorInterface<MassUnit>toSparse in interface MutableDoubleVectorInterface<MassUnit>toSparse in class MutableDoubleVector.Rel<MassUnit>public final Mass get(int index) throws ValueException
get in interface DoubleVectorInterface<MassUnit>get in class MutableDoubleVector.Rel<MassUnit>index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())public final MutableMassVector copy()
copy in interface MutableDoubleVectorInterface<MassUnit>copy in class MutableDoubleVector.Rel<MassUnit>public final MassVector plus(MassVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MassVector minus(MassVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MassVector times(MassVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MassVector divide(MassVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MassVector plus(MutableMassVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MassVector minus(MutableMassVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MassVector times(MutableMassVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MassVector divide(MutableMassVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final MutableMassVector abs()
abs in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>abs in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector acos()
acos in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>acos in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector asin()
asin in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>asin in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector atan()
atan in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>atan in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector cbrt()
cbrt in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>cbrt in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector ceil()
ceil in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>ceil in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector cos()
cos in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>cos in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector cosh()
cosh in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>cosh in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector exp()
exp in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>exp in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector expm1()
expm1 in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>expm1 in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector floor()
floor in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>floor in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector log()
log in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>log in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector log10()
log10 in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>log10 in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector log1p()
log1p in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>log1p in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector pow(double x)
pow in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>pow in class MutableDoubleVector.Rel<MassUnit>x - double; the value to use as the powerpublic final MutableMassVector rint()
rint in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>rint in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector round()
round in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>round in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector signum()
signum in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>signum in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector sin()
sin in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>sin in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector sinh()
sinh in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>sinh in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector sqrt()
sqrt in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>sqrt in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector tan()
tan in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>tan in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector tanh()
tanh in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>tanh in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector toDegrees()
toDegrees in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>toDegrees in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector toRadians()
toRadians in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>toRadians in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector inv()
inv in interface MathFunctions<MutableDoubleVector.Rel<MassUnit>>inv in class MutableDoubleVector.Rel<MassUnit>public final MutableMassVector multiplyBy(double constant)
multiplyBy in interface DoubleMathFunctions<MutableDoubleVector.Rel<MassUnit>>multiplyBy in class MutableDoubleVector.Rel<MassUnit>constant - double; the multiplierpublic final MutableMassVector divideBy(double constant)
divideBy in interface DoubleMathFunctions<MutableDoubleVector.Rel<MassUnit>>divideBy in class MutableDoubleVector.Rel<MassUnit>constant - double; the divisorCopyright © 2015 Delft University of Technology. All rights reserved.