I found out that,it is INCREDIBLY(like 100 times) faster to use
Dot instead of
Sum,to perform long sums. But I have not been able to use this alternative to perform the following sum:
I want to get this output:
but did not work.
The easy way to do it is:
But I want to avoid this slow way. Any faster alternative?