public class PivotedVectorView extends AbstractVector
Vector.Element| Constructor and Description |
|---|
PivotedVectorView() |
PivotedVectorView(Vector vec,
int[] pivot) |
PivotedVectorView(Vector vec,
int[] pivot,
int[] unpivot) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
copy()
Creates new copy of this vector.
|
Vector |
getBaseVector() |
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.
|
protected Vector.Element |
makeElement(int idx) |
int |
pivot(int i) |
void |
readExternal(ObjectInput in) |
Vector |
times(double x)
Gets a new vector that contains product of each element and the argument.
|
int |
unpivot(int i) |
void |
writeExternal(ObjectOutput out) |
all, allSpliterator, assign, assign, assign, assign, checkCardinality, checkCardinality, checkCardinality, checkIndex, compute, cross, destroy, divide, 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, map, map, map, maxElement, maxValue, minElement, minus, minValue, nonZeroElements, nonZeroes, nonZeroSpliterator, normalize, normalize, plus, plus, set, setStorage, setX, size, sort, storageGet, storageSet, sum, times, toMatrix, toMatrixPlusOne, viewPartclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAttribute, hasAttribute, removeAttribute, setAttributepublic PivotedVectorView(Vector vec, int[] pivot, int[] unpivot)
vec - Parent vector.pivot - Mapping from external index to internal.unpivot - Mapping from internal index to external.public PivotedVectorView(Vector vec, int[] pivot)
vec - Parent vector.pivot - Mapping from external index to internal.public PivotedVectorView()
public Vector getBaseVector()
public int pivot(int i)
i - Index to pivot.public int unpivot(int i)
i - Index to unpivot.protected Vector.Element makeElement(int idx)
makeElement in class AbstractVectoridx - Index of vector element.public Vector copy()
copy in interface Vectorcopy in class AbstractVectorpublic 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 Vector times(double x)
times in interface Vectortimes in class AbstractVectorx - Multiply argument.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractVectorIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractVectorIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018