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

Method __call__

numpy/f2py/symbolic.py:566–573  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

564 return NotImplemented
565
566 def __call__(self, *args, **kwargs):
567 # In Fortran, parenthesis () are use for both function call as
568 # well as indexing operations.
569 #
570 # TODO: implement a method for deciding when __call__ should
571 # return an INDEXING expression.
572 return as_apply(self, *map(as_expr, args),
573 **dict((k, as_expr(v)) for k, v in kwargs.items()))
574
575 def __getitem__(self, index):
576 # Provided to support C indexing operations that .pyf files

Callers

nothing calls this directly

Calls 2

as_applyFunction · 0.85
as_exprFunction · 0.85

Tested by

no test coverage detected