From 5906c99acec28f3892e0571f6e731653fd6aab34 Mon Sep 17 00:00:00 2001 From: Franz Zotter Date: Wed, 9 Aug 2006 16:21:16 +0000 Subject: added some useful abstractions: ...rowcol... indexing vectors/matrices can be converted to row and column indexing vectors/matrices. mtx_find_rowcol ... finding nonzero row and column indices of a matrix mtx_mod.pd ... modulo operator using division and rounding. svn path=/trunk/externals/iem/iemmatrix/; revision=5539 --- abs/mtx_mod.pd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 abs/mtx_mod.pd (limited to 'abs/mtx_mod.pd') diff --git a/abs/mtx_mod.pd b/abs/mtx_mod.pd new file mode 100644 index 0000000..940eb8f --- /dev/null +++ b/abs/mtx_mod.pd @@ -0,0 +1,19 @@ +#N canvas 0 0 450 300 10; +#X obj 162 18 inlet; +#X obj 162 217 outlet; +#X obj 240 18 inlet; +#X obj 162 69 mtx_./ \$1; +#X obj 162 93 t a a; +#X obj 200 115 mtx_int; +#X obj 162 141 mtx_-; +#X obj 162 164 mtx_* \$1; +#X text 48 9 matrix modulo; +#X connect 0 0 3 0; +#X connect 2 0 3 1; +#X connect 2 0 7 1; +#X connect 3 0 4 0; +#X connect 4 0 6 0; +#X connect 4 1 5 0; +#X connect 5 0 6 1; +#X connect 6 0 7 0; +#X connect 7 0 1 0; -- cgit v1.2.1