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()
Constructs a view of the array as a single vector in row-major order.
|
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.
|
void |
fill(double value)
Fills the array with asingle double value
|
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 |
isBoolean()
Returns true if the array is boolean (contains only 0.0 or 1.0 values)
|
boolean |
isElementConstrained()
Returns true if this array has some 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 array is a view type
|
boolean |
isZero()
Returns true if the array is zero (all elements equal to zero)
|
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)
Returns a new array by rearranging the elements of this array into the desired shape
Truncates or zero-pads the elements as required to fill the new shape
|
void |
set(double value)
Sets all elements of an array to a specific double value
|
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)
Returns the specified major slice of this array as a view (slice along dimension 0)
|
INDArray |
slice(int dimension,
int index)
Returns a slice view of this array along the specified dimension
|
int |
sliceCount()
returns the number of major slices in this array.
|
void |
validate()
Validates the internal data structure of the INDArray.
|
abs, add, add, asDoubleArray, asElementList, broadcast, broadcastCloneLike, broadcastLike, clamp, clone, copyTo, divide, divide, elementIterator, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, equals, exp, get, get, get, getElements, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, isSameShape, iterator, log, multiply, negate, nonZeroCount, pow, reciprocal, scale, scaleAdd, set, set, set, set, setElements, signum, sqrt, square, sub, sub, toArray, toDoubleArray, 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(double value)
INDArraypublic void fill(double value)
INDArraypublic void set(int[] indexes,
double value)
public AVector asVector()
INDArraypublic INDArray reshape(int... dimensions)
INDArraypublic INDArray slice(int majorSlice)
INDArraypublic INDArray slice(int dimension, int index)
INDArraypublic 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 isZero()
INDArraypublic boolean isBoolean()
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> exactClone()
INDArraypublic int sliceCount()
INDArraypublic List<T> getSlices()
INDArraypublic void setElements(double[] values,
int offset,
int length)
INDArraypublic void validate()
INDArrayCopyright © 2013. All Rights Reserved.