U - Unit the unit for which this Vector will be createdpublic static class MutableDoubleVector.Abs.Sparse<U extends Unit<U>> extends MutableDoubleVector.Abs<U> implements SparseData
MutableDoubleVector.Abs.Dense<U extends Unit<U>>, MutableDoubleVector.Abs.Sparse<U extends Unit<U>>MutableDoubleVector.Abs<U extends Unit<U>>, MutableDoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Sparse(double[] values,
U unit)
Construct a new Absolute Sparse Mutable DoubleVector.
|
Sparse(DoubleScalar.Abs<U>[] values)
Construct a new Absolute Sparse Mutable DoubleVector.
|
Sparse(SortedMap<Integer,Double> values,
U unit,
int length)
Construct a new Absolute Sparse Mutable DoubleVector.
|
Sparse(SortedMap<Integer,DoubleScalar.Abs<U>> values,
int length)
Construct a new Absolute Sparse Mutable DoubleVector.
|
| Modifier and Type | Method and Description |
|---|---|
MutableDoubleVector.Abs<U> |
copy()
Create a deep copy of this MutableDoubleVector.
|
protected DoubleVectorDataSparse |
getData() |
DoubleVector.Abs<U> |
immutable()
Create a immutable version of this MutableDoubleVector.
|
MutableDoubleVector.Abs<U> |
mutable()
Create a mutable version of this DoubleVector.
|
MutableDoubleVector.Abs<U> |
toDense()
Create a dense version of this DoubleVector.
|
MutableDoubleVector.Abs<U> |
toSparse()
Create a sparse version of this DoubleVector.
|
abs, acos, asin, atan, cbrt, ceil, cos, cosh, decrementBy, divideBy, exp, expm1, floor, get, incrementBy, inv, log, log10, log1p, minus, minus, multiplyBy, plus, pow, rint, round, signum, sin, sinh, sqrt, tan, tanh, toDegrees, toRadiansassign, checkCopyOnWrite, decrementByImpl, incrementByImpl, normalize, scaleValueByValue, scaleValueByValue, set, setInUnit, setSIcardinality, checkIndex, checkSize, checkSize, equals, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, initializeSparse, initializeSparseMA, initializeSparseMR, safeGet, safeSet, size, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcardinality, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSumpublic Sparse(SortedMap<Integer,Double> values, U unit, int length) throws ValueException
values - Map; the map of indexes to values of the Absolute Sparse Mutable DoubleVectorunit - U; the unit of the new Absolute Sparse Mutable DoubleVectorlength - the size of the vectorValueException - when values is nullpublic Sparse(SortedMap<Integer,DoubleScalar.Abs<U>> values, int length) throws ValueException
values - DoubleScalar.Abs<U>[]; the values of the entries in the new Absolute Sparse Mutable
DoubleVectorlength - the size of the vectorValueException - when values has zero entriespublic Sparse(double[] values,
U unit)
throws ValueException
values - double[]; the values of the entries in the new Absolute Sparse Mutable DoubleVectorunit - U; the unit of the new Absolute Sparse Mutable DoubleVectorValueException - when values is nullpublic Sparse(DoubleScalar.Abs<U>[] values) throws ValueException
values - DoubleScalar.Abs<U>[]; the values of the entries in the new Absolute Sparse Mutable
DoubleVectorValueException - when values has zero entriespublic DoubleVector.Abs<U> immutable()
immutable in interface MutableDoubleVectorInterface<U extends Unit<U>>immutable in class MutableDoubleVector.Abs<U extends Unit<U>>public MutableDoubleVector.Abs<U> mutable()
mutable in interface DoubleVectorInterface<U extends Unit<U>>mutable in class MutableDoubleVector.Abs<U extends Unit<U>>public MutableDoubleVector.Abs<U> copy()
copy in interface MutableDoubleVectorInterface<U extends Unit<U>>copy in class MutableDoubleVector.Abs<U extends Unit<U>>protected final DoubleVectorDataSparse getData()
getData in class DoubleVector<U extends Unit<U>>public MutableDoubleVector.Abs<U> toDense()
toDense in interface DoubleVectorInterface<U extends Unit<U>>toDense in interface MutableDoubleVectorInterface<U extends Unit<U>>toDense in class MutableDoubleVector.Abs<U extends Unit<U>>public MutableDoubleVector.Abs<U> toSparse()
toSparse in interface DoubleVectorInterface<U extends Unit<U>>toSparse in interface MutableDoubleVectorInterface<U extends Unit<U>>toSparse in class MutableDoubleVector.Abs<U extends Unit<U>>Copyright © 2015 Delft University of Technology. All rights reserved.