summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Internal/aux.h
blob: f45b55ad30f9db44a9dd1ca52c470a52017bdfae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <gsl/gsl_complex.h>

#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));