public interface IVector extends INDArray
| Modifier and Type | Method and Description |
|---|---|
AVector |
addCopy(AVector a)
Adds a vector element-wise to this vector, returning a new vector.
|
AVector |
clone()
Returns a clone of the array data, as a new array which will be fully mutable
and may be of a different class to the original.
|
AVector |
divideCopy(AVector a)
Divides this vector element-wise by another vector, returning a new vector.
|
boolean |
epsilonEquals(AVector v,
double tolerance) |
double |
get(int i)
Gets a specified element from a vector.
|
boolean |
isSameShape(AVector a)
Returns true if this vector is exactly the same shape as another vector.
|
int |
length()
Returns the length of a vector, in terms of the number of elements.
|
AVector |
multiplyCopy(AVector a)
Multiplies a vector element-wise with this vector, returning a new vector.
|
double |
normalise() |
AVector |
normaliseCopy()
Normalises this vector to unit length, returning a new vector.
|
AVector |
rotateCopy(int shift)
Rotates a vector by the specified number of elements, wrapping around element values.
|
AVector |
rotateView(int shift)
Rotates a vector by the specified number of elements, wrapping around element values.
|
void |
set(int i,
double value)
Set a specified element in a vector
|
AVector |
shiftCopy(int shift)
Shifts a vector by the specified number of elements, filling with zeros.
|
AVector |
sqrtCopy()
Computes the square root for each element in this vector, returning a new vector.
|
AVector |
subCopy(AVector a)
Subtracts a vector element-wise from this vector, returning a new vector.
|
abs, absCopy, add, add, addAt, addCopy, addCopy, addInnerProduct, addMultiple, addOuterProduct, addPower, addPower, addToArray, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, broadcastLike, checkMutable, clamp, componentCount, copy, dense, denseClone, dimensionality, divide, divide, divideCopy, elementAbsPowSum, elementCount, elementIterator, elementMax, elementMin, elementPowSum, elementProduct, elementsEqual, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, equals, equalsArray, equalsArray, exactClone, exp, fill, get, get, get, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, getElements, getLongShape, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, isBoolean, isDense, isElementConstrained, isFullyMutable, isMutable, isSameShape, isSparse, isView, isZero, join, join, log, multiply, multiply, multiplyCopy, multiplyCopy, mutable, negate, negateCopy, nonZeroCount, outerProduct, pow, reciprocal, reciprocalCopy, reduce, reduce, reduceSlices, reduceSlices, reorder, reorder, reshape, rotateView, scale, scaleAdd, scaleAdd, scaleCopy, set, set, set, set, set, set, setElements, setElements, setElements, setInnerProduct, setMultiple, setMultiple, signum, signumCopy, slice, slice, sliceCount, sliceValue, sparse, sparseClone, sqrt, square, squareCopy, sub, sub, subArray, subCopy, toArray, toDoubleArray, toDoubleBuffer, toSliceArray, toVector, validate, withComponentsint length()
double get(int i)
void set(int i,
double value)
AVector addCopy(AVector a)
a - AVector subCopy(AVector a)
a - AVector multiplyCopy(AVector a)
a - AVector divideCopy(AVector a)
a - AVector sqrtCopy()
a - boolean epsilonEquals(AVector v, double tolerance)
double normalise()
AVector normaliseCopy()
AVector clone()
INDArrayboolean isSameShape(AVector a)
a - AVector shiftCopy(int shift)
shift - AVector rotateView(int shift)
shift - AVector rotateCopy(int shift)
shift - Copyright © 2016. All rights reserved.