public final class ZeroArray extends BaseShapedArray implements ISparse
shape| Modifier and Type | Method and Description |
|---|---|
INDArray |
addCopy(INDArray a)
Creates a new array equal to the sum of this array with another array.
|
void |
addToArray(double[] data,
int offset)
Adds all the elements of this array to a double array, in row-major order
|
AVector |
asVector()
Constructs a view of all elements in the array as a single vector in row-major order.
|
INDArray |
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.
|
static ZeroArray |
create(int... shape) |
double |
elementAbsPowSum(double p)
Returns the sum of the absolute values of all the elements raised to a specified power
|
double |
elementPowSum(double p)
Returns the sum of all the elements raised to a specified power
|
boolean |
equals(INDArray a)
Checks if two arrays are equal exactly in terms of both value and shape
|
boolean |
equalsArray(double[] data,
int offset)
Returns true if the elements in this array exactly match the elements in the given array, in
row-major order
|
ZeroArray |
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 |
get(int... indexes)
Returns the double value at the specified index position in an array
|
double |
get(int x)
Returns the double value at the specified position in a 1D vector
|
double |
get(int x,
int y)
Returns the double value at the specified position in a 2D matrix
|
List<INDArray> |
getSlices()
Returns a list of all major slices of this array.
|
ZeroArray |
getTranspose()
Returns the transpose of this array.
|
boolean |
hasUncountable()
Returns true if any element is this array is NaN or infinite
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
boolean |
isView()
Return true if this array is considered as a view type.
|
boolean |
isZero()
Returns true if the array is zero (all elements equal to zero)
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
void |
set(int[] indexes,
double value)
Sets the element at the given indexed position in a mutable array
|
INDArray |
slice(int majorSlice)
Returns the specified major slice of this array as a view (slice along dimension 0)
0 dimensional slice results are permitted, but attempting to slice a 0 dimensional array
will result in an error.
|
INDArray |
slice(int dimension,
int index)
Returns a slice view of this array along the specified dimension
|
INDArray |
sparseClone()
Creates a fully mutable clone of this array.
|
static ZeroArray |
wrap(int... shape) |
dimensionality, elementCount, getShape, getShape, getShapeClone, reduce, reduce, sliceCountabs, absCopy, add, add, add, addAt, addCopy, addInnerProduct, addInnerProduct, addInnerProduct, addMultiple, addOuterProduct, addPower, addPower, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, broadcastLike, checkDimension, checkMutable, clamp, componentCount, copy, dense, denseClone, density, divide, divide, divideCopy, elementIterator, elementMax, elementMin, elementProduct, elementsEqual, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, equals, equals, equalsArray, exp, fill, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, getElements, getLongShape, getSlices, getSliceViews, getTransposeCopy, getTransposeView, hashCode, immutable, innerProduct, innerProduct, innerProduct, innerProduct, isBoolean, isDense, isElementConstrained, isFullyMutable, isSameShape, isSparse, iterator, join, join, log, multiply, multiply, multiplyCopy, multiplyCopy, mutable, negate, negateCopy, 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, sqrt, square, squareCopy, sub, sub, sub, subArray, subCopy, toArray, toDoubleArray, toDoubleBuffer, toSliceArray, toString, toStringFull, toVector, validate, withComponentsfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static ZeroArray wrap(int... shape)
public static ZeroArray create(int... shape)
public long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AbstractArray<INDArray>public double get(int... indexes)
INDArraypublic double get()
INDArrayget in interface INDArrayget in class AbstractArray<INDArray>public double get(int x)
INDArrayget in interface INDArrayget in class AbstractArray<INDArray>public double get(int x,
int y)
INDArrayget in interface INDArrayget in class AbstractArray<INDArray>public void set(int[] indexes,
double value)
INDArraypublic INDArray slice(int majorSlice)
INDArraypublic INDArray slice(int dimension, int index)
INDArraypublic List<INDArray> getSlices()
INDArraygetSlices in interface INDArraygetSlices in class AbstractArray<INDArray>public boolean isView()
INDArraypublic boolean isMutable()
INDArrayisMutable in interface INDArrayisMutable in class AbstractArray<INDArray>public boolean isZero()
INDArrayisZero in interface INDArrayisZero in class BaseShapedArraypublic ZeroArray getTranspose()
INDArraygetTranspose in interface INDArraygetTranspose in class AbstractArray<INDArray>public void addToArray(double[] data,
int offset)
INDArrayaddToArray in interface INDArrayaddToArray in class AbstractArray<INDArray>public INDArray addCopy(INDArray a)
INDArrayaddCopy in interface INDArrayaddCopy in class AbstractArray<INDArray>public boolean equalsArray(double[] data,
int offset)
INDArrayequalsArray in interface INDArrayequalsArray in class AbstractArray<INDArray>data - Array of double element values to check for equalityoffset - Offset into the data arraypublic boolean equals(INDArray a)
INDArrayequals in interface INDArrayequals in class AbstractArray<INDArray>public AVector asVector()
INDArrayasVector in interface INDArrayasVector in class AbstractArray<INDArray>public INDArray clone()
INDArrayclone in interface INDArrayclone in class AbstractArray<INDArray>public INDArray sparseClone()
INDArraysparseClone in interface INDArraysparseClone in class AbstractArray<INDArray>public ZeroArray exactClone()
INDArrayexactClone in interface INDArraypublic boolean hasUncountable()
AbstractArrayhasUncountable in interface INDArrayhasUncountable in class AbstractArray<INDArray>public double elementPowSum(double p)
elementPowSum in interface INDArrayelementPowSum in class AbstractArray<INDArray>public double elementAbsPowSum(double p)
elementAbsPowSum in interface INDArrayelementAbsPowSum in class AbstractArray<INDArray>Copyright © 2016. All rights reserved.