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