So I would like to be able to do operations on vectors, while leaving the dimension $N$ of the vector space unspecified.
As a simple example, I would like to be able to define the unit vector $e_i = (0,\dots 1,\dots,0)$ which has as its only non-vanishing entry a $1$ in the $i$th slot. Then I would like to be able to let Mathematica compute the inner product $e_i\cdot e_j$; the output of Mathematica should be something like $\delta_{ij}$ (which equals $1$ if $i=j$ and $0$ if $i\neq j$).
When the dimension $N$ is defined as an explicit number, one can of course just define the explicit vectors $e_i$ and $e_j$ and compute the inner product, which will again be an explicit vector. But I would like to do the calculation for general $N$.
Is there a way in Mathematica to achieve this?
TagSetDelayed. It would be easier to help if you gave a more complete example. – Jens Aug 15 '18 at 18:24