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) |
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
|
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) |
INDArray |
slice(int majorSlice) |
int |
sliceCount() |
void |
sub(INDArray a) |
int dimensionality()
int[] getShape()
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 scale(double d)
List<?> getSlices()
Copyright © 2013. All Rights Reserved.