| 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)
Adds a double value to all elements in this array
|
void |
add(INDArray a)
Adds all the elements of another array to this array, in an elementwise order.
|
double[] |
asDoubleArray()
Returns the underlying double array representing the packed elements of this array
Returns nil if there is no such underlying array
|
List<Double> |
asElementList()
Returns a list containing all elements of this array
|
INDArray |
broadcast(int... targetShape)
Returns a view of this array broadcasted up to a larger shape
|
INDArray |
broadcastCloneLike(INDArray target)
Creates a clone of the array, broadcasted if necessary to match the shape of the target
|
INDArray |
broadcastLike(INDArray target)
Broadcasts to match the shape of the target
|
void |
clamp(double min,
double max)
Clamps all the elments of this array within the specified [min,max] range
|
INDArray |
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
|
void |
divide(double factor)
Divides all elements by a given factor
|
void |
divide(INDArray a)
Divides all elements by the equivalent elements in a second array
|
Iterator<Double> |
elementIterator()
Returns an iterator over all elements in this array.
|
double |
elementSquaredSum()
Returns the total sum of elements in this array.
|
double |
elementSum()
Returns the total sum of elements in this array.
|
INDArray |
ensureMutable()
Ensures the array is a fully mutable, efficient representation that is not
a view.
|
boolean |
epsilonEquals(INDArray a)
Tests is this array is approximately equal to another array.
|
boolean |
epsilonEquals(INDArray a,
double epsilon)
Tests is this array is approximately equal to another array, up to a given tolerance (epsilon)
The arrays must have the same shape
|
boolean |
equals(INDArray a)
Returns true if the two arrays are exactly equal in value and shape
|
boolean |
equals(Object o) |
void |
exp()
Computes the function e^x (in-place) for all array elements
|
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()
Returns the transpose of this array.
|
INDArray |
getTransposeCopy()
Returns a transposed copy of the array.
|
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.
|
boolean |
isBoolean()
Returns true if the array is boolean (contains only 0.0 or 1.0 values)
|
boolean |
isSameShape(INDArray a)
Returns true if this array is the same shape as another array
|
boolean |
isZero()
Returns true if the array is zero (all elements equal to zero)
|
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)
Returns a new array by rearranging the elements of this array into the desired shape
Truncates or zero-pads the elements as required to fill the new shape
|
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)
Sets this array to the element values contained in another array
|
void |
set(int x,
double value) |
void |
set(int x,
int y,
double value) |
void |
set(Object o)
Sets this array to the element values contained in the given object.
|
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)
Subtracts a double value from all elements in this array
|
void |
sub(INDArray a)
Subtracts all the elements of another array from this array, in an elementwise order.
|
Array |
toArray()
Converts the array into a packed mutable Array instance
|
double[] |
toDoubleArray()
Copies the elements of this INDArray to a new double array
|
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, 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)
INDArrayepsilonEquals in interface INDArraypublic boolean epsilonEquals(INDArray a, double epsilon)
INDArrayepsilonEquals in interface INDArraypublic boolean isBoolean()
INDArraypublic boolean isSameShape(INDArray a)
INDArrayisSameShape in interface INDArraypublic boolean isZero()
INDArraypublic INDArray ensureMutable()
INDArrayensureMutable 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()
INDArraygetTranspose in interface INDArraypublic INDArray getTransposeView()
INDArraygetTransposeView in interface INDArraypublic INDArray getTransposeCopy()
INDArraygetTransposeCopy in interface INDArraypublic final void scale(double d)
INDArraypublic void scaleAdd(double factor,
double constant)
INDArraypublic void set(double value)
INDArraypublic void set(INDArray a)
INDArraypublic void clamp(double min,
double max)
INDArraypublic void set(Object o)
INDArraypublic void setElements(double[] values)
INDArraysetElements in interface INDArraypublic void square()
INDArraypublic Iterator<Double> elementIterator()
INDArrayelementIterator in interface INDArraypublic INDArray clone()
INDArraypublic boolean equals(INDArray a)
INDArraypublic void add(INDArray a)
INDArraypublic void add(double a)
INDArraypublic void pow(double exponent)
INDArraypublic void sub(double a)
INDArraypublic void multiply(INDArray a)
INDArraypublic void divide(INDArray a)
INDArraypublic void divide(double factor)
INDArraypublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraypublic double elementSum()
INDArrayelementSum in interface INDArraypublic double elementSquaredSum()
INDArrayelementSquaredSum in interface INDArraypublic void sub(INDArray a)
INDArraypublic void negate()
INDArraypublic void reciprocal()
INDArrayreciprocal in interface INDArraypublic void abs()
INDArraypublic void sqrt()
INDArraypublic void log()
INDArraypublic void exp()
INDArraypublic void signum()
INDArraypublic INDArray reshape(int... targetShape)
INDArraypublic abstract List<T> getSlices()
INDArraypublic List<INDArray> getSliceViews()
INDArraygetSliceViews in interface INDArraypublic Vector toVector()
INDArraypublic Array toArray()
INDArraypublic List<Double> asElementList()
INDArrayasElementList 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 double[] toDoubleArray()
INDArraytoDoubleArray in interface INDArraypublic double[] asDoubleArray()
INDArrayasDoubleArray in interface INDArraypublic INDArray broadcast(int... targetShape)
INDArraypublic INDArray broadcastLike(INDArray target)
INDArraybroadcastLike in interface INDArraypublic INDArray broadcastCloneLike(INDArray target)
INDArraybroadcastCloneLike in interface INDArrayCopyright © 2013. All Rights Reserved.