inner product

Computes


where $a$ is the given axis, and and are the ranks of $x$ an $y$ respectively.