GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • 
  • Consortium for Python Data API Standards
  • API specification
  • Purpose and scope
  • Terms and Definitions
  • Use cases
  • Assumptions
  • Design topics & constraints
  • Future API standard evolution
  • Array object
  • Broadcasting
  • Constants
  • Creation Functions
  • Data Type Functions

This view

  • Original page
  • New address

GeezerVison is showing data-apis.org — Searching Functions — Python array API standard DRAFT documentation

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 into x1 such that, if the corresponding elements in x2 were inserted before the indices, the order of x1, when sorted in ascending order, would be preserved.

top_k(x, k, /, *, axis=-1, mode='largest')

Returns the values and indices of the k largest (or smallest) elements of an input array x along a specified dimension.

where(condition, x1, x2, /)

Returns elements chosen from x1 or x2 depending on condition.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.