15#ifndef LINEAR_ALGEBRA_H
16#define LINEAR_ALGEBRA_H
18#include "libhr_core.h"
20#include "Utils/generics.h"
31double *alloc_double_sum_field(
int n);
32hr_complex *alloc_complex_sum_field(
int n);
36#define _FIELD_TYPE spinor_field
38#define _COMPLEX hr_complex
39#include "TMPL/linear_algebra_def.h.tmpl"
40#include "TMPL/linear_algebra_reduction.h.tmpl"
41#include "TMPL/linear_algebra_base_operations.h.tmpl"
42#include "TMPL/linear_algebra_lc.h.tmpl"
43#include "TMPL/linear_algebra_gamma.h.tmpl"
44#include "TMPL/linear_algebra_base.h.tmpl"
47#define _FIELD_TYPE spinor_field_flt
49#define _COMPLEX hr_complex_flt
50#include "TMPL/linear_algebra_def.h.tmpl"
51#include "TMPL/linear_algebra_reduction.h.tmpl"
52#include "TMPL/linear_algebra_base_operations.h.tmpl"
53#include "TMPL/linear_algebra_lc.h.tmpl"
54#include "TMPL/linear_algebra_gamma.h.tmpl"
55#include "TMPL/linear_algebra_base.h.tmpl"
58#define _FIELD_TYPE scalar_field
60#define _COMPLEX hr_complex
61#include "TMPL/linear_algebra_def.h.tmpl"
62#include "TMPL/linear_algebra_reduction.h.tmpl"
63#include "TMPL/linear_algebra_base_operations.h.tmpl"
64#include "TMPL/linear_algebra_base.h.tmpl"
66#define _FIELD_TYPE suNg_field
68#define _COMPLEX hr_complex
69#include "TMPL/linear_algebra_def.h.tmpl"
70#include "TMPL/linear_algebra_reduction.h.tmpl"
71#include "TMPL/linear_algebra_base_operations.h.tmpl"
72#include "TMPL/linear_algebra_base.h.tmpl"
74#define _FIELD_TYPE suNf_field
76#define _COMPLEX hr_complex
77#include "TMPL/linear_algebra_def.h.tmpl"
78#include "TMPL/linear_algebra_reduction.h.tmpl"
79#include "TMPL/linear_algebra_base_operations.h.tmpl"
80#include "TMPL/linear_algebra_base.h.tmpl"
82#define _FIELD_TYPE suNfc_field
84#define _COMPLEX hr_complex
85#include "TMPL/linear_algebra_def.h.tmpl"
86#include "TMPL/linear_algebra_reduction.h.tmpl"
87#include "TMPL/linear_algebra_base_operations.h.tmpl"
88#include "TMPL/linear_algebra_base.h.tmpl"
90#define _FIELD_TYPE suNg_field_flt
92#define _COMPLEX hr_complex_flt
93#include "TMPL/linear_algebra_def.h.tmpl"
94#include "TMPL/linear_algebra_reduction.h.tmpl"
95#include "TMPL/linear_algebra_base_operations.h.tmpl"
96#include "TMPL/linear_algebra_base.h.tmpl"
98#define _FIELD_TYPE suNf_field_flt
100#define _COMPLEX hr_complex_flt
101#include "TMPL/linear_algebra_def.h.tmpl"
102#include "TMPL/linear_algebra_reduction.h.tmpl"
103#include "TMPL/linear_algebra_base_operations.h.tmpl"
104#include "TMPL/linear_algebra_base.h.tmpl"
106#define _FIELD_TYPE suNg_scalar_field
108#define _COMPLEX hr_complex
109#include "TMPL/linear_algebra_def.h.tmpl"
110#include "TMPL/linear_algebra_reduction.h.tmpl"
111#include "TMPL/linear_algebra_base_operations.h.tmpl"
112#include "TMPL/linear_algebra_base.h.tmpl"
114#define _FIELD_TYPE suNg_av_field
116#define _COMPLEX hr_complex
117#include "TMPL/linear_algebra_def.h.tmpl"
118#include "TMPL/linear_algebra_reduction.h.tmpl"
119#include "TMPL/linear_algebra_base_operations.h.tmpl"
120#include "TMPL/linear_algebra_base.h.tmpl"
122#define _FIELD_TYPE gtransf
124#define _COMPLEX hr_complex
125#include "TMPL/linear_algebra_def.h.tmpl"
126#include "TMPL/linear_algebra_reduction.h.tmpl"
127#include "TMPL/linear_algebra_base_operations.h.tmpl"
128#include "TMPL/linear_algebra_base.h.tmpl"
130#define _FIELD_TYPE ldl_field
132#define _COMPLEX hr_complex
133#include "TMPL/linear_algebra_def.h.tmpl"
134#include "TMPL/linear_algebra_base.h.tmpl"
136#define _FIELD_TYPE clover_term
138#define _COMPLEX hr_complex
139#include "TMPL/linear_algebra_def.h.tmpl"
140#include "TMPL/linear_algebra_reduction.h.tmpl"
141#include "TMPL/linear_algebra_base_operations.h.tmpl"
142#include "TMPL/linear_algebra_base.h.tmpl"
144#define _FIELD_TYPE clover_force
146#define _COMPLEX hr_complex
147#include "TMPL/linear_algebra_def.h.tmpl"
148#include "TMPL/linear_algebra_reduction.h.tmpl"
149#include "TMPL/linear_algebra_base_operations.h.tmpl"
150#include "TMPL/linear_algebra_base.h.tmpl"
152#define _FIELD_TYPE staple_field
154#define _COMPLEX hr_complex
155#include "TMPL/linear_algebra_def.h.tmpl"
156#include "TMPL/linear_algebra_reduction.h.tmpl"
157#include "TMPL/linear_algebra_base_operations.h.tmpl"
158#include "TMPL/linear_algebra_base.h.tmpl"
160#undef _DECLARE_LINA_HEADER
Type definitions and macros for complex numbers.