aboutsummaryrefslogtreecommitdiff
path: root/abs/mtx_index2rowcol.pd
diff options
context:
space:
mode:
authorFranz Zotter <fzotter@users.sourceforge.net>2006-08-09 16:21:16 +0000
committerFranz Zotter <fzotter@users.sourceforge.net>2006-08-09 16:21:16 +0000
commit5906c99acec28f3892e0571f6e731653fd6aab34 (patch)
treeb0930991a180379d0ea3dc52fecb633eb523d516 /abs/mtx_index2rowcol.pd
parentf08fb52aac042d9a01126a726d556bedb595bee1 (diff)
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
Diffstat (limited to 'abs/mtx_index2rowcol.pd')
-rw-r--r--abs/mtx_index2rowcol.pd28
1 files changed, 28 insertions, 0 deletions
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;