Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Searching Functions

Array API specification for functions for searching arrays.

A conforming implementation of the array API standard must provide and support the following functions.

Objects in API

argmax(x, /, *, axis=None, keepdims=False)

Returns the indices of the maximum values along a specified axis.

argmin(x, /, *, axis=None, keepdims=False)

Returns the indices of the minimum values along a specified axis.

count_nonzero(x, /, *, axis=None, keepdims=False)

Counts the number of array elements which are non-zero.

nonzero(x, /)

Returns the indices of the array elements which are non-zero.

searchsorted(x1, x2, /, *, side='left', sorter=None)

Finds the indices intox1 such that, if the corresponding elements inx2 were inserted before the indices, the order ofx1, when sorted in ascending order, would be preserved.

where(condition, x1, x2, /)

Returns elements chosen fromx1 orx2 depending oncondition.


[8]ページ先頭

©2009-2025 Movatter.jp