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