Comments

thanks one last question we can separate the order of summation if i and j are both independent of each other?

sorry for silly question but i didn't understand the optimization can you please elaborate more or provide particular resource to learn this types of mathematics?