| Constructor and Description |
|---|
AbstractArray() |
| Modifier and Type | Method and Description |
|---|---|
void |
abs()
Replaces all elements of this array with their absolute values, according to Math.abs(double)
|
void |
add(double a) |
void |
add(INDArray a) |
List<Double> |
asElementList() |
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) |
void |
exp() |
void |
fill(double value)
Fills the array with asingle double value
|
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 |
log()
Computes the natural logarithm (in-place) for all array elements
|
void |
multiply(INDArray a)
Multiplies all elements by the equivalent elements in a second array
|
void |
negate()
Negates all elements in the array
|
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()
Replaces all elements in the array with their 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 |
signum()
Calculates the signum of all elements of the array
|
void |
sqrt()
Computes the square root of all elements in the array
|
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() |
Vector |
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 void fill(double value)
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 negate()
INDArraypublic void reciprocal()
INDArrayreciprocal in interface INDArraypublic void abs()
INDArraypublic void sqrt()
INDArraypublic void log()
INDArraypublic void signum()
INDArraypublic abstract List<T> getSlices()
INDArraypublic List<INDArray> getSliceViews()
INDArraygetSliceViews in interface INDArraypublic Vector toVector()
INDArraypublic List<Double> asElementList()
asElementList in interface 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.