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_index2rowcol.pd | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 abs/mtx_index2rowcol.pd (limited to 'abs/mtx_index2rowcol.pd') diff --git a/abs/mtx_index2rowcol.pd b/abs/mtx_index2rowcol.pd new file mode 100644 index 0000000..0b685bc --- /dev/null +++ b/abs/mtx_index2rowcol.pd @@ -0,0 +1,28 @@ +#N canvas 304 424 484 300 10; +#X obj 141 13 inlet; +#X obj 141 212 outlet; +#X obj 141 122 t a a; +#X obj 141 167 mtx_int; +#X obj 208 211 outlet; +#X obj 141 190 mtx_+ 1; +#X obj 208 185 mtx_+ 1; +#X obj 141 100 mtx_- 1; +#X text 260 58 column and row indices; +#X obj 242 11 inlet; +#X text 285 10 columns; +#X text 255 40 calculates; +#X text 280 76 for a given index vector; +#X text 308 93 and given column size; +#X obj 208 146 mtx_mod \$1; +#X obj 141 146 mtx_./ \$1; +#X connect 0 0 7 0; +#X connect 2 0 15 0; +#X connect 2 1 14 0; +#X connect 3 0 5 0; +#X connect 5 0 1 0; +#X connect 6 0 4 0; +#X connect 7 0 2 0; +#X connect 9 0 15 1; +#X connect 9 0 14 1; +#X connect 14 0 6 0; +#X connect 15 0 3 0; -- cgit v1.2.1