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

Function _recursive_printoption

numpy/ma/core.py:2493–2507  ·  view source on GitHub ↗

Puts printoptions in result where mask is True. Private function allowing for recursion

(result, mask, printopt)

Source from the content-addressed store, hash-verified

2491
2492
2493def _recursive_printoption(result, mask, printopt):
2494 """
2495 Puts printoptions in result where mask is True.
2496
2497 Private function allowing for recursion
2498
2499 """
2500 names = result.dtype.names
2501 if names is not None:
2502 for name in names:
2503 curdata = result[name]
2504 curmask = mask[name]
2505 _recursive_printoption(curdata, curmask, printopt)
2506 else:
2507 np.copyto(result, printopt, where=mask)
2508
2509
2510# For better or worse, these end in a newline

Callers 2

_insert_masked_printMethod · 0.85
__str__Method · 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…