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