Ok, so this didn’t appear when I searched it (figures), but did appear in the “Related Posts” section after I posted this topic. Turns out the answer was, in fact, pretty simple: How to sum every element but one - #3 by greg_plowman
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to sum every element but one | 7 | 594 | November 8, 2020 | |
| How to find the sum for indices satisfying certain conditions? | 3 | 388 | February 26, 2022 | |
| Sum an SVector skipping one element | 7 | 372 | November 30, 2023 | |
| Elegant way of exclusive indexing | 41 | 2687 | February 26, 2022 | |
| Check the sum of a certain array index | 19 | 1295 | June 20, 2023 |