writing a script I found myself discovering a difference i cannot explained.
writing the above code the end results were not as expected. i then wrote the same operations nesting 2 for cycles (row and column subscripts)
this, strangely to me, gave me a different end result. I could not understand why.
are all matrices of same dimension and enter both cycles with same values, same goes for
I would appreciate if someone would be able to explain the difference in the two methods, that should have behaved identically in my mind.
tips on more efficient/elegant ways of achieving the above are also welcome