Is it performance critial to have `inner1d` instead of `np.inner1d`?
If it is, you might consider make `from numpy import inner1d as np_inner1d` to make clear the provenance.