public class ConstantVector extends AbstractReadOnlyVector
Vector.Element| Constructor and Description |
|---|
ConstantVector() |
ConstantVector(int size,
double val) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
copy()
Creates new copy of this vector.
|
boolean |
equals(Object o) |
Vector |
like(int crd)
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.
|
compute, cross, divide, logNormalize, logNormalize, map, map, map, times, toMatrix, toMatrixPlusOneall, allSpliterator, assign, assign, assign, assign, checkCardinality, checkCardinality, checkCardinality, checkIndex, destroy, dot, dotSelf, foldMap, foldMap, get, getDistanceSquared, getElement, getLengthSquared, getMetaStorage, getStorage, getX, guid, hashCode, increment, incrementX, isArrayBased, isDense, isDistributed, isRandomAccess, isSequentialAccess, isZero, kNorm, makeElement, maxElement, maxValue, minElement, minus, minValue, nonZeroElements, nonZeroes, nonZeroSpliterator, normalize, normalize, plus, plus, readExternal, set, setStorage, setX, size, sort, storageGet, storageSet, sum, times, viewPart, writeExternalclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAttribute, hasAttribute, removeAttribute, setAttributepublic ConstantVector()
public ConstantVector(int size,
double val)
size - Vector size.val - Value of the constant.public Vector copy()
copy in interface Vectorcopy in class AbstractReadOnlyVectorpublic Vector like(int crd)
crd - Cardinality for new vector.public Matrix likeMatrix(int rows, int cols)
rows - Number of rows.cols - Number of columns.public boolean equals(Object o)
equals in class AbstractVector
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018