summaryrefslogtreecommitdiff
path: root/packages/hmatrix/src/Numeric/GSL/gsl-vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'packages/hmatrix/src/Numeric/GSL/gsl-vector.c')
-rw-r--r--packages/hmatrix/src/Numeric/GSL/gsl-vector.c41
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 }
293int 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
315int 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
337int zipCAux(int code, KGCVEC(a), KGCVEC(b), GCVEC(r)) { 296int zipCAux(int code, KGCVEC(a), KGCVEC(b), GCVEC(r)) {