U - Unit the unit for which this Vector will be createdpublic abstract static class DoubleVector.Rel<U extends Unit<U>> extends DoubleVector<U> implements Relative, FunctionsRel<U,DoubleVector.Abs<U>,DoubleVector.Rel<U>>
| Modifier and Type | Class and Description |
|---|---|
static class |
DoubleVector.Rel.Dense<U extends Unit<U>>
RELATIVE DENSE implementation of DoubleVector.
|
static class |
DoubleVector.Rel.Sparse<U extends Unit<U>>
RELATIVE SPARSE implementation of DoubleVector.
|
DoubleVector.Abs<U extends Unit<U>>, DoubleVector.Rel<U extends Unit<U>>data| Modifier | Constructor and Description |
|---|---|
protected |
Rel(U unit)
Construct a new Relative Immutable DoubleVector.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleVector.Rel<U> |
divide(DoubleVector.Rel<U> rel)
Divide this Relative value by a Relative value for a vector or matrix.
|
DoubleScalar.Rel<U> |
get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
DoubleVector.Rel<U> |
minus(DoubleVector.Rel<U> rel)
Subtract a Relative value from this Relative value for a vector or matrix.
|
abstract MutableDoubleVector.Rel<U> |
mutable()
Create a mutable version of this DoubleVector.
|
DoubleVector.Abs<U> |
plus(DoubleVector.Abs<U> rel)
Add an Absolute value to this Relative value for a vector or matrix.
|
DoubleVector.Rel<U> |
plus(DoubleVector.Rel<U> rel)
Add a Relative value to this Relative value for a vector or matrix.
|
DoubleVector.Rel<U> |
times(DoubleVector.Rel<U> rel)
Multiply a Relative value by this Relative value for a vector or matrix.
|
abstract DoubleVector.Rel<U> |
toDense()
Create a dense version of this DoubleVector.
|
abstract DoubleVector.Rel<U> |
toSparse()
Create a sparse version of this DoubleVector.
|
cardinality, 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, isRelativeprotected Rel(U unit)
unit - U; the unit of the new Relative Immutable DoubleVectorpublic abstract MutableDoubleVector.Rel<U> mutable()
mutable in interface DoubleVectorInterface<U extends Unit<U>>public abstract DoubleVector.Rel<U> toDense()
toDense in interface DoubleVectorInterface<U extends Unit<U>>public abstract DoubleVector.Rel<U> toSparse()
toSparse in interface DoubleVectorInterface<U extends Unit<U>>public DoubleScalar.Rel<U> get(int index) throws ValueException
get in interface DoubleVectorInterface<U extends Unit<U>>index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())public DoubleVector.Rel<U> plus(DoubleVector.Rel<U> rel) throws ValueException
plus in interface FunctionsRel<U extends Unit<U>,DoubleVector.Abs<U extends Unit<U>>,DoubleVector.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizepublic DoubleVector.Abs<U> plus(DoubleVector.Abs<U> rel) throws ValueException
plus in interface FunctionsRel<U extends Unit<U>,DoubleVector.Abs<U extends Unit<U>>,DoubleVector.Rel<U extends Unit<U>>>rel - A the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final DoubleVector.Rel<U> minus(DoubleVector.Rel<U> rel) throws ValueException
minus in interface FunctionsRel<U extends Unit<U>,DoubleVector.Abs<U extends Unit<U>>,DoubleVector.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final DoubleVector.Rel<U> times(DoubleVector.Rel<U> rel) throws ValueException
times in interface FunctionsRel<U extends Unit<U>,DoubleVector.Abs<U extends Unit<U>>,DoubleVector.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final DoubleVector.Rel<U> divide(DoubleVector.Rel<U> rel) throws ValueException
divide in interface FunctionsRel<U extends Unit<U>,DoubleVector.Abs<U extends Unit<U>>,DoubleVector.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizeCopyright © 2015 Delft University of Technology. All rights reserved.