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_rowcol2index.pd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 abs/mtx_rowcol2index.pd (limited to 'abs/mtx_rowcol2index.pd') diff --git a/abs/mtx_rowcol2index.pd b/abs/mtx_rowcol2index.pd new file mode 100644 index 0000000..6eab201 --- /dev/null +++ b/abs/mtx_rowcol2index.pd @@ -0,0 +1,21 @@ +#N canvas 12 28 450 300 10; +#X obj 77 12 inlet; +#X obj 350 11 inlet; +#X text 293 10 columns; +#X text 118 13 row; +#X obj 146 13 inlet; +#X text 187 14 col; +#X obj 77 168 outlet; +#X obj 77 103 mtx_- 1; +#X obj 77 125 mtx_.* \$1; +#X obj 77 146 mtx_+; +#X text 270 98 calculates; +#X text 216 121 linear matrix indices; +#X text 223 145 from row and col indices; +#X text 232 169 and the column size; +#X connect 0 0 7 0; +#X connect 1 0 8 1; +#X connect 4 0 9 1; +#X connect 7 0 8 0; +#X connect 8 0 9 0; +#X connect 9 0 6 0; -- cgit v1.2.1