Uses of Interface
org.nd4j.linalg.indexing.INDArrayIndex
-
Packages that use INDArrayIndex Package Description org.nd4j.linalg.api.ndarray org.nd4j.linalg.api.ops.impl.shape org.nd4j.linalg.api.shape org.nd4j.linalg.indexing -
-
Uses of INDArrayIndex in org.nd4j.linalg.api.ndarray
Methods in org.nd4j.linalg.api.ndarray with parameters of type INDArrayIndex Modifier and Type Method Description INDArrayBaseNDArray. get(INDArrayIndex... indexes)INDArrayINDArray. get(INDArrayIndex... indexes)Returns a subset of this array based on the specified indexesINDArrayBaseNDArray. put(INDArrayIndex[] indices, Number element)INDArrayBaseNDArray. put(INDArrayIndex[] indices, INDArray element)INDArrayINDArray. put(INDArrayIndex[] indices, Number element)Put the elements of the ndarray in to the specified indicesINDArrayINDArray. put(INDArrayIndex[] indices, INDArray element)Put the elements of the ndarray in to the specified indices -
Uses of INDArrayIndex in org.nd4j.linalg.api.ops.impl.shape
Methods in org.nd4j.linalg.api.ops.impl.shape that return INDArrayIndex Modifier and Type Method Description static INDArrayIndexCreateView. fromIndexArr(INDArray index)static INDArrayIndex[]CreateView. indices(INDArray... indexArrs) -
Uses of INDArrayIndex in org.nd4j.linalg.api.shape
Methods in org.nd4j.linalg.api.shape with parameters of type INDArrayIndex Modifier and Type Method Description static int[]Shape. newStrides(int[] strides, int newLength, INDArrayIndex[] indexes) -
Uses of INDArrayIndex in org.nd4j.linalg.indexing
Classes in org.nd4j.linalg.indexing that implement INDArrayIndex Modifier and Type Class Description classIntervalIndexAnd indexing representing an interval.classNDArrayIndexNDArray indexingclassNDArrayIndexAllMainly meant for internal use: represents all the elements of a dimensionclassNewAxisNew axis adds a new singular dimension to an array.classPointIndexA point index is used for pulling something like a specific row from an array.classSpecifiedIndexA SpecifiedIndex refers to a concrete set of points to be selectively pulled from a given dimension.Methods in org.nd4j.linalg.indexing that return INDArrayIndex Modifier and Type Method 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 anystatic INDArrayIndexNDArrayIndex. all()Represents collecting all elementsstatic INDArrayIndex[]NDArrayIndex. allFor(INDArray arr)Generate an all index equal to the rank of the given arraystatic 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 dimensionstatic INDArrayIndex[]NDArrayIndex. deepCopy(INDArrayIndex[] indices)Deep copy all elements of this array ofINDArrayIndexinvokingdup()on each entryINDArrayIndexINDArrayIndex. dup()Deep copy of thisINDArrayIndexINDArrayIndexIntervalIndex. dup()INDArrayIndexNDArrayIndexAll. dup()INDArrayIndexNewAxis. dup()INDArrayIndexPointIndex. dup()INDArrayIndexSpecifiedIndex. dup()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 shapestatic INDArrayIndexNDArrayIndex. indices(long... indices)Returns an instance ofSpecifiedIndex.static INDArrayIndexNDArrayIndex. interval(int begin, int end)Generates an interval from begin (inclusive) to end (exclusive)static INDArrayIndexNDArrayIndex. interval(int begin, int stride, int end, boolean inclusive)Generates an interval from begin (inclusive) to end (exclusive)static INDArrayIndexNDArrayIndex. interval(long begin, long end)static INDArrayIndexNDArrayIndex. interval(long begin, long end, boolean inclusive)Generates an interval from begin (inclusive) to end (exclusive)static INDArrayIndexNDArrayIndex. interval(long begin, long stride, long end)Generates an interval from begin (inclusive) to end (exclusive)static INDArrayIndexNDArrayIndex. interval(long begin, long stride, long end, boolean inclusive)static INDArrayIndexNDArrayIndex. interval(long begin, long stride, long end, long max)Generates an interval from begin (inclusive) to end (exclusive)static INDArrayIndexNDArrayIndex. interval(long begin, long stride, long end, long max, boolean inclusive)static INDArrayIndexNDArrayIndex. newAxis()Represents adding a new dimensionstatic INDArrayIndex[]NDArrayIndex. nTimes(INDArrayIndex copy, int n)Repeat a copy of copy n timesstatic INDArrayIndexNDArrayIndex. point(long point)Returns a point indexstatic INDArrayIndex[]NDArrayIndex. rangeOfLength(INDArrayIndex[] indexes)Create a range based on the given indexes.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 necessarystatic INDArrayIndex[]NDArrayIndex. resolve(long[] shape, INDArrayIndex... intendedIndexes)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 necessarystatic 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 necessarystatic 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 necessaryprotected static INDArrayIndexNDArrayIndex. validate(long size, INDArrayIndex index)Methods in org.nd4j.linalg.indexing with parameters of type INDArrayIndex Modifier and Type Method 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 anystatic INDArrayIndex[]NDArrayIndex. deepCopy(INDArrayIndex[] indices)Deep copy all elements of this array ofINDArrayIndexinvokingdup()on each entrystatic INDArrayIndex[]Indices. fillIn(int[] shape, INDArrayIndex... indexes)Fill in the missing indices to be the same length as the original shape.static booleanIndices. isScalar(INDArray indexOver, INDArrayIndex... indexes)Check if the given indexes over the specified array are searching for a scalarstatic net.ericaro.neoitertools.Generator<List<List<Long>>>SpecifiedIndex. iterate(INDArrayIndex... indexes)Iterate over a cross product of the coordinatesstatic net.ericaro.neoitertools.Generator<List<List<Long>>>SpecifiedIndex. iterateOverSparse(INDArrayIndex... indexes)Iterate over a cross product of the coordinatesstatic INDArrayIndex[]NDArrayIndex. nTimes(INDArrayIndex copy, int n)Repeat a copy of copy n timesstatic intNDArrayIndex. numNewAxis(INDArrayIndex... axes)Given an array of indexes return the number of new axis elements in teh arraystatic intNDArrayIndex. numPoints(INDArrayIndex... indexes)Number of point indexesstatic longNDArrayIndex. 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 indexstatic INDArrayIndex[]NDArrayIndex. rangeOfLength(INDArrayIndex[] indexes)Create a range based on the given indexes.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 necessarystatic INDArrayIndex[]NDArrayIndex. resolve(long[] shape, INDArrayIndex... intendedIndexes)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 necessarystatic 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 necessarystatic 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 necessarystatic 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. shape(INDArrayIndex... indices)Calculate the shape for the given set of indices.static int[]Indices. stride(INDArray arr, INDArrayIndex[] indexes, int... shape)Return the stride to be used for indexingprotected static INDArrayIndexNDArrayIndex. validate(long size, INDArrayIndex index)Constructors in org.nd4j.linalg.indexing with parameters of type INDArrayIndex Constructor Description IndexInfo(INDArrayIndex... indexes)SparseSpecifiedIndexesGenerator(INDArrayIndex[] indexes)The indexes to generate fromSpecifiedIndexesGenerator(INDArrayIndex[] indexes)The indexes to generate from
-