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

Function flatten_inplace

numpy/ma/extras.py:360–367  ·  view source on GitHub ↗

Flatten a sequence in place.

(seq)

Source from the content-addressed store, hash-verified

358#----
359#####--------------------------------------------------------------------------
360def flatten_inplace(seq):
361 """Flatten a sequence in place."""
362 k = 0
363 while (k != len(seq)):
364 while hasattr(seq[k], '__iter__'):
365 seq[k:(k + 1)] = seq[k]
366 k += 1
367 return seq
368
369
370def 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