My problem is this: I've an array with values from 0 to 8(a[9]=[0,1,2,....,8] and I would map the indexes of array to a matrix 3x3. This is useful for me to develop the "Broadcast Multiply Rolling" algorithm to make the product of two matrices. Thank to everyone
-
Why not write the matrix array right away if values are fixed?m0skit0– m0skit02013-12-07 18:19:40 +00:00Commented Dec 7, 2013 at 18:19
-
You should at least give it a try yourself before asking for help. What problems did you face, what errors you got?hrv– hrv2013-12-07 18:21:10 +00:00Commented Dec 7, 2013 at 18:21
-
I'm glad you found my answer useful. Now ask yourself how you would calculate the indexes for an n-dimensional array. It's not complex, it's a general concept, and it's something any C programmer should understand.Carey Gregory– Carey Gregory2013-12-08 00:00:35 +00:00Commented Dec 8, 2013 at 0:00
Add a comment
|