Package | Description |
---|---|
org.nd4j.linalg.api.ndarray | |
org.nd4j.linalg.api.shape | |
org.nd4j.linalg.indexing |
Modifier and Type | Method and Description |
---|---|
INDArray |
BaseNDArray.get(INDArrayIndex... indexes) |
INDArray |
INDArray.get(INDArrayIndex... indexes)
Returns a subset of this array based on the specified indexes
|
INDArray |
BaseNDArray.put(INDArrayIndex[] indices,
INDArray element) |
INDArray |
INDArray.put(INDArrayIndex[] indices,
INDArray element)
Put the elements of the ndarray in to the specified indices
|
INDArray |
BaseNDArray.put(INDArrayIndex[] indices,
Number element) |
INDArray |
INDArray.put(INDArrayIndex[] indices,
Number element)
Put the elements of the ndarray in to the specified indices
|
Modifier and Type | Method and Description |
---|---|
static int[] |
Shape.newStrides(int[] strides,
int newLength,
INDArrayIndex[] indexes) |
Modifier and Type | Class and Description |
---|---|
class |
IntervalIndex
And indexing representing
an interval
|
class |
NDArrayIndex
NDArray indexing
|
class |
NDArrayIndexAll
Mainly meant for internal use:
represents all of the elements of a dimension
|
class |
NewAxis |
class |
PointIndex |
class |
SpecifiedIndex |
Modifier and Type | Method and Description |
---|---|
static INDArrayIndex[] |
Indices.adjustIndices(int[] originalShape,
INDArrayIndex... indexes)
Prunes indices of greater length than the shape
and fills in missing indices if there are any
|
static INDArrayIndex |
NDArrayIndex.all()
Represents collecting all elements
|
static INDArrayIndex[] |
NDArrayIndex.allFor(INDArray arr)
Generate an all index
equal to the rank of the given array
|
static INDArrayIndex[] |
NDArrayIndex.createCoveringShape(int[] shape)
Creates an index covering the given shape
(for each dimension 0,shape[i])
|
static INDArrayIndex[] |
NDArrayIndex.createCoveringShape(long[] shape) |
static INDArrayIndex[] |
Indices.createFromStartAndEnd(INDArray start,
INDArray end)
Create an n dimensional index
based on the given interval indices.
|
static INDArrayIndex[] |
Indices.createFromStartAndEnd(INDArray start,
INDArray end,
boolean inclusive)
Create indices representing intervals
along each dimension
|
static INDArrayIndex[] |
Indices.fillIn(int[] shape,
INDArrayIndex... indexes)
Fill in the missing indices to be the
same length as the original shape.
|
static INDArrayIndex[] |
NDArrayIndex.indexesFor(long... shape)
Add indexes for the given shape
|
static INDArrayIndex |
NDArrayIndex.indices(long... indices)
Returns an instance of
SpecifiedIndex . |
static INDArrayIndex |
NDArrayIndex.interval(int begin,
int end)
Generates an interval from begin (inclusive) to end (exclusive)
|
static INDArrayIndex |
NDArrayIndex.interval(int begin,
int stride,
int end,
boolean inclusive)
Generates an interval from begin (inclusive) to end (exclusive)
|
static INDArrayIndex |
NDArrayIndex.interval(long begin,
long end) |
static INDArrayIndex |
NDArrayIndex.interval(long begin,
long end,
boolean inclusive)
Generates an interval from begin (inclusive) to end (exclusive)
|
static INDArrayIndex |
NDArrayIndex.interval(long begin,
long stride,
long end)
Generates an interval from begin (inclusive) to end (exclusive)
|
static INDArrayIndex |
NDArrayIndex.interval(long begin,
long stride,
long end,
boolean inclusive) |
static INDArrayIndex |
NDArrayIndex.interval(long begin,
long stride,
long end,
long max)
Generates an interval from begin (inclusive) to end (exclusive)
|
static INDArrayIndex |
NDArrayIndex.interval(long begin,
long stride,
long end,
long max,
boolean inclusive) |
static INDArrayIndex |
NDArrayIndex.newAxis()
Represents adding a new dimension
|
static INDArrayIndex[] |
NDArrayIndex.nTimes(INDArrayIndex copy,
int n)
Repeat a copy of copy n times
|
static INDArrayIndex |
NDArrayIndex.point(long point)
Returns a point index
|
static INDArrayIndex[] |
NDArrayIndex.rangeOfLength(INDArrayIndex[] indexes)
Create a range based on the given indexes.
|
static INDArrayIndex[] |
NDArrayIndex.resolve(INDArray arr,
INDArrayIndex... intendedIndexes)
Given an all index and
the intended indexes, return an
index array containing a combination of all elements
for slicing and overriding particular indexes where necessary
|
static INDArrayIndex[] |
NDArrayIndex.resolve(INDArrayIndex[] allIndex,
INDArrayIndex... intendedIndexes)
Given an all index and
the intended indexes, return an
index array containing a combination of all elements
for slicing and overriding particular indexes where necessary
|
static INDArrayIndex[] |
NDArrayIndex.resolve(int[] shape,
INDArrayIndex... intendedIndexes)
Given an all index and
the intended indexes, return an
index array containing a combination of all elements
for slicing and overriding particular indexes where necessary
|
static INDArrayIndex[] |
NDArrayIndex.resolve(long[] shape,
INDArrayIndex... intendedIndexes) |
static INDArrayIndex[] |
NDArrayIndex.resolveLong(long[] shapeInfo,
INDArrayIndex... intendedIndexes)
Given an all index and
the intended indexes, return an
index array containing a combination of all elements
for slicing and overriding particular indexes where necessary
|
protected static INDArrayIndex |
NDArrayIndex.validate(long size,
INDArrayIndex index) |
Modifier and Type | Method and Description |
---|---|
static INDArrayIndex[] |
Indices.adjustIndices(int[] originalShape,
INDArrayIndex... indexes)
Prunes indices of greater length than the shape
and fills in missing indices if there are any
|
static INDArrayIndex[] |
Indices.fillIn(int[] shape,
INDArrayIndex... indexes)
Fill in the missing indices to be the
same length as the original shape.
|
static boolean |
Indices.isScalar(INDArray indexOver,
INDArrayIndex... indexes)
Check if the given indexes
over the specified array
are searching for a scalar
|
static net.ericaro.neoitertools.Generator<List<List<Long>>> |
SpecifiedIndex.iterate(INDArrayIndex... indexes)
Iterate over a cross product of the
coordinates
|
static net.ericaro.neoitertools.Generator<List<List<Long>>> |
SpecifiedIndex.iterateOverSparse(INDArrayIndex... indexes)
Iterate over a cross product of the
coordinates
|
static INDArrayIndex[] |
NDArrayIndex.nTimes(INDArrayIndex copy,
int n)
Repeat a copy of copy n times
|
static int |
NDArrayIndex.numNewAxis(INDArrayIndex... axes)
Given an array of indexes
return the number of new axis elements
in teh array
|
static int |
NDArrayIndex.numPoints(INDArrayIndex... indexes)
Number of point indexes
|
static long |
NDArrayIndex.offset(INDArray arr,
INDArrayIndex... indices)
Compute the offset given an array of offsets.
|
static long[] |
Indices.offsets(long[] shape,
INDArrayIndex... indices)
The offsets (begin index) for each index
|
static INDArrayIndex[] |
NDArrayIndex.rangeOfLength(INDArrayIndex[] indexes)
Create a range based on the given indexes.
|
static INDArrayIndex[] |
NDArrayIndex.resolve(INDArray arr,
INDArrayIndex... intendedIndexes)
Given an all index and
the intended indexes, return an
index array containing a combination of all elements
for slicing and overriding particular indexes where necessary
|
static INDArrayIndex[] |
NDArrayIndex.resolve(INDArrayIndex[] allIndex,
INDArrayIndex... intendedIndexes)
Given an all index and
the intended indexes, return an
index array containing a combination of all elements
for slicing and overriding particular indexes where necessary
|
static INDArrayIndex[] |
NDArrayIndex.resolve(INDArrayIndex[] allIndex,
INDArrayIndex... intendedIndexes)
Given an all index and
the intended indexes, return an
index array containing a combination of all elements
for slicing and overriding particular indexes where necessary
|
static INDArrayIndex[] |
NDArrayIndex.resolve(int[] shape,
INDArrayIndex... intendedIndexes)
Given an all index and
the intended indexes, return an
index array containing a combination of all elements
for slicing and overriding particular indexes where necessary
|
static INDArrayIndex[] |
NDArrayIndex.resolve(long[] shape,
INDArrayIndex... intendedIndexes) |
static INDArrayIndex[] |
NDArrayIndex.resolveLong(long[] shapeInfo,
INDArrayIndex... intendedIndexes)
Given an all index and
the intended indexes, return an
index array containing a combination of all elements
for slicing and overriding particular indexes where necessary
|
static int[] |
Indices.shape(INDArrayIndex... indices)
Calculate the shape for the given set of indices.
|
static int[] |
Indices.shape(int[] shape,
INDArrayIndex... indices)
Calculate the shape for the given set of indices and offsets.
|
static long[] |
Indices.shape(long[] shape,
INDArrayIndex... indices) |
static int[] |
Indices.stride(INDArray arr,
INDArrayIndex[] indexes,
int... shape)
Return the stride to be used for indexing
|
protected static INDArrayIndex |
NDArrayIndex.validate(long size,
INDArrayIndex index) |
Constructor and Description |
---|
IndexInfo(INDArrayIndex... indexes) |
SparseSpecifiedIndexesGenerator(INDArrayIndex[] indexes)
The indexes to generate from
|
SpecifiedIndexesGenerator(INDArrayIndex[] indexes)
The indexes to generate from
|
Copyright © 2021. All rights reserved.