public class SliceArray<T extends INDArray> extends AbstractArray
| 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() |
static <T extends INDArray> |
create(List<T> slices) |
static <T extends INDArray> |
create(T... slices) |
int |
dimensionality() |
long |
elementCount() |
boolean |
equals(INDArray a) |
SliceArray<T> |
exactClone() |
double |
get(int... indexes) |
int[] |
getShape() |
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 |
reshape(int... dimensions) |
void |
set(int[] indexes,
double value) |
INDArray |
slice(int majorSlice) |
public static <T extends INDArray> SliceArray<T> create(T... slices)
public static <T extends INDArray> SliceArray<T> create(List<T> slices)
public int dimensionality()
public int[] getShape()
public 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 boolean isMutable()
INDArraypublic boolean isFullyMutable()
INDArraypublic boolean isElementConstrained()
INDArraypublic boolean isView()
INDArraypublic void applyOp(Op op)
INDArraypublic void applyOp(IOp op)
INDArraypublic boolean equals(INDArray a)
public SliceArray<T> clone()
clone in interface INDArrayclone in class AbstractArraypublic SliceArray<T> exactClone()
Copyright © 2013. All Rights Reserved.