U
- Unitpublic static class DoubleVector.Rel.Sparse<U extends Unit<U>> extends DoubleVector.Rel<U> implements SparseData
DoubleVector.Rel.Dense<U extends Unit<U>>, DoubleVector.Rel.Sparse<U extends Unit<U>>
DoubleVector.Abs<U extends Unit<U>>, DoubleVector.Rel<U extends Unit<U>>
Modifier | Constructor and Description |
---|---|
|
DoubleVector.Rel.Sparse(double[] values,
U unit)
Construct a new Relative Sparse Immutable DoubleVector.
|
protected |
DoubleVector.Rel.Sparse(cern.colt.matrix.tdouble.DoubleMatrix1D values,
U unit)
For package internal use only.
|
|
DoubleVector.Rel.Sparse(DoubleScalar.Rel<U>[] values)
Construct a new Relative Sparse Immutable DoubleVector.
|
Modifier and Type | Method and Description |
---|---|
DoubleVector.Rel.Sparse<U> |
copy()
Create a deep copy of this Value.
|
protected cern.colt.matrix.tdouble.DoubleMatrix1D |
createMatrix1D(int size)
Create storage for the data.
|
MutableDoubleVector.Rel.Sparse<U> |
mutable()
Create a mutable version of this DoubleVector.
|
get
cardinality, 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, zSum
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative
public DoubleVector.Rel.Sparse(double[] values, U unit) throws ValueException
values
- double[]; the values of the entries in the new Relative Sparse Immutable DoubleVectorunit
- U; the unit of the new Relative Sparse Immutable DoubleVectorValueException
- when values is nullpublic DoubleVector.Rel.Sparse(DoubleScalar.Rel<U>[] values) throws ValueException
values
- DoubleScalar.Rel<U>[]; the values of the entries in the new Relative Sparse Immutable
DoubleVectorValueException
- when values has zero entriesprotected DoubleVector.Rel.Sparse(cern.colt.matrix.tdouble.DoubleMatrix1D values, U unit)
values
- DoubleMatrix1D; the values of the entries in the new Relative Sparse Immutable DoubleVectorunit
- U; the unit of the new Relative Sparse Immutable DoubleVectorpublic final MutableDoubleVector.Rel.Sparse<U> mutable()
mutable
in class DoubleVector<U extends Unit<U>>
protected final cern.colt.matrix.tdouble.DoubleMatrix1D createMatrix1D(int size)
createMatrix1D
in class DoubleVector<U extends Unit<U>>
size
- int; the number of cells in the vectorCopyright © 2014–2015 Delft University of Technology. All rights reserved.