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

Function _gridnd

numpy/polynomial/polyutils.py:520–533  ·  view source on GitHub ↗

Helper function used to implement the `` grid d`` functions. Parameters ---------- val_f : function(array_like, array_like, tensor: bool) -> array_like The `` val`` function, such as ``polyval`` c, args See the `` grid d`` functions for more d

(val_f, c, *args)

Source from the content-addressed store, hash-verified

518
519
520def _gridnd(val_f, c, *args):
521 """
522 Helper function used to implement the ``<type>grid<n>d`` functions.
523
524 Parameters
525 ----------
526 val_f : function(array_like, array_like, tensor: bool) -> array_like
527 The ``<type>val`` function, such as ``polyval``
528 c, args
529 See the ``<type>grid<n>d`` functions for more detail
530 """
531 for xi in args:
532 c = val_f(xi, c)
533 return c
534
535
536def _div(mul_f, c1, c2):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected