MCPcopy Create free account
hub / github.com/numpy/numpy / __index__

Method __index__

numpy/array_api/_array_object.py:589–594  ·  view source on GitHub ↗

Performs the operation __index__.

(self: Array, /)

Source from the content-addressed store, hash-verified

587 return res
588
589 def __index__(self: Array, /) -> int:
590 """
591 Performs the operation __index__.
592 """
593 res = self._array.__index__()
594 return res
595
596 def __invert__(self: Array, /) -> Array:
597 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected