HiRep 0.1
Loading...
Searching...
No Matches
mat_utils.h
1
5
6#ifndef MAT_UTILS_H
7#define MAT_UTILS_H
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include "Core/gpu.h"
13
14//inv_Cmplx_Ng.c
15#ifndef GAUGE_SON
16visible void ludcmp(hr_complex *a, int *indx, double *d);
17visible void lubksb(hr_complex *a, int *indx, hr_complex *b, int N);
18visible void inv_Cmplx_Ng(suNg *a);
19#endif
20
21//det_Cmplx_Ng.c
22#ifndef GAUGE_SON
23visible void det_Cmplx_Ng(hr_complex *res, suNg *a);
24#else
25visible void det_Cmplx_Ng(double *res, suNg *a);
26#endif
27
28//diag_hmat.c
29#ifdef GAUGE_SON
30void tridiagonalize(suNg *hmat, double *diag, double *roffdiag);
31void tridiagonalize(suNg *hmat, double *diag, double *roffdiag);
32void diag_tridiag(suNg *hmat, double *diag, double *roffdiag);
33void diag_tridiag(suNg *hmat, double *diag, double *offdiag);
34double pythag(double a, double b);
35double pythag(double a, double b);
36double sign(double a, double b);
37double sign(double a, double b);
38void diag_hmat(suNg *hmat, double *diag);
39void diag_hmat(suNg *hmat, double *dag);
40#endif
41
42#ifdef __cplusplus
43}
44#endif
45#endif //MAT_UTILS_H
Basic gpu imports and structs. Include this in files that define GPU logic.