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

Function _vander_nd_flat

numpy/polynomial/polyutils.py:450–457  ·  view source on GitHub ↗

Like `_vander_nd`, but flattens the last ``len(degrees)`` axes into a single axis Used to implement the public `` vander d`` functions.

(vander_fs, points, degrees)

Source from the content-addressed store, hash-verified

448
449
450def _vander_nd_flat(vander_fs, points, degrees):
451 """
452 Like `_vander_nd`, but flattens the last ``len(degrees)`` axes into a single axis
453
454 Used to implement the public ``<type>vander<n>d`` functions.
455 """
456 v = _vander_nd(vander_fs, points, degrees)
457 return v.reshape(v.shape[:-len(degrees)] + (-1,))
458
459
460def _fromroots(line_f, mul_f, roots):

Callers

nothing calls this directly

Calls 2

_vander_ndFunction · 0.85
reshapeMethod · 0.80

Tested by

no test coverage detected