t, c, k = tck
// fitpack interpolates along the last axis
sh = 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 behavior
try:
extrapolate = {0: True, }[ext]
except KeyError:
raise ValueError("Extrapolation mode %s is not supported "
"by BSpline." % ext)