public interface INDArray extends Cloneable
| Modifier and Type | Method and Description |
|---|---|
void |
add(INDArray a) |
void |
applyOp(IOp op)
Applies a unary operator to all elements of the array (in-place)
|
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
AVector |
asVector()
Creates a view of the array as a single vector in row-major order.
|
INDArray |
broadcast(int... dimensions) |
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.
|
int |
dimensionality() |
long |
elementCount() |
boolean |
equals(INDArray a)
Returns true if the two arrays are exactly equal in value and shape
|
INDArray |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get() |
double |
get(int... indexes) |
double |
get(int x) |
double |
get(int x,
int y) |
void |
getElements(double[] dest,
int offset)
Gets all elements of the array, copying them into a double array
|
long[] |
getLongShape()
Returns the shape of the array as an array of longs.
|
int[] |
getShape()
Returns the shape of the array as an array of ints.
|
List<?> |
getSlices() |
INDArray |
innerProduct(INDArray a) |
boolean |
isElementConstrained()
Returns true if the IND has additional constraints on element values
|
boolean |
isFullyMutable()
Returns true if the INDArray is fully mutable in all positions
i.e.
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
boolean |
isView()
Return true if this is a view
|
void |
multiply(double d) |
INDArray |
outerProduct(INDArray a) |
INDArray |
reshape(int... dimensions) |
void |
scale(double d) |
void |
set(double value) |
void |
set(INDArray a) |
void |
set(int[] indexes,
double value) |
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 |
setElements(double[] values,
int offset,
int length) |
INDArray |
slice(int majorSlice) |
int |
sliceCount() |
void |
sub(INDArray a) |
void |
validate()
Validates the internal data structure of the INDArray.
|
int dimensionality()
int[] getShape()
long[] getLongShape()
double get()
double get(int x)
double get(int x,
int y)
double get(int... indexes)
void set(double value)
void set(int x,
double value)
void set(int x,
int y,
double value)
void set(int[] indexes,
double value)
void set(INDArray a)
void set(Object o)
void add(INDArray a)
void sub(INDArray a)
AVector asVector()
INDArray reshape(int... dimensions)
INDArray broadcast(int... dimensions)
INDArray slice(int majorSlice)
int sliceCount()
long elementCount()
boolean isMutable()
boolean isFullyMutable()
boolean isElementConstrained()
boolean isView()
INDArray clone()
void applyOp(Op op)
op - void applyOp(IOp op)
op - boolean equals(INDArray a)
a - INDArray exactClone()
void setElements(double[] values)
void setElements(double[] values,
int offset,
int length)
void getElements(double[] dest,
int offset)
d - void scale(double d)
void multiply(double d)
List<?> getSlices()
void validate()
Copyright © 2013. All Rights Reserved.