public static class FloatLengthVector.Abs.Sparse extends FloatLengthVector.Abs implements SparseData
FloatLengthVector.Abs.Dense, FloatLengthVector.Abs.SparseFloatVector.Abs<U extends Unit<U>>, FloatVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Sparse(float[] values,
LengthUnit unit)
Construct a new Absolute Sparse Immutable FloatVector.
|
Sparse(FloatLength.Abs[] values)
Construct a new Absolute Sparse Immutable FloatVector.
|
Sparse(SortedMap<Integer,Float> values,
LengthUnit unit,
int length)
Construct a new Absolute Sparse Immutable FloatVector.
|
Sparse(SortedMap<Integer,FloatScalar.Abs<LengthUnit>> values,
int length)
Construct a new Absolute Sparse Immutable FloatVector.
|
| Modifier and Type | Method and Description |
|---|---|
protected FloatVectorDataSparse |
getData() |
MutableFloatLengthVector.Abs |
mutable()
Create a mutable version of this FloatVector.
|
FloatLengthVector.Abs |
toDense()
Create a dense version of this FloatVector.
|
FloatLengthVector.Abs |
toSparse()
Create a sparse version of this FloatVector.
|
get, minus, minus, plusminus, 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, LengthUnit 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<LengthUnit>> 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,
LengthUnit 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(FloatLength.Abs[] values) throws ValueException
values - FloatScalar.Abs<U>[]; the values of the entries in the new Absolute Sparse Immutable
FloatVectorValueException - when values has zero entriespublic MutableFloatLengthVector.Abs mutable()
mutable in interface FloatVectorInterface<LengthUnit>mutable in class FloatLengthVector.Absprotected final FloatVectorDataSparse getData()
getData in class FloatVector<LengthUnit>public FloatLengthVector.Abs toDense()
toDense in interface FloatVectorInterface<LengthUnit>toDense in class FloatLengthVector.Abspublic FloatLengthVector.Abs toSparse()
toSparse in interface FloatVectorInterface<LengthUnit>toSparse in class FloatLengthVector.AbsCopyright © 2015 Delft University of Technology. All rights reserved.