{ } Raw JSON

bundles / scipy 1.17.1 / scipy / _lib / array_api_extra / _lib / _at / at / __getitem__

function

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

source: /scipy/_lib/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__