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