Timeline for Multidimensional array reduction through summation over one of its dimensions
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 30, 2012 at 9:09 | vote | accept | Pschoofs | ||
Jul 30, 2012 at 9:08 | comment | added | Pschoofs |
Total seems to be a good tool indeed. I've come up with a way of using it recursively. You don't need to relaculate anything in the process. You just apply the reduction beginning by the deepest dimensions and then it works fine.
|
|
Jul 27, 2012 at 19:03 | comment | added | Szabolcs |
@jVincent Yes, for that it's necessary to call Total two times.
|
|
Jul 27, 2012 at 18:27 | comment | added | jVincent | Reading this I though initially that you could actually get all the desired functionality out of just Total and complement, however you run into trouble with it if you want to remove for example dimension 1 and 4 in a 6 dimensional structure, and then you need to reorder the arguments, or call Total continually while recalculating the dimensions on each pass. | |
Jul 27, 2012 at 18:21 | history | answered | Szabolcs | CC BY-SA 3.0 |