public class SparseDistributedVector extends AbstractVector implements StorageConstants
Unlike CacheVector that is based on existing cache, this implementation creates distributed
cache internally and doesn't rely on pre-existing cache.
You also need to call AbstractVector.destroy() to remove the underlying cache when you no longer need this
vector.
Currently fold supports only commutative operations.
Vector.ElementCOLUMN_STORAGE_MODE, RANDOM_ACCESS_MODE, ROW_STORAGE_MODE, SEQUENTIAL_ACCESS_MODE, UNKNOWN_STORAGE_MODE| Constructor and Description |
|---|
SparseDistributedVector() |
SparseDistributedVector(double[] data) |
SparseDistributedVector(int size) |
SparseDistributedVector(int size,
int acsMode) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
assign(double val)
Assigns given value to all elements of this vector.
|
Vector |
divide(double d)
Return the same matrix with updates values (broken contract).
|
UUID |
getUUID() |
Vector |
like(int size)
Creates new empty vector of the same underlying class but of different cardinality.
|
Matrix |
likeMatrix(int rows,
int cols)
Creates new matrix of compatible flavor with given size.
|
Vector |
map(IgniteDoubleFunction<Double> fun)
Maps all values in this vector through a given function.
|
Vector |
plus(double x)
Return the same matrix with updates values (broken contract).
|
SparseDistributedVectorStorage |
storage() |
Vector |
times(double x)
Return the same matrix with updates values (broken contract).
|
all, allSpliterator, assign, assign, assign, checkCardinality, checkCardinality, checkCardinality, checkIndex, compute, copy, cross, destroy, dot, dotSelf, equals, foldMap, foldMap, get, getDistanceSquared, getElement, getLengthSquared, getMetaStorage, getStorage, getX, guid, hashCode, increment, incrementX, isArrayBased, isDense, isDistributed, isRandomAccess, isSequentialAccess, isZero, kNorm, logNormalize, logNormalize, makeElement, map, map, maxElement, maxValue, minElement, minus, minValue, nonZeroElements, nonZeroes, nonZeroSpliterator, normalize, normalize, plus, readExternal, set, setStorage, setX, size, sort, storageGet, storageSet, sum, times, toMatrix, toMatrixPlusOne, viewPart, writeExternalclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitassertAccessMode, assertStorageModegetAttribute, hasAttribute, removeAttribute, setAttributepublic SparseDistributedVector()
public SparseDistributedVector(int size,
int acsMode)
size - Vector size.acsMode - Vector elements access mode..public SparseDistributedVector(int size)
size - Size.public SparseDistributedVector(double[] data)
data - Data.public SparseDistributedVectorStorage storage()
public Vector divide(double d)
divide in interface Vectordivide in class AbstractVectord - Value to divide to.public Vector like(int size)
public Matrix likeMatrix(int rows, int cols)
likeMatrix in interface Vectorrows - Number of rows.cols - Number of columns.public Vector plus(double x)
plus in interface Vectorplus in class AbstractVectorx - Value to add.public Vector times(double x)
times in interface Vectortimes in class AbstractVectorx - Value to multiply.public Vector assign(double val)
assign in interface Vectorassign in class AbstractVectorval - Value to assign.public Vector map(IgniteDoubleFunction<Double> fun)
map in interface Vectormap in class AbstractVectorfun - Mapping function.public UUID getUUID()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018