From 7430630fa0504296b796223e01cbd417b88650ef Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Mon, 4 Jun 2007 19:10:28 +0000 Subject: separation of Internal --- lib/Data/Packed/Internal/aux.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/Data/Packed/Internal/aux.h (limited to 'lib/Data/Packed/Internal/aux.h') diff --git a/lib/Data/Packed/Internal/aux.h b/lib/Data/Packed/Internal/aux.h new file mode 100644 index 0000000..f45b55a --- /dev/null +++ b/lib/Data/Packed/Internal/aux.h @@ -0,0 +1,21 @@ +#include + +#define RVEC(A) int A##n, double*A##p +#define RMAT(A) int A##r, int A##c, double* A##p +#define KRVEC(A) int A##n, const double*A##p +#define KRMAT(A) int A##r, int A##c, const double* A##p + +#define CVEC(A) int A##n, gsl_complex*A##p +#define CMAT(A) int A##r, int A##c, gsl_complex* A##p +#define KCVEC(A) int A##n, const gsl_complex*A##p +#define KCMAT(A) int A##r, int A##c, const gsl_complex* A##p + + +int transR(KRMAT(x),RMAT(t)); +int transC(KCMAT(x),CMAT(t)); + +int constantR(double *val , RVEC(r)); +int constantC(gsl_complex *val, CVEC(r)); + +int multiplyR(int ta, KRMAT(a), int tb, KRMAT(b),RMAT(r)); +int multiplyC(int ta, KCMAT(a), int tb, KCMAT(b),CMAT(r)); -- cgit v1.2.3