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

Function flatten_sequence

numpy/ma/core.py:2587–2596  ·  view source on GitHub ↗

Flattens a compound of nested iterables.

(iterable)

Source from the content-addressed store, hash-verified

2585 """
2586
2587 def flatten_sequence(iterable):
2588 """
2589 Flattens a compound of nested iterables.
2590
2591 """
2592 for elm in iter(iterable):
2593 if hasattr(elm, "__iter__") and not isinstance(elm, (str, bytes)):
2594 yield from flatten_sequence(elm)
2595 else:
2596 yield elm
2597
2598 a = np.asanyarray(a)
2599 inishape = a.shape

Callers 1

flatten_structured_arrayFunction · 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…