public class FunctionVector extends AbstractVector
Vector that maps vector element index to java.util.function interfaces.Vector.Element| Constructor and Description |
|---|
FunctionVector() |
FunctionVector(int size,
IgniteFunction<Integer,Double> getFunc)
Creates read-only function vector.
|
FunctionVector(int size,
IgniteFunction<Integer,Double> getFunc,
IntDoubleToVoidFunction setFunc)
Creates read-write or read-only function vector.
|
FunctionVector(Map<String,Object> args) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Vector |
times(double x)
Gets a new vector that contains product of each element and the argument.
|
all, allSpliterator, assign, assign, assign, assign, checkCardinality, checkCardinality, checkCardinality, checkIndex, compute, copy, 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, makeElement, map, map, map, maxElement, maxValue, minElement, minus, minValue, nonZeroElements, nonZeroes, nonZeroSpliterator, normalize, normalize, plus, plus, readExternal, set, setStorage, setX, size, sort, storageGet, storageSet, sum, times, toMatrix, toMatrixPlusOne, viewPart, writeExternalclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAttribute, hasAttribute, removeAttribute, setAttributepublic FunctionVector()
public FunctionVector(int size,
IgniteFunction<Integer,Double> getFunc,
IntDoubleToVoidFunction setFunc)
size - Vector size.getFunc - Function that returns value corresponding to given element index.setFunc - Set function. If null - this will be a read-only vector.public FunctionVector(int size,
IgniteFunction<Integer,Double> getFunc)
size - Vector size.getFunc - Function that returns value corresponding to given element index.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 Vector times(double x)
times in interface Vectortimes in class AbstractVectorx - Multiply argument.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018