blob: f11f9d825848817b19dde697263ad036202ae0b9 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#N canvas 310 0 507 682 10;
#X obj 1 1 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 5 419 cnv 15 500 17 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 3 328 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 3 351 cnv 15 60 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 204 421 Outlets (1);
#X obj 4 503 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 5 440 cnv 15 60 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 6 464 GRID;
#X text 393 2 GridFlow 0.8.4;
#X text 8 352 Inlet 0;
#X obj 4 532 cnv 15 80 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 8 533 Argument 0;
#X obj 27 219 cnv 15 52 17 empty empty empty 20 12 0 14 -241291 -66577
0;
#X text 9 441 Outlet 0;
#X obj 11 2 #fold +;
#X obj 98 184 display;
#X obj 29 252 display;
#X text 26 38 Treats the grid as a grid of one- dimensional grids such
that the same operation (here addition) will be performed on all its
elements together with the base value. the results are combined back.
each #fold operation removes a dimension. syntax: #fold <two-input
operation> <starting value>;
#X text 205 330 Inlets (1);
#X obj 143 249 #export;
#X obj 143 274 print values;
#X text 4 378 GRID;
#X text 6 651 some other forms:;
#X obj 140 652 #fold *;
#X text 200 504 Arguments ();
#X obj 17 625 #fold + \, seed 0;
#X obj 4 583 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 200 584 Attribute ();
#X obj 211 652 #fold ^;
#X obj 284 652 #fold &;
#X obj 355 652 #fold |;
#N canvas 0 0 450 300 more 0;
#X obj 29 137 cnv 15 148 17 empty empty empty 20 12 0 14 -241291 -66577
0;
#X obj 98 82 display;
#X obj 28 48 #import (2 2 2);
#X obj 29 170 display;
#X msg 28 27 1 3 1 3 1 3 1 5;
#X text 154 24 <-- clicking here creates a grid through [#import];
#X obj 122 170 #export;
#X obj 122 195 print values;
#X obj 28 137 #fold + \, seed ( 0 0 );
#X connect 2 0 1 0;
#X connect 2 0 8 0;
#X connect 4 0 2 0;
#X connect 6 0 7 0;
#X connect 8 0 3 0;
#X connect 8 0 6 0;
#X restore 160 624 pd more info;
#X text 71 464 Outputs a grid of one less dimension.;
#X text 69 377 Accepts a grid of a minimum of one dimension.;
#X msg 28 129 1 3 1 3 1 3 1 3 1 3 1 5;
#X obj 28 153 #import (2 3 2);
#X obj 28 219 #fold +;
#X text 203 129 <-- clicking here creates a grid through [#import]
;
#X text 6 556 Numeric Operator;
#X text 131 555 guiding the application of the fold.;
#X connect 19 0 20 0;
#X connect 34 0 35 0;
#X connect 35 0 15 0;
#X connect 35 0 36 0;
#X connect 36 0 16 0;
#X connect 36 0 19 0;
|