U - Unit the unit for which this Vector will be createdpublic static class FloatVector.Rel.Dense<U extends Unit<U>> extends FloatVector.Rel<U> implements DenseData
FloatVector.Rel.Dense<U extends Unit<U>>, FloatVector.Rel.Sparse<U extends Unit<U>>FloatVector.Abs<U extends Unit<U>>, FloatVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Dense(float[] values,
U unit)
Construct a new Relative Dense Immutable FloatVector.
|
Dense(FloatScalar.Rel<U>[] values)
Construct a new Relative Dense Immutable FloatVector.
|
Dense(List<Float> values,
U unit)
Construct a new Relative Dense Immutable FloatVector.
|
Dense(List<FloatScalar.Rel<U>> values)
Construct a new Relative Dense Immutable FloatVector.
|
| Modifier and Type | Method and Description |
|---|---|
protected FloatVectorDataDense |
getData() |
MutableFloatVector.Rel<U> |
mutable()
Create a mutable version of this FloatVector.
|
FloatVector.Rel<U> |
toDense()
Create a dense version of this FloatVector.
|
FloatVector.Rel<U> |
toSparse()
Create a sparse version of this FloatVector.
|
divide, get, minus, plus, plus, timescardinality, 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 Dense(float[] values,
U unit)
throws ValueException
values - float[]; the values of the entries in the new Relative Dense Immutable FloatVectorunit - U; the unit of the new Relative Dense Immutable FloatVectorValueException - when values is nullpublic Dense(List<Float> values, U unit) throws ValueException
values - List; the values of the entries in the new Relative Dense Immutable FloatVectorunit - U; the unit of the new Relative Dense Immutable FloatVectorValueException - when values is nullpublic Dense(FloatScalar.Rel<U>[] values) throws ValueException
values - FloatScalar.Rel<U>[]; the values of the entries in the new Relative Dense Immutable
FloatVectorValueException - when values has zero entriespublic Dense(List<FloatScalar.Rel<U>> values) throws ValueException
values - List; the values of the entries in the new Relative Dense Immutable FloatVectorValueException - when values has zero entriespublic MutableFloatVector.Rel<U> mutable()
mutable in interface FloatVectorInterface<U extends Unit<U>>mutable in class FloatVector.Rel<U extends Unit<U>>protected final FloatVectorDataDense getData()
getData in class FloatVector<U extends Unit<U>>public FloatVector.Rel<U> toDense()
toDense in interface FloatVectorInterface<U extends Unit<U>>toDense in class FloatVector.Rel<U extends Unit<U>>public FloatVector.Rel<U> toSparse()
toSparse in interface FloatVectorInterface<U extends Unit<U>>toSparse in class FloatVector.Rel<U extends Unit<U>>Copyright © 2015 Delft University of Technology. All rights reserved.