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_find_rowcol.pd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 abs/mtx_find_rowcol.pd (limited to 'abs/mtx_find_rowcol.pd') diff --git a/abs/mtx_find_rowcol.pd b/abs/mtx_find_rowcol.pd new file mode 100644 index 0000000..7c96e1e --- /dev/null +++ b/abs/mtx_find_rowcol.pd @@ -0,0 +1,19 @@ +#N canvas 0 0 450 300 10; +#X obj 141 13 inlet; +#X obj 141 212 outlet; +#X obj 141 35 t a a; +#X obj 171 56 mtx_size; +#X obj 141 76 mtx_find; +#X obj 248 212 outlet; +#X text 280 74 comment; +#X text 256 27 finds the non-zero; +#X text 260 58 column and row indices; +#X text 308 89 of a matrix; +#X obj 141 111 mtx_index2rowcol; +#X connect 0 0 2 0; +#X connect 2 0 4 0; +#X connect 2 1 3 0; +#X connect 3 1 10 1; +#X connect 4 0 10 0; +#X connect 10 0 1 0; +#X connect 10 1 5 0; -- cgit v1.2.1