I have an expression of the form:
expr1[i_,j_] = Sum[\[Beta][j]*\[Phi][i, j]* C[i]
I would like to evaluate this expression over i=1:4, j=1:4 with i!= j.
One way of doing this is to evaluate this expression over a list of tuples, say:
A = {{1, 2}, {1, 3}, {1, 4}, {2, 1}, {2, 3}, {2, 4}, {3, 1}, {3, 2}, {3, 4}, {4, 1}, {4, 2}, {4, 3}}.
I would like to use "Do" or something similar to "loop" over my list of tuples A. Is there a way to do this in Mathematica? I know I can do
expr1 @@@ A
but is there a way to do this using Do ?