#N canvas 27 49 670 511 10; #X text 458 17 updated for; #X obj 546 17 iemmatrix 0.2; #X obj 595 43 matrix; #X text 465 42 see also help for; #X obj 12 189 t a a; #X msg 12 124 bang; #X msg 265 390 mode row; #X msg 265 364 mode column; #X msg 352 363 mode col; #X msg 418 363 mode :; #X obj 263 416 t a; #X obj 12 166 mtx_ones 3 4; #X obj 17 379 t a a; #X msg 17 335 bang; #X obj 17 360 mtx_ones 2 2; #X text 90 15 [mtx_cumsum]; #X text 47 34 cumulative sum in row/col direction; #X obj 20 211 mtx_print original; #X obj 12 257 mtx_cumsum row; #X obj 12 285 mtx_print cumsum-row; #X obj 46 400 mtx_print original; #X obj 17 472 mtx_print cumsum; #X obj 117 257 mtx_cumsum col; #X obj 159 285 mtx_print cumsum-col; #X obj 410 466 mtx_diff; #X text 410 444 see also:; #X msg 298 336 direction -1; #X obj 17 443 mtx_cumsum row; #X obj 12 235 t a a a; #X obj 248 258 mtx_cumsum row -1; #X obj 310 285 mtx_print cumsum-col-reverse; #X text 18 63 you can calculate numerical integrals or ascending sequences of numbers with cumsum \; you can also do this into the reverse direction ; #X connect 4 0 28 0; #X connect 4 1 17 0; #X connect 5 0 11 0; #X connect 6 0 10 0; #X connect 7 0 10 0; #X connect 8 0 10 0; #X connect 9 0 10 0; #X connect 10 0 27 0; #X connect 11 0 4 0; #X connect 12 0 27 0; #X connect 12 1 20 0; #X connect 13 0 14 0; #X connect 14 0 12 0; #X connect 18 0 19 0; #X connect 22 0 23 0; #X connect 26 0 10 0; #X connect 27 0 21 0; #X connect 28 0 18 0; #X connect 28 1 22 0; #X connect 28 2 29 0; #X connect 29 0 30 0;