public class ArrayIndexScalar extends AScalar implements IStridedArray
| Constructor and Description |
|---|
ArrayIndexScalar(double[] array,
int index) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
asDoubleArray()
Returns the underlying double array representing the packed elements of this array
Returns nil if there is no such underlying array
|
Scalar |
clone()
Returns a clone of the array, as a new array which will be fully mutable
and may be of a different class to the original.
|
ArrayIndexScalar |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get()
Returns the double value of a scalar array
|
double[] |
getArray() |
int |
getArrayOffset() |
int |
getStride(int dimension) |
int[] |
getStrides() |
boolean |
isFullyMutable()
Returns true if the INDArray is fully mutable in all positions
i.e.
|
boolean |
isPackedArray() |
boolean |
isView()
Return true if this array is a view type
|
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, add, applyOp, applyOp, asVector, broadcast, clamp, copyTo, dimensionality, divide, elementCount, elementIterator, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, equals, equals, equals, get, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeView, hashCode, innerProduct, innerProduct, isElementConstrained, isMutable, isZero, iterator, multiply, multiply, negate, nonZeroCount, outerProduct, pow, reshape, set, setElements, slice, slice, sliceCount, square, sub, sub, sub, toDoubleArray, toDoubleBuffer, toStringasElementList, broadcastCloneLike, broadcastLike, divide, ensureMutable, exp, fill, get, get, getSliceViews, getTransposeCopy, isBoolean, isSameShape, log, reciprocal, scale, scaleAdd, set, set, set, set, setElements, signum, sqrt, toArray, toVectorfinalize, getClass, notify, notifyAll, wait, wait, waitgetShapeabs, add, add, applyOp, applyOp, asElementList, asVector, broadcast, broadcastCloneLike, broadcastLike, clamp, copyTo, dimensionality, divide, divide, elementCount, elementIterator, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, equals, exp, fill, get, get, get, getElements, getLongShape, getShape, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, innerProduct, isBoolean, isElementConstrained, isMutable, isSameShape, isZero, log, multiply, multiply, negate, nonZeroCount, outerProduct, pow, reciprocal, reshape, scale, scaleAdd, set, set, set, set, set, setElements, setElements, signum, slice, slice, sliceCount, sqrt, square, sub, sub, toArray, toDoubleArray, toDoubleBuffer, toVectorpublic 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()
getArray in interface IStridedArraypublic int getArrayOffset()
getArrayOffset in interface IStridedArraypublic int[] getStrides()
getStrides in interface IStridedArraypublic int getStride(int dimension)
getStride in interface IStridedArraypublic boolean isPackedArray()
isPackedArray in interface IStridedArraypublic double[] asDoubleArray()
INDArrayasDoubleArray in interface INDArrayasDoubleArray in class AScalarCopyright © 2013. All Rights Reserved.