public abstract class BaseShapedArray extends AbstractArray<INDArray>
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
shape |
| Constructor and Description |
|---|
BaseShapedArray(int[] shape) |
| Modifier and Type | Method and Description |
|---|---|
int |
dimensionality()
Returns the dimensionality of the array (i.e.
|
long |
elementCount()
Returns the total number of elements in this array.
|
int[] |
getShape()
Returns the shape of the array as an array of ints.
|
int |
getShape(int dim)
Returns the dimension size for a specific dimension in the array's shape
|
int[] |
getShapeClone()
Returns the shape of the array as an array of ints, guaranteed to be a new array
i.e.
|
boolean |
isZero()
Returns true if the array is zero (all elements equal to zero)
|
double |
reduce(Op2 op)
Reduces over all elements of the array in row-major order.
|
double |
reduce(Op2 op,
double init)
Reduces over all elements of the array in row-major order.
|
int |
sliceCount()
Returns the number of major slices in this array (i.e.
|
abs, absCopy, add, add, add, addAt, addCopy, addCopy, addInnerProduct, addInnerProduct, addInnerProduct, addMultiple, addOuterProduct, addPower, addPower, addToArray, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, broadcastLike, checkDimension, checkMutable, clamp, clone, componentCount, copy, dense, denseClone, density, divide, divide, divideCopy, elementAbsPowSum, elementIterator, elementMax, elementMin, elementPowSum, elementProduct, elementsEqual, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsArray, exp, fill, get, get, get, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, getElements, getLongShape, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, isBoolean, isDense, isElementConstrained, isFullyMutable, isMutable, isSameShape, isSparse, iterator, join, join, log, multiply, multiply, multiplyCopy, multiplyCopy, mutable, negate, negateCopy, nonZeroCount, outerProduct, pow, reciprocal, reciprocalCopy, reduceSlices, reduceSlices, reorder, reorder, reshape, rotateView, scale, scaleAdd, scaleAdd, scaleCopy, set, set, set, set, set, set, setElements, setElements, setElements, setInnerProduct, setMultiple, setMultiple, signum, signumCopy, sliceValue, sparse, sparseClone, sqrt, square, squareCopy, sub, sub, sub, subArray, subCopy, toArray, toDoubleArray, toDoubleBuffer, toSliceArray, toString, toStringFull, toVector, validate, withComponentsfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic int dimensionality()
INDArraypublic int[] getShape()
INDArraypublic int[] getShapeClone()
INDArraygetShapeClone in interface INDArraygetShapeClone in class AbstractArray<INDArray>public int sliceCount()
INDArraypublic double reduce(Op2 op, double init)
INDArrayreduce in interface INDArrayreduce in class AbstractArray<INDArray>public double reduce(Op2 op)
INDArrayreduce in interface INDArrayreduce in class AbstractArray<INDArray>public boolean isZero()
INDArrayisZero in interface INDArrayisZero in class AbstractArray<INDArray>public int getShape(int dim)
INDArraygetShape in interface INDArraygetShape in class AbstractArray<INDArray>public long elementCount()
INDArrayCopyright © 2016. All rights reserved.