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

Method __call__

numpy/ma/core.py:6870–6882  ·  view source on GitHub ↗
(self, a, *args, **params)

Source from the content-addressed store, hash-verified

6868 return doc
6869
6870 def __call__(self, a, *args, **params):
6871 if self.reversed:
6872 args = list(args)
6873 a, args[0] = args[0], a
6874
6875 marr = asanyarray(a)
6876 method_name = self.__name__
6877 method = getattr(type(marr), method_name, None)
6878 if method is None:
6879 # use the corresponding np function
6880 method = getattr(np, method_name)
6881
6882 return method(marr, *args, **params)
6883
6884
6885all = _frommethod('all')

Callers

nothing calls this directly

Calls 2

asanyarrayFunction · 0.85
methodFunction · 0.85

Tested by

no test coverage detected