public class VectorView extends AbstractVector
Vector
.Vector.Element
Constructor and Description |
---|
VectorView()
Constructor for
Externalizable interface. |
VectorView(Vector parent,
int off,
int len) |
VectorView(VectorStorage sto,
int off,
int len) |
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.
|
all, allSpliterator, assign, assign, assign, assign, checkCardinality, checkCardinality, checkCardinality, checkIndex, compute, copyOfRange, cross, destroy, divide, dot, dotSelf, foldMap, foldMap, get, getDistanceSquared, getElement, getLengthSquared, getMetaStorage, getRaw, getRawX, getStorage, getX, guid, hashCode, increment, incrementX, isArrayBased, isDense, isDistributed, isNumeric, isZero, kNorm, logNormalize, logNormalize, makeElement, map, map, map, maxElement, maxValue, minElement, minus, minValue, nonZeroElements, nonZeroes, nonZeroSpliterator, normalize, normalize, plus, plus, readExternal, set, setRaw, setRawX, setStorage, setX, size, sort, storageGet, storageGetRaw, storageSet, storageSetRaw, sum, times, times, toMatrix, toMatrixPlusOne, viewPart, writeExternal
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
asArray, labeled
getAttribute, hasAttribute, removeAttribute, setAttribute
public VectorView()
Externalizable
interface.public VectorView(Vector parent, int off, int len)
parent
- Backing parent Vector
.off
- Offset to parent vector.len
- Size of the view.public VectorView(VectorStorage sto, int off, int len)
sto
- Backing parent VectorStorage
.off
- Offset to parent vector.len
- Size of the view.public Vector copy()
copy
in interface Vector
copy
in class AbstractVector
public 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
GridGain In-Memory Computing Platform : ver. 8.9.19 Release Date : April 10 2025