Skip to main content
2 votes

how can I vectorize this double summation in Matlab?

The expression you are using is called a bilinear form : see coordinates expression here. A first answer, exploiting the easy treatment of matrices in Matlab, is as follows. Let $i_k=j_k-1$ and $x_j=...
Jean Marie's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible