| Constructor and Description |
|---|
AbstractArray() |
| Modifier and Type | Method and Description |
|---|---|
void |
abs() |
void |
add(double a) |
void |
add(INDArray a) |
INDArray |
broadcast(int... targetShape) |
void |
clamp(double min,
double max) |
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 all the elements of this INDArray to the specified double array
|
double |
elementSquaredSum()
Returns the total sum of elements in this array.
|
double |
elementSum()
Returns the total sum of elements in this array.
|
boolean |
epsilonEquals(INDArray a) |
boolean |
epsilonEquals(INDArray a,
double epsilon) |
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.
|
INDArray |
getTranspose() |
INDArray |
getTransposeView()
Returns a transposed view of the array.
|
int |
hashCode() |
INDArray |
innerProduct(INDArray a)
Calculates the inner product of this array with another array.
|
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)
Calculates the outer product of this array with another array.
|
void |
pow(double exponent)
Raises all elements of the array to a specified power
|
void |
reciprocal() |
INDArray |
reshape(int... targetShape) |
void |
scale(double d)
Scales all elements of the array by a given double value
|
void |
scaleAdd(double factor,
double constant)
Scales all elements of the array by a given double value and adds a constant vale
|
void |
set(double value)
Sets all elements of an array to a specific 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()
Squares all elements of the array
|
void |
sub(double a) |
void |
sub(INDArray a) |
void |
toDoubleBuffer(DoubleBuffer dest)
Copies the elements of this INDArray to the specified double buffer
|
String |
toString() |
AVector |
toVector()
Converts the array into a flattened vector
|
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 boolean epsilonEquals(INDArray a)
epsilonEquals in interface INDArraypublic boolean epsilonEquals(INDArray a, double epsilon)
epsilonEquals in interface INDArraypublic INDArray innerProduct(INDArray a)
INDArrayinnerProduct in interface INDArraypublic INDArray outerProduct(INDArray a)
INDArrayouterProduct in interface INDArraypublic INDArray getTranspose()
getTranspose in interface INDArraypublic INDArray getTransposeView()
INDArraygetTransposeView in interface INDArraypublic final void scale(double d)
INDArraypublic void scaleAdd(double factor,
double constant)
INDArraypublic void set(double value)
INDArraypublic void setElements(double[] values)
INDArraysetElements in interface INDArraypublic void square()
INDArraypublic AbstractArray<?> clone()
INDArraypublic void pow(double exponent)
INDArraypublic void multiply(INDArray a)
INDArraypublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraypublic double elementSum()
INDArrayelementSum in interface INDArraypublic double elementSquaredSum()
INDArrayelementSquaredSum in interface INDArraypublic void reciprocal()
reciprocal in interface INDArraypublic abstract List<T> getSlices()
INDArraypublic List<INDArray> getSliceViews()
INDArraygetSliceViews in interface INDArraypublic AVector toVector()
INDArraypublic void getElements(double[] dest,
int offset)
INDArraygetElements in interface INDArraypublic void copyTo(double[] arr)
INDArraypublic void toDoubleBuffer(DoubleBuffer dest)
INDArraytoDoubleBuffer in interface INDArraypublic INDArray broadcast(int... targetShape)
Copyright © 2013. All Rights Reserved.