Timeline for How to sum up subelements of a list of unknown length
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 7, 2012 at 8:46 | vote | accept | PeriodicProgrammer | ||
Feb 16, 2012 at 13:36 | comment | added | Leonid Shifrin | @Mr.Wizard Looks like that :) | |
Feb 16, 2012 at 5:10 | comment | added | Mr.Wizard | Leonid, are you ill? :o) | |
Feb 15, 2012 at 23:35 | comment | added | Leonid Shifrin | @J.M. Good points. For once, I did not try to be complete :) | |
Feb 15, 2012 at 23:29 | comment | added | J. M.'s missing motivation♦ |
For completeness: if one treats the list of lists as a matrix, Total[c] and Total[c, {1}] sums columns, Total[c, {2}] sums rows, and Total[c, 2] sums all elements.
|
|
Feb 15, 2012 at 19:34 | history | answered | Leonid Shifrin | CC BY-SA 3.0 |