public abstract class AStridedVector extends AVector implements IStridedArray
| Constructor and Description |
|---|
AStridedVector() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Vector v) |
double[] |
asDoubleArray()
Returns the underlying double array representing the packed elements of this array
Returns nil if there is no such underlying array
|
INDArray |
broadcast(int... shape)
Returns a view of this array broadcasted up to a larger shape
|
INDArray |
broadcastLike(AMatrix target) |
INDArray |
broadcastLike(INDArray target)
Broadcasts to match the shape of the target
|
AStridedVector |
clone()
Clones the vector, creating a new mutable copy of all data.
|
double |
dotProduct(double[] data,
int offset)
Fast dot product with a double[] array.
|
AStridedVector |
ensureMutable()
Ensures the array is a fully mutable, efficient representation that is not
a view.
|
abstract double[] |
getArray() |
abstract int |
getArrayOffset() |
abstract int |
getStride() |
int |
getStride(int dimension) |
int[] |
getStrides() |
boolean |
isPackedArray() |
Iterator<Double> |
iterator() |
abs, add, add, add, add, add, add, addAt, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, addToArray, addWeighted, angle, applyOp, applyOp, asElementList, asVector, clamp, clampMax, clampMin, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divide, divideTo, dotProduct, dotProduct, dotProduct, elementCount, elementIterator, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsArray, exactClone, fill, fillRange, get, get, get, get, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isFullyMutable, isMutable, isSameShape, isSameShape, isUnitLengthVector, isView, isZero, join, length, log, logistic, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, mutable, negate, nonZeroCount, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, set, setElements, setElements, setRange, setValues, signum, slice, slice, sliceCount, square, sub, sub, sub, subMultiple, subVector, tanh, toDoubleArray, toDoubleBuffer, toList, toNormal, toString, toVector, unsafeGet, unsafeSet, validate, zeroCountbroadcastCloneLike, exp, get, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitgetShapeabs, add, add, applyOp, applyOp, asElementList, asVector, broadcastCloneLike, clamp, copyTo, dimensionality, divide, divide, elementCount, elementIterator, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, equals, exactClone, exp, fill, get, get, get, get, getElements, getLongShape, getShape, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, innerProduct, isBoolean, isElementConstrained, isFullyMutable, isMutable, isSameShape, isView, isZero, log, multiply, multiply, negate, nonZeroCount, outerProduct, pow, reciprocal, reshape, scale, scaleAdd, set, set, set, set, set, set, setElements, setElements, signum, slice, slice, sliceCount, sqrt, square, sub, sub, toArray, toDoubleArray, toDoubleBuffer, toVector, validatepublic abstract double[] getArray()
getArray in interface IStridedArraypublic abstract int getArrayOffset()
getArrayOffset in interface IStridedArraypublic abstract int getStride()
public AStridedVector ensureMutable()
INDArrayensureMutable in interface INDArrayensureMutable in class AbstractArray<Double>public double dotProduct(double[] data,
int offset)
AVectordotProduct in class AVectorpublic INDArray broadcast(int... shape)
INDArraypublic INDArray broadcastLike(INDArray target)
INDArraybroadcastLike in interface INDArraybroadcastLike in class AVectorpublic INDArray broadcastLike(AMatrix target)
broadcastLike in class AVectorpublic AStridedVector clone()
AVectorpublic void add(Vector v)
public double[] asDoubleArray()
INDArrayasDoubleArray in interface INDArrayasDoubleArray in class AVectorpublic boolean isPackedArray()
isPackedArray in interface IStridedArraypublic int[] getStrides()
getStrides in interface IStridedArraypublic int getStride(int dimension)
getStride in interface IStridedArrayCopyright © 2013. All Rights Reserved.