diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-06-06 09:55:22 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-06-06 09:55:22 +0000 |
commit | efbf4eb710603d23f3a455e5ac3a5cfd0f41f1fd (patch) | |
tree | 093c566368f2c72aef4f7d0ca27c9cae9ee130e5 /src/mtx_bspline.c | |
parent | 3ac990d838556b00b50cdd61a4805ed9c212fa64 (diff) |
removed unused variables
svn path=/trunk/externals/iem/iemmatrix/; revision=5173
Diffstat (limited to 'src/mtx_bspline.c')
-rw-r--r-- | src/mtx_bspline.c | 15 |
1 files changed, 7 insertions, 8 deletions
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; |