public class ArrayIndexScalar extends AScalar implements IStridedArray, IDenseArray
| Constructor and Description |
|---|
ArrayIndexScalar(double[] array,
int index) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
asDoubleArray()
Returns the underlying double array representing the densely packed elements of this array
Returns null if there is no such array
|
ArraySubVector |
asVector()
Constructs a view of all elements in the array as a single vector in row-major order.
|
Scalar |
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.
|
ArrayIndexScalar |
exactClone()
Creates a deep clone of an array, using the same class implementation as the original array
|
double |
get()
Returns the double value of a scalar array
|
double[] |
getArray()
Gets the underlying data array for this strided array
Unsafe operation - may allow modification of otherwise immutable arrays
|
int |
getArrayOffset()
Gets the data array offset for the first element of this strided array
|
int |
getStride(int dimension)
Gets the stide for a specific dimension in this strided array.
|
int[] |
getStrides()
Gets the strides for each dimension of this strided array.
|
ImmutableScalar |
immutable()
Returns an immutable version of this array.
|
boolean |
isFullyMutable()
If this method returns true, the INDArray is guaranteed to be fully mutable
in all positions i.e.
|
boolean |
isPackedArray()
Checks if this array is fully packed in row major order.
|
boolean |
isView()
Return true if this array is considered as a view type.
|
ArrayIndexScalar |
mutable()
Coerces this INDArray to a fully mutable format.
|
void |
set(double value)
Sets all elements of an array to a specific double value
|
void |
validate()
Validates the internal data structure of the INDArray.
|
static ArrayIndexScalar |
wrap(double[] array,
int index) |
abs, add, add, addAt, addCopy, addInnerProduct, addToArray, applyOp, applyOp, applyOp, applyOp, broadcast, broadcastLike, broadcastLike, broadcastLike, checkDimension, clamp, dense, denseClone, dimensionality, divide, elementCount, elementIterator, elementMax, elementMin, elementProduct, elementsEqual, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, get, get, get, getElements, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeView, hashCode, hasUncountable, innerProduct, innerProduct, innerProduct, innerProduct, isBoolean, isElementConstrained, isMutable, isZero, iterator, multiply, multiply, negate, nonZeroCount, outerProduct, pow, reduce, reduce, reshape, set, setElements, setElements, slice, slice, sliceCount, sparse, sparseClone, square, sub, sub, subArray, toDoubleArray, toDoubleBuffer, toSliceArray, toStringabsCopy, add, addCopy, addInnerProduct, addInnerProduct, addMultiple, addOuterProduct, addPower, addPower, applyOpCopy, asElementList, broadcastCloneLike, broadcastCopyLike, checkMutable, componentCount, copy, density, divide, divideCopy, elementAbsPowSum, elementPowSum, ensureMutable, equals, equalsArray, exp, fill, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getShapeClone, getSlices, getSliceViews, getTransposeCopy, isDense, isSameShape, isSparse, join, join, log, multiplyCopy, multiplyCopy, negateCopy, reciprocal, reciprocalCopy, reduceSlices, reduceSlices, reorder, reorder, rotateView, scale, scaleAdd, scaleAdd, scaleCopy, set, set, set, set, set, setElements, setInnerProduct, setMultiple, setMultiple, signum, signumCopy, sliceValue, sqrt, squareCopy, sub, subCopy, toArray, toStringFull, toVector, withComponentsfinalize, getClass, notify, notifyAll, wait, wait, waitabs, absCopy, add, add, addAt, addCopy, addCopy, addInnerProduct, addMultiple, addOuterProduct, addPower, addPower, addToArray, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asElementList, 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, 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, innerProduct, innerProduct, innerProduct, innerProduct, isBoolean, isDense, isElementConstrained, isMutable, isSameShape, isSparse, isZero, join, join, log, multiply, multiply, multiplyCopy, multiplyCopy, 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, withComponentsforEach, spliteratorpublic static ArrayIndexScalar wrap(double[] array, int index)
public double get()
INDArraypublic void set(double value)
INDArraypublic boolean isView()
INDArraypublic boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArrayisFullyMutable in class AScalarpublic Scalar clone()
INDArraypublic ArrayIndexScalar exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AScalarpublic void validate()
INDArraypublic double[] getArray()
IStridedArraygetArray in interface IDenseArraygetArray in interface IStridedArraypublic int getArrayOffset()
IStridedArraygetArrayOffset in interface IDenseArraygetArrayOffset in interface IStridedArraypublic int[] getStrides()
IStridedArraygetStrides in interface IStridedArraypublic int getStride(int dimension)
IStridedArraygetStride in interface IStridedArraypublic boolean isPackedArray()
IStridedArrayisPackedArray in interface IStridedArraypublic double[] asDoubleArray()
INDArrayasDoubleArray in interface INDArrayasDoubleArray in class AScalarpublic ArrayIndexScalar mutable()
INDArraypublic ArraySubVector asVector()
INDArraypublic ImmutableScalar immutable()
INDArrayCopyright © 2016. All rights reserved.