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

Function flatten_inplace

numpy/ma/extras.py:340–347  ·  view source on GitHub ↗

Flatten a sequence in place.

(seq)

Source from the content-addressed store, hash-verified

338#----
339#####--------------------------------------------------------------------------
340def flatten_inplace(seq):
341 """Flatten a sequence in place."""
342 k = 0
343 while (k != len(seq)):
344 while hasattr(seq[k], '__iter__'):
345 seq[k:(k + 1)] = seq[k]
346 k += 1
347 return seq
348
349
350def apply_along_axis(func1d, axis, arr, *args, **kwargs):

Callers 1

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