From d2eec74a4d8c21aad495ba61539486b24d7ab8dc Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Wed, 9 Oct 2002 10:19:04 +0000 Subject: moved from zexy/zexy to zexy svn path=/trunk/externals/zexy/; revision=169 --- examples/mtx_trace.pd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/mtx_trace.pd (limited to 'examples/mtx_trace.pd') 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; -- cgit v1.2.1