U - Unitpublic static class FloatVector.Rel.Sparse<U extends Unit<U>> extends FloatVector.Rel<U> implements SparseData
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>>| Modifier | Constructor and Description |
|---|---|
|
FloatVector.Rel.Sparse(float[] values,
U unit)
Construct a new Relative Sparse Immutable FloatVector.
|
protected |
FloatVector.Rel.Sparse(FloatMatrix1D values,
U unit)
For package internal use only.
|
|
FloatVector.Rel.Sparse(FloatScalar.Rel<U>[] values)
Construct a new Relative Sparse Immutable FloatVector.
|
| Modifier and Type | Method and Description |
|---|---|
FloatVector.Rel.Sparse<U> |
copy()
Create a deep copy of this Value.
|
protected FloatMatrix1D |
createMatrix1D(int size)
Create storage for the data.
|
MutableFloatVector.Rel.Sparse<U> |
mutable()
Create a mutable version of this FloatVector.
|
getcardinality, checkIndex, checkNonEmpty, checkSize, checkSize, deepCopyData, deepCopyOfData, denseToSparse, denseToSparse, equals, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, getVectorSI, hashCode, initialize, initialize, initialize, interpolate, interpolate, interpolate, interpolate, minus, minus, minus, minus, minus, minus, minus, minus, minus, plus, plus, plus, plus, plus, plus, safeGet, safeSet, size, sparseToDense, sparseToDense, times, times, times, times, times, times, times, times, times, times, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativepublic FloatVector.Rel.Sparse(float[] values,
U unit)
throws ValueException
values - float[]; the values of the entries in the new Relative Sparse Immutable FloatVectorunit - U; the unit of the new Relative Sparse Immutable FloatVectorValueException - when values is nullpublic FloatVector.Rel.Sparse(FloatScalar.Rel<U>[] values) throws ValueException
values - FloatScalar.Rel<U>[]; the values of the entries in the new Relative Sparse Immutable
FloatVectorValueException - when values has zero entriesprotected FloatVector.Rel.Sparse(FloatMatrix1D values, U unit)
values - FloatMatrix1D; the values of the entries in the new Relative Sparse Immutable FloatVectorunit - U; the unit of the new Relative Sparse Immutable FloatVectorpublic final MutableFloatVector.Rel.Sparse<U> mutable()
mutable in class FloatVector<U extends Unit<U>>protected final FloatMatrix1D createMatrix1D(int size)
createMatrix1D in class FloatVector<U extends Unit<U>>size - int; the number of cells in the vectorCopyright © 2014–2015 Delft University of Technology. All rights reserved.