U - Unit the unit for which this Vector will be createdpublic abstract static class DoubleVector.Abs<U extends Unit<U>> extends DoubleVector<U> implements Absolute, FunctionsAbs<U,DoubleVector.Abs<U>,DoubleVector.Rel<U>>
| Modifier and Type | Class and Description |
|---|---|
static class |
DoubleVector.Abs.Dense<U extends Unit<U>>
ABSOLUTE DENSE implementation of DoubleVector.
|
static class |
DoubleVector.Abs.Sparse<U extends Unit<U>>
ABSOLUTE SPARSE implementation of DoubleVector.
|
DoubleVector.Abs<U extends Unit<U>>, DoubleVector.Rel<U extends Unit<U>>data| Modifier | Constructor and Description |
|---|---|
protected |
Abs(U unit)
Construct a new Absolute Immutable DoubleVector.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Abs<U> |
get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
DoubleVector.Rel<U> |
minus(DoubleVector.Abs<U> abs)
Subtract an Absolute value from this Absolute value for a vector or matrix.
|
DoubleVector.Abs<U> |
minus(DoubleVector.Rel<U> rel)
Subtract a Relative value from this Absolute value for a vector or matrix.
|
abstract MutableDoubleVector.Abs<U> |
mutable()
Create a mutable version of this DoubleVector.
|
DoubleVector.Abs<U> |
plus(DoubleVector.Rel<U> rel)
Add a Relative value to this Absolute value for a vector or matrix.
|
abstract DoubleVector.Abs<U> |
toDense()
Create a dense version of this DoubleVector.
|
abstract DoubleVector.Abs<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 Abs(U unit)
unit - U; the unit of the new Absolute Immutable DoubleVectorpublic abstract MutableDoubleVector.Abs<U> mutable()
mutable in interface DoubleVectorInterface<U extends Unit<U>>public abstract DoubleVector.Abs<U> toDense()
toDense in interface DoubleVectorInterface<U extends Unit<U>>public abstract DoubleVector.Abs<U> toSparse()
toSparse in interface DoubleVectorInterface<U extends Unit<U>>public DoubleScalar.Abs<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.Abs<U> plus(DoubleVector.Rel<U> rel) throws ValueException
plus in interface FunctionsAbs<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 and the operand have a different sizepublic DoubleVector.Abs<U> minus(DoubleVector.Rel<U> rel) throws ValueException
minus in interface FunctionsAbs<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 and the operand have a different sizepublic DoubleVector.Rel<U> minus(DoubleVector.Abs<U> abs) throws ValueException
minus in interface FunctionsAbs<U extends Unit<U>,DoubleVector.Abs<U extends Unit<U>>,DoubleVector.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.