T - public final 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()
Returns the dimensionality of the array (number of dimensions in the array shape)
e.g.
|
long |
elementCount()
Returns the total number of elements in this array.
|
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)
Returns the double value at the specified index position in an 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.
|
int |
getShape(int dim)
Returns the dimension size for a specific dimension in the array's shape
|
List<T> |
getSlices()
Returns a list of all major slices of this array.
|
INDArray |
innerProduct(INDArray a)
Calculates the inner product of this array with another array.
|
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)
Multiplies all elements of the array by a given double value
|
INDArray |
outerProduct(INDArray a)
Calculates the outer product of this array with another array.
|
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)
Sets all elements in an array using the given double values
|
INDArray |
slice(int majorSlice) |
INDArray |
slice(int dimension,
int index) |
int |
sliceCount() |
void |
validate()
Validates the internal data structure of the INDArray.
|
add, add, broadcast, copyTo, elementSquaredSum, elementSum, equals, get, get, get, getElements, getSliceViews, hashCode, iterator, multiply, negate, nonZeroCount, scale, scaleAdd, set, set, set, set, set, setElements, square, sub, sub, toDoubleBuffer, toString, toVectorpublic 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()
INDArraypublic int[] getShape()
INDArraypublic int getShape(int dim)
INDArraypublic long[] getLongShape()
INDArraypublic double get(int... indexes)
INDArraypublic void set(int[] indexes,
double value)
public AVector asVector()
INDArraypublic INDArray reshape(int... dimensions)
public INDArray slice(int majorSlice)
public INDArray slice(int dimension, int index)
public long elementCount()
INDArraypublic INDArray innerProduct(INDArray a)
INDArrayinnerProduct in interface INDArrayinnerProduct in class AbstractArray<T extends INDArray>public INDArray outerProduct(INDArray a)
INDArrayouterProduct 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)
INDArraypublic boolean equals(INDArray a)
INDArraypublic SliceArray<T> clone()
INDArraypublic SliceArray<T> exactClone()
INDArraypublic int sliceCount()
public List<T> getSlices()
INDArraypublic void setElements(double[] values,
int offset,
int length)
INDArraypublic void validate()
INDArrayCopyright © 2013. All Rights Reserved.