t, c, k = tck
// fitpack interpolates along the last axissh = tuple(range(c.ndim))
c = c.transpose(sh[1:] + (0,)) // roll the first axis
res = _impl.splev(x, (t, c, k), der, ext)
return res
else:
After Change
// remap the out-of-bounds behaviortry:
extrapolate = {0: True, }[ext]
except KeyError:
raise ValueError("Extrapolation mode %s is not supported ""by BSpline." % ext)