aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-03-30 12:11:24 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-03-30 12:11:24 +0000
commit3b710c81286df25574fb3f1f08a33b4b9221a656 (patch)
tree72a8803e509967a5a7fbad8e68b5872e4269697d
parent19a2f95f0497cc9bd0e632de9e0415f273e6d18d (diff)
moved some general functions from mtx_binop to iemmatrix.h
svn path=/trunk/externals/iem/iemmatrix/; revision=2650
-rw-r--r--src/iemmatrix.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/iemmatrix.h b/src/iemmatrix.h
index aeaec85..fde08ea 100644
--- a/src/iemmatrix.h
+++ b/src/iemmatrix.h
@@ -65,6 +65,23 @@ typedef struct _matrix
t_canvas *x_canvas;
} t_matrix;
+typedef struct _mtx_binscalar
+{
+ t_object x_obj;
+
+ t_matrix m; // the output matrix
+ t_float f; // the second input
+} t_mtx_binscalar;
+
+typedef struct _mtx_binmtx
+{
+ t_object x_obj;
+
+ t_matrix m; // the output matrix
+ t_matrix m2; // the second input
+} t_mtx_binmtx;
+
+
void matrix_free(t_matrix*x);
/* utility function */
@@ -92,4 +109,13 @@ void matrix_row(t_matrix *x, t_symbol *s, int argc, t_atom *argv);
void matrix_col(t_matrix *x, t_symbol *s, int argc, t_atom *argv);
void matrix_element(t_matrix *x, t_symbol *s, int argc, t_atom *argv);
+
+void mtx_bin_matrix2(t_mtx_binmtx *x, t_symbol *s, int argc, t_atom *argv);
+void mtx_binmtx_bang(t_mtx_binmtx *x);
+void mtx_binmtx_free(t_mtx_binmtx *x);
+void mtx_binscalar_bang(t_mtx_binscalar *x);
+void mtx_binscalar_free(t_mtx_binscalar *x);
+
+
+
#endif