I have a large list of lists (1.8 million sublists) where the first three entries define the list entry, and the other entries depend on these three entries.
list={{x11,x21,x31,f1[x11,x21,x31],f2[x11,x21,x31],...},
{x12,x22,x32,f1[x12,x22,x32],f2[x12,x22,x32],...},
...}
I want to reorganize this list completely and split it up. I want separate, 3d lists for each function, such that f1list[[1,1,1]]=f1[x11,x21,x31]
and so on for every function. I already have a 1D list that contains all entries for the x values, i.e. x1list={x11,x12,x13,...}
What is the most efficient way to do this? Looping trough it three times with IF statements sounds super stupid. I have been toying around with approaches using Sort
and Cases
but couldn't make it work efficiently.