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

Method __getitem__

numpy/lib/polynomial.py:1403–1409  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

1401
1402
1403 def __getitem__(self, val):
1404 ind = self.order - val
1405 if val > self.order:
1406 return self.coeffs.dtype.type(0)
1407 if val < 0:
1408 return self.coeffs.dtype.type(0)
1409 return self.coeffs[ind]
1410
1411 def __setitem__(self, key, val):
1412 ind = self.order - key

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected