U - Unit the unit for which this Vector will be createdpublic static class MutableFloatVector.Abs.Sparse<U extends Unit<U>> extends MutableFloatVector.Abs<U> implements SparseData
MutableFloatVector.Abs.Dense<U extends Unit<U>>, MutableFloatVector.Abs.Sparse<U extends Unit<U>>MutableFloatVector.Abs<U extends Unit<U>>, MutableFloatVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Sparse(float[] values,
U unit)
Construct a new Absolute Sparse Mutable FloatVector.
|
Sparse(FloatScalar.Abs<U>[] values)
Construct a new Absolute Sparse Mutable FloatVector.
|
Sparse(SortedMap<Integer,Float> values,
U unit,
int length)
Construct a new Absolute Sparse Mutable FloatVector.
|
Sparse(SortedMap<Integer,FloatScalar.Abs<U>> values,
int length)
Construct a new Absolute Sparse Mutable FloatVector.
|
| Modifier and Type | Method and Description |
|---|---|
MutableFloatVector.Abs<U> |
copy()
Create a deep copy of this MutableFloatVector.
|
protected FloatVectorDataSparse |
getData() |
FloatVector.Abs<U> |
immutable()
Create a immutable version of this MutableFloatVector.
|
MutableFloatVector.Abs<U> |
mutable()
Create a mutable version of this FloatVector.
|
MutableFloatVector.Abs<U> |
toDense()
Create a dense version of this FloatVector.
|
MutableFloatVector.Abs<U> |
toSparse()
Create a sparse version of this FloatVector.
|
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,Float> values, U unit, int length) throws ValueException
values - Map; the map of indexes to values of the Absolute Sparse Mutable FloatVectorunit - U; the unit of the new Absolute Sparse Mutable FloatVectorlength - the size of the vectorValueException - when values is nullpublic Sparse(SortedMap<Integer,FloatScalar.Abs<U>> values, int length) throws ValueException
values - FloatScalar.Abs<U>[]; the values of the entries in the new Absolute Sparse Mutable
FloatVectorlength - the size of the vectorValueException - when values has zero entriespublic Sparse(float[] values,
U unit)
throws ValueException
values - float[]; the values of the entries in the new Absolute Sparse Mutable FloatVectorunit - U; the unit of the new Absolute Sparse Mutable FloatVectorValueException - when values is nullpublic Sparse(FloatScalar.Abs<U>[] values) throws ValueException
values - FloatScalar.Abs<U>[]; the values of the entries in the new Absolute Sparse Mutable
FloatVectorValueException - when values has zero entriespublic FloatVector.Abs<U> immutable()
immutable in interface MutableFloatVectorInterface<U extends Unit<U>>immutable in class MutableFloatVector.Abs<U extends Unit<U>>public MutableFloatVector.Abs<U> mutable()
mutable in interface FloatVectorInterface<U extends Unit<U>>mutable in class MutableFloatVector.Abs<U extends Unit<U>>public MutableFloatVector.Abs<U> copy()
copy in interface MutableFloatVectorInterface<U extends Unit<U>>copy in class MutableFloatVector.Abs<U extends Unit<U>>protected final FloatVectorDataSparse getData()
getData in class FloatVector<U extends Unit<U>>public MutableFloatVector.Abs<U> toDense()
toDense in interface FloatVectorInterface<U extends Unit<U>>toDense in interface MutableFloatVectorInterface<U extends Unit<U>>toDense in class MutableFloatVector.Abs<U extends Unit<U>>public MutableFloatVector.Abs<U> toSparse()
toSparse in interface FloatVectorInterface<U extends Unit<U>>toSparse in interface MutableFloatVectorInterface<U extends Unit<U>>toSparse in class MutableFloatVector.Abs<U extends Unit<U>>Copyright © 2015 Delft University of Technology. All rights reserved.