blob: d4288e28d8d343c39bc9112b9d089513821adb59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#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;
|