Indexing RoutinesΒΆ

cupy.c_
cupy.r_
cupy.nonzero Return the indices of the elements that are non-zero.
cupy.where Return elements, either from x or y, depending on condition.
cupy.ix_ Construct an open mesh from multiple sequences.
cupy.take Takes elements of an array at specified indices along an axis.
cupy.choose
cupy.diag Returns a diagonal or a diagonal array.
cupy.diagonal Returns specified diagonals.
cupy.fill_diagonal Fills the main diagonal of the given array of any dimensionality.