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

Function _recursive_printoption

numpy/ma/core.py:2423–2438  ·  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

2421
2422
2423def _recursive_printoption(result, mask, printopt):
2424 """
2425 Puts printoptions in result where mask is True.
2426
2427 Private function allowing for recursion
2428
2429 """
2430 names = result.dtype.names
2431 if names is not None:
2432 for name in names:
2433 curdata = result[name]
2434 curmask = mask[name]
2435 _recursive_printoption(curdata, curmask, printopt)
2436 else:
2437 np.copyto(result, printopt, where=mask)
2438 return
2439
2440# For better or worse, these end in a newline
2441_legacy_print_templates = dict(

Callers 2

_insert_masked_printMethod · 0.85
__str__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected