public abstract static class LengthVector.Rel extends DoubleVector.Rel<LengthUnit>
| Modifier and Type | Class and Description |
|---|---|
static class |
LengthVector.Rel.Dense
Double Dense Relative Immutable Length class.
|
static class |
LengthVector.Rel.Sparse
Double Sparse Relative Immutable Length class.
|
DoubleVector.Abs<U extends Unit<U>>, DoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Rel(LengthUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
LengthVector.Rel |
divide(LengthVector.Rel rel)
Divide this Relative value by a Relative value for a vector or matrix.
|
Length.Rel |
get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
LengthVector.Rel |
minus(LengthVector.Rel rel)
Subtract a Relative value from this Relative value for a vector or matrix.
|
abstract MutableLengthVector.Rel |
mutable()
Create a mutable version of this DoubleVector.
|
LengthVector.Rel |
plus(LengthVector.Rel rel)
Add a Relative value to this Relative value for a vector or matrix.
|
LengthVector.Rel |
times(LengthVector.Rel rel)
Multiply a Relative value with this Relative value for a vector or matrix.
|
abstract LengthVector.Rel |
toDense()
Create a dense version of this DoubleVector.
|
abstract LengthVector.Rel |
toSparse()
Create a sparse version of this DoubleVector.
|
divide, minus, plus, plus, timescardinality, 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, isRelativepublic Rel(LengthUnit unit)
unit - the unit to usepublic abstract MutableLengthVector.Rel mutable()
mutable in interface DoubleVectorInterface<LengthUnit>mutable in class DoubleVector.Rel<LengthUnit>public abstract LengthVector.Rel toDense()
toDense in interface DoubleVectorInterface<LengthUnit>toDense in class DoubleVector.Rel<LengthUnit>public abstract LengthVector.Rel toSparse()
toSparse in interface DoubleVectorInterface<LengthUnit>toSparse in class DoubleVector.Rel<LengthUnit>public final Length.Rel get(int index) throws ValueException
get in interface DoubleVectorInterface<LengthUnit>get in class DoubleVector.Rel<LengthUnit>index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())public final LengthVector.Rel plus(LengthVector.Rel rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final LengthVector.Rel minus(LengthVector.Rel rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final LengthVector.Rel times(LengthVector.Rel rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final LengthVector.Rel divide(LengthVector.Rel rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizeCopyright © 2015 Delft University of Technology. All rights reserved.