diff options
Diffstat (limited to 'examples/mtx_trace.pd')
-rw-r--r-- | examples/mtx_trace.pd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/mtx_trace.pd b/examples/mtx_trace.pd new file mode 100644 index 0000000..7925d5b --- /dev/null +++ b/examples/mtx_trace.pd @@ -0,0 +1,23 @@ +#N canvas 137 140 916 465 10; +#X obj 79 361 mtx_diag; +#X obj 79 389 print; +#X obj 79 308 mtx_ones 7; +#X msg 79 288 bang; +#X obj 84 106 mtx_ones 7; +#X msg 84 83 bang; +#X obj 84 147 mtx_trace; +#X floatatom 84 189 4 0 0; +#X text 86 68 get trace of a matrix; +#X text 79 271 get diagonal of a matrix; +#X text 81 204 trace = sum(diagonal elements); +#X text 243 28 get information of the diagonale of a matrix; +#X text 440 176 see also help for; +#X obj 555 177 matrix; +#X text 425 265 to create diagonale matrices \, see; +#X obj 629 265 mtx_eye; +#X connect 0 0 1 0; +#X connect 2 0 0 0; +#X connect 3 0 2 0; +#X connect 4 0 6 0; +#X connect 5 0 4 0; +#X connect 6 0 7 0; |