summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Internal/auxi.h
blob: 46986962e3ef9c014706b2553415944ab418a182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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 submatrixR(int r1, int r2, int c1, int c2, KRMAT(x),RMAT(r));

const char * gsl_strerror (const int gsl_errno);

int matrix_fscanf(char*filename, RMAT(a));

int conjugate(KCVEC(x),CVEC(t));

void asm_finit();