U - Unit the unit for which this Vector will be createdpublic abstract static class FloatVector.Abs<U extends Unit<U>> extends FloatVector<U> implements Absolute, FunctionsAbs<U,FloatVector.Abs<U>,FloatVector.Rel<U>>
| Modifier and Type | Class and Description |
|---|---|
static class |
FloatVector.Abs.Dense<U extends Unit<U>>
ABSOLUTE DENSE implementation of FloatVector.
|
static class |
FloatVector.Abs.Sparse<U extends Unit<U>>
ABSOLUTE SPARSE implementation of FloatVector.
|
FloatVector.Abs<U extends Unit<U>>, FloatVector.Rel<U extends Unit<U>>data| Modifier | Constructor and Description |
|---|---|
protected |
Abs(U unit)
Construct a new Absolute Immutable FloatVector.
|
| Modifier and Type | Method and Description |
|---|---|
FloatScalar.Abs<U> |
get(int index)
Retrieve the value stored at a specified index as a FloatScalar.
|
FloatVector.Rel<U> |
minus(FloatVector.Abs<U> abs)
Subtract an Absolute value from this Absolute value for a vector or matrix.
|
FloatVector.Abs<U> |
minus(FloatVector.Rel<U> rel)
Subtract a Relative value from this Absolute value for a vector or matrix.
|
abstract MutableFloatVector.Abs<U> |
mutable()
Create a mutable version of this FloatVector.
|
FloatVector.Abs<U> |
plus(FloatVector.Rel<U> rel)
Add a Relative value to this Absolute value for a vector or matrix.
|
abstract FloatVector.Abs<U> |
toDense()
Create a dense version of this FloatVector.
|
abstract FloatVector.Abs<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 Abs(U unit)
unit - U; the unit of the new Absolute Immutable FloatVectorpublic abstract MutableFloatVector.Abs<U> mutable()
mutable in interface FloatVectorInterface<U extends Unit<U>>public abstract FloatVector.Abs<U> toDense()
toDense in interface FloatVectorInterface<U extends Unit<U>>public abstract FloatVector.Abs<U> toSparse()
toSparse in interface FloatVectorInterface<U extends Unit<U>>public FloatScalar.Abs<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.Abs<U> plus(FloatVector.Rel<U> rel) throws ValueException
plus in interface FunctionsAbs<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 and the operand have a different sizepublic FloatVector.Abs<U> minus(FloatVector.Rel<U> rel) throws ValueException
minus in interface FunctionsAbs<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 and the operand have a different sizepublic FloatVector.Rel<U> minus(FloatVector.Abs<U> abs) throws ValueException
minus in interface FunctionsAbs<U extends Unit<U>,FloatVector.Abs<U extends Unit<U>>,FloatVector.Rel<U extends Unit<U>>>abs - A the right operandValueException - in case this vector and the operand have a different sizeCopyright © 2015 Delft University of Technology. All rights reserved.