I was reading Tensors by Feynman, where he said:
[...]$$u_P=\tfrac{1}{2}\sum_i\sum_j\alpha_{ij}E_iE_j\;.\tag{31.7}$$
The energy density $u_P$ is a number independent of the choice of axes, so it is a scalar. A tensor has then the property that when it is summed over one index (with a vector), it gives a new vector; and when it is summed over both indexes (with two vectors), it gives a scalar.
Got the point what Feynman wanted to say.
Then he discussed about the tensor of inertia and wrote the kinetic energy as:
$$\text{KE}=\tfrac{1}{2}\sum_{ij}I_{ij}\omega_i\omega_j.\tag{31.17}$$
Now, we know $\text{KE}$ is scalar; so it must be 'summed over both indexes (with two vectors)' as said by Feynman.
However, the notation of summation is not the same he used in $(31.7)$ as in $(31.17);$ in the former, the notation is $\sum_i\sum_j$ while in the later the notation is $\sum_{ij}\;.$ Since both are scalar and the summation is computed over two vectors in both the equations, can I infer from Feynman's statement 'when it is summed over both indexes (with two vectors), it gives a scalar' that $\sum_{ij}$ and $\sum_i\sum_j$ are necessarily the same?