diff options
author | Alberto Ruiz <aruiz@um.es> | 2014-05-14 21:24:36 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2014-05-14 21:24:36 +0200 |
commit | 6c320f731fa7a8153fe602b21fbe0fd60969cdf1 (patch) | |
tree | 2fa457c538bc55c53a7d2fc427ef18013c6d293e /packages/hmatrix/src/Numeric/GSL/gsl-vector.c | |
parent | 4b0a700c6a39d34bb85c4a1609ab0e6893b1fc5d (diff) |
moved zip real
Diffstat (limited to 'packages/hmatrix/src/Numeric/GSL/gsl-vector.c')
-rw-r--r-- | packages/hmatrix/src/Numeric/GSL/gsl-vector.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/packages/hmatrix/src/Numeric/GSL/gsl-vector.c b/packages/hmatrix/src/Numeric/GSL/gsl-vector.c index 99891d4..f00424a 100644 --- a/packages/hmatrix/src/Numeric/GSL/gsl-vector.c +++ b/packages/hmatrix/src/Numeric/GSL/gsl-vector.c | |||
@@ -290,48 +290,7 @@ int mapValQ(int code, gsl_complex_float* val, KQVEC(x), QVEC(r)) { | |||
290 | 290 | ||
291 | #define OPZE(C,msg,E) case C: {DEBUGMSG(msg) for(k=0;k<an;k++) rp[k] = E(ap[k],bp[k]); OK } | 291 | #define OPZE(C,msg,E) case C: {DEBUGMSG(msg) for(k=0;k<an;k++) rp[k] = E(ap[k],bp[k]); OK } |
292 | #define OPZV(C,msg,E) case C: {DEBUGMSG(msg) res = E(V(r),V(b)); CHECK(res,res); OK } | 292 | #define OPZV(C,msg,E) case C: {DEBUGMSG(msg) res = E(V(r),V(b)); CHECK(res,res); OK } |
293 | int zipR(int code, KRVEC(a), KRVEC(b), RVEC(r)) { | ||
294 | REQUIRES(an == bn && an == rn, BAD_SIZE); | ||
295 | int k; | ||
296 | switch(code) { | ||
297 | OPZE(4,"zipR Pow",pow) | ||
298 | OPZE(5,"zipR ATan2",atan2) | ||
299 | } | ||
300 | KDVVIEW(a); | ||
301 | KDVVIEW(b); | ||
302 | DVVIEW(r); | ||
303 | gsl_vector_memcpy(V(r),V(a)); | ||
304 | int res; | ||
305 | switch(code) { | ||
306 | OPZV(0,"zipR Add",gsl_vector_add) | ||
307 | OPZV(1,"zipR Sub",gsl_vector_sub) | ||
308 | OPZV(2,"zipR Mul",gsl_vector_mul) | ||
309 | OPZV(3,"zipR Div",gsl_vector_div) | ||
310 | default: ERROR(BAD_CODE); | ||
311 | } | ||
312 | } | ||
313 | |||
314 | 293 | ||
315 | int zipF(int code, KFVEC(a), KFVEC(b), FVEC(r)) { | ||
316 | REQUIRES(an == bn && an == rn, BAD_SIZE); | ||
317 | int k; | ||
318 | switch(code) { | ||
319 | OPZE(4,"zipF Pow",pow) | ||
320 | OPZE(5,"zipF ATan2",atan2) | ||
321 | } | ||
322 | KFVVIEW(a); | ||
323 | KFVVIEW(b); | ||
324 | FVVIEW(r); | ||
325 | gsl_vector_float_memcpy(V(r),V(a)); | ||
326 | int res; | ||
327 | switch(code) { | ||
328 | OPZV(0,"zipF Add",gsl_vector_float_add) | ||
329 | OPZV(1,"zipF Sub",gsl_vector_float_sub) | ||
330 | OPZV(2,"zipF Mul",gsl_vector_float_mul) | ||
331 | OPZV(3,"zipF Div",gsl_vector_float_div) | ||
332 | default: ERROR(BAD_CODE); | ||
333 | } | ||
334 | } | ||
335 | 294 | ||
336 | 295 | ||
337 | int zipCAux(int code, KGCVEC(a), KGCVEC(b), GCVEC(r)) { | 296 | int zipCAux(int code, KGCVEC(a), KGCVEC(b), GCVEC(r)) { |