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)
| 518 | |
| 519 | |
| 520 | def _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 | |
| 536 | def _div(mul_f, c1, c2): |
nothing calls this directly
no outgoing calls
no test coverage detected