I’m not saying I know this specific “field” (math>matrix) , but i’m pretty sure your questions lacks the basilar “baits” to attract replies and solutions.
See Help Us Help You .
If you have something on grasshopper, share that!
If you are loading your data from a .csv or a python script or else… internalize that and post it here!
Solve manually the first row, add some arrows and comments, explain what you have and what you want to obtain. Be specific!
It’s not a serious meter but I feel like in this forum (grasshopper category) you lose 80% of your chance to get replies if you do not post a picture. And similar is about posting a .gh file.
I think something near 1% of this category readers know what is a matrix and how to use it.
(I’m part of the 99%, never needed to know… but i’m here to learn!)
Personally, I guess some smart use of list / graft / tree managing can help you a lot, but I’m only guessing…