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