T - public class SliceArray<T extends INDArray> extends AbstractArray<T>
| Modifier and Type | Method and Description |
|---|---|
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.
|
SliceArray<T> |
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.
|
static <T extends INDArray> |
create(List<T> slices) |
static <T extends INDArray> |
create(T... slices) |
int |
dimensionality() |
long |
elementCount() |
boolean |
equals(INDArray a)
Returns true if the two arrays are exactly equal in value and shape
|
SliceArray<T> |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int... indexes) |
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<T> |
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) |
static <T extends INDArray> |
repeat(T s,
int n) |
INDArray |
reshape(int... dimensions) |
void |
set(int[] indexes,
double value) |
void |
setElements(double[] values,
int offset,
int length) |
INDArray |
slice(int majorSlice) |
int |
sliceCount() |
void |
validate()
Validates the internal data structure of the INDArray.
|
public static <T extends INDArray> SliceArray<T> create(T... slices)
public static <T extends INDArray> SliceArray<T> repeat(T s, int n)
public static <T extends INDArray> SliceArray<T> create(List<T> slices)
public int dimensionality()
public int[] getShape()
INDArraypublic long[] getLongShape()
INDArraypublic double get(int... indexes)
public void set(int[] indexes,
double value)
public AVector asVector()
INDArraypublic INDArray reshape(int... dimensions)
public INDArray slice(int majorSlice)
public long elementCount()
public INDArray innerProduct(INDArray a)
innerProduct in interface INDArrayinnerProduct in class AbstractArray<T extends INDArray>public INDArray outerProduct(INDArray a)
outerProduct in interface INDArrayouterProduct in class AbstractArray<T extends INDArray>public boolean isMutable()
INDArraypublic boolean isFullyMutable()
INDArraypublic boolean isElementConstrained()
INDArraypublic boolean isView()
INDArraypublic void applyOp(Op op)
INDArraypublic void applyOp(IOp op)
INDArraypublic void multiply(double d)
public boolean equals(INDArray a)
INDArraypublic SliceArray<T> clone()
INDArraypublic SliceArray<T> exactClone()
INDArraypublic int sliceCount()
public void setElements(double[] values,
int offset,
int length)
public void validate()
INDArrayCopyright © 2013. All Rights Reserved.