MCPcopy Index your code
hub / github.com/numpy/numpy / _recursive_filled

Function _recursive_filled

numpy/ma/core.py:2545–2556  ·  view source on GitHub ↗

Recursively fill `a` with `fill_value`.

(a, mask, fill_value)

Source from the content-addressed store, hash-verified

2543
2544
2545def _recursive_filled(a, mask, fill_value):
2546 """
2547 Recursively fill `a` with `fill_value`.
2548
2549 """
2550 names = a.dtype.names
2551 for name in names:
2552 current = a[name]
2553 if current.dtype.names is not None:
2554 _recursive_filled(current, mask[name], fill_value[name])
2555 else:
2556 np.copyto(current, fill_value[name], where=mask[name])
2557
2558
2559def flatten_structured_array(a):

Callers 1

filledMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…