{ } Raw JSON

bundles / scipy 1.18.0 / scipy / _external / array_api_extra / _lib / _at / at / __getitem__

function

scipy._external.array_api_extra._lib._at:at.__getitem__

source: /scipy/_external/array_api_extra/_lib/_at.py:212

Signature

def __getitem__(self, idx: SetIndex, /) → Self

Summary

Allow for the alternate syntax at(x)[start:stop:step].

Extended Summary

It looks prettier than at(x, slice(start, stop, step)) and feels more intuitive coming from the JAX documentation.

Aliases

  • scipy.differentiate.xpx.at.__getitem__