summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/aux.h
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-06-04 08:34:45 +0000
committerAlberto Ruiz <aruiz@um.es>2007-06-04 08:34:45 +0000
commit0a9817cc481fb09f1962eb2c272125e56a123814 (patch)
treee444abd9f1918e9a25e2b99f6c8498d0f03fcdf3 /lib/Data/Packed/aux.h
parent80673221e704b451e0d9468d6dfe1a38ad676c07 (diff)
fortran/C
Diffstat (limited to 'lib/Data/Packed/aux.h')
-rw-r--r--lib/Data/Packed/aux.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/lib/Data/Packed/aux.h b/lib/Data/Packed/aux.h
index c51234a..f45b55a 100644
--- a/lib/Data/Packed/aux.h
+++ b/lib/Data/Packed/aux.h
@@ -1,6 +1,21 @@
1#define VEC(A) int A##n, double*A##p 1#include <gsl/gsl_complex.h>
2#define MAT(A) int A##r, int A##c, double* A##p
3#define KVEC(A) int A##n, const double*A##p
4#define KMAT(A) int A##r, int A##c, const double* A##p
5 2
6int trans(int size, KMAT(x),MAT(t)); 3#define RVEC(A) int A##n, double*A##p
4#define RMAT(A) int A##r, int A##c, double* A##p
5#define KRVEC(A) int A##n, const double*A##p
6#define KRMAT(A) int A##r, int A##c, const double* A##p
7
8#define CVEC(A) int A##n, gsl_complex*A##p
9#define CMAT(A) int A##r, int A##c, gsl_complex* A##p
10#define KCVEC(A) int A##n, const gsl_complex*A##p
11#define KCMAT(A) int A##r, int A##c, const gsl_complex* A##p
12
13
14int transR(KRMAT(x),RMAT(t));
15int transC(KCMAT(x),CMAT(t));
16
17int constantR(double *val , RVEC(r));
18int constantC(gsl_complex *val, CVEC(r));
19
20int multiplyR(int ta, KRMAT(a), int tb, KRMAT(b),RMAT(r));
21int multiplyC(int ta, KCMAT(a), int tb, KCMAT(b),CMAT(r));