| Constructor and Description |
|---|
AbstractArray() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(INDArray a) |
INDArray |
broadcast(int... targetShape) |
AbstractArray<?> |
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.
|
void |
copyTo(double[] arr)
Copies the elements of this INDArray to the specified double array
|
double |
elementSum()
Returns the total sum of elements in this array.
|
boolean |
equals(Object o) |
double |
get()
Returns the double value of a scalar 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
|
void |
getElements(double[] dest,
int offset)
Gets all elements of the array, copying them into a double array
|
int |
getShape(int dim)
Returns the dimension size for a specific dimension in the array's shape
|
abstract List<T> |
getSlices()
Returns a list of all major slices of this array.
|
List<INDArray> |
getSliceViews()
Returns a list of slices as mutable INDArray views.
|
int |
hashCode() |
INDArray |
innerProduct(INDArray a) |
Iterator<T> |
iterator() |
void |
multiply(INDArray a)
Multiplies all elements by the equivalent elements in a second array
|
void |
negate() |
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
INDArray |
outerProduct(INDArray a) |
INDArray |
reshape(int... targetShape) |
void |
scale(double d)
Scales all elements of the array by a given double value
|
void |
set(double value) |
void |
set(INDArray a) |
void |
set(int x,
double value) |
void |
set(int x,
int y,
double value) |
void |
set(Object o) |
void |
setElements(double[] values)
Sets all elements in an array using the given double values
|
void |
square() |
void |
sub(INDArray a) |
String |
toString() |
void |
validate()
Validates the internal data structure of the INDArray.
|
finalize, getClass, notify, notifyAll, wait, wait, waitapplyOp, applyOp, asVector, dimensionality, elementCount, equals, exactClone, get, getLongShape, getShape, isElementConstrained, isFullyMutable, isMutable, isView, multiply, set, setElements, slice, slice, sliceCountpublic double get()
INDArraypublic double get(int x)
INDArraypublic double get(int x,
int y)
INDArraypublic int getShape(int dim)
INDArraypublic INDArray innerProduct(INDArray a)
innerProduct in interface INDArraypublic INDArray outerProduct(INDArray a)
outerProduct in interface INDArraypublic final void scale(double d)
INDArraypublic void setElements(double[] values)
INDArraysetElements in interface INDArraypublic void square()
public AbstractArray<?> clone()
INDArraypublic void multiply(INDArray a)
INDArraypublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraypublic double elementSum()
INDArrayelementSum in interface INDArraypublic abstract List<T> getSlices()
INDArraypublic List<INDArray> getSliceViews()
INDArraygetSliceViews in interface INDArraypublic void getElements(double[] dest,
int offset)
INDArraygetElements in interface INDArraypublic void copyTo(double[] arr)
INDArraypublic INDArray broadcast(int... targetShape)
Copyright © 2013. All Rights Reserved.