From efbf4eb710603d23f3a455e5ac3a5cfd0f41f1fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 6 Jun 2006 09:55:22 +0000 Subject: removed unused variables svn path=/trunk/externals/iem/iemmatrix/; revision=5173 --- src/mtx_bspline.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/mtx_bspline.c') diff --git a/src/mtx_bspline.c b/src/mtx_bspline.c index c6d45be..9fec0a9 100644 --- a/src/mtx_bspline.c +++ b/src/mtx_bspline.c @@ -16,10 +16,14 @@ /* mtx_bspline: this is only in the iemmatrix library since i have to make sure that there is an x-value - for each y-value; this however enforces that for each point we have to define a point in all dimensions; + for each y-value; this however enforces that for each point we have to define a point + in all dimensions; + + think: should we split this into 2 objects? + - one for calculating the coefficients of the polynomial function for the bspline + - another for calculating the value of a piecewise polyfuns */ -/* mtx_bspline */ static t_class *mtx_bspline_class; typedef struct _mtx_spline @@ -80,11 +84,10 @@ static void mtx_bspline_matrix2(t_mtx_spline *X, t_symbol *s, int argc, t_atom * { int row=0; int col=0; - t_atom *m = argv+2; t_matrixfloat *x, **y, **u, **p, *w, *d, *fp; t_matrixfloat*dummy; - int i,j,n; + int i,j; int N; if (argc<2){ error("mtx_bspline: crippled matrix"); return; } @@ -151,18 +154,14 @@ static void mtx_bspline_matrix2(t_mtx_spline *X, t_symbol *s, int argc, t_atom * for(i=N-1; i>0; i--) p[j][i] = (w[i]-u[j][i]*p[j][i+1])/d[i]; } - } - - static void mtx_bspline_list(t_mtx_spline *x, t_symbol *s, int argc, t_atom *argv) { // this should output a matrix, one row for each element of this list } static void mtx_bspline_float(t_mtx_spline *X, t_float f) { - t_matrixfloat t, t3, t3i; int i=0, j=0; int dim=X->x_dimension; t_matrixfloat *x=X->x_x, **y=X->x_y, **u=X->x_u, **p=X->x_p; -- cgit v1.2.1