HiRep 0.1
Loading...
Searching...
No Matches
rational_functions.h
1/***************************************************************************\
2* Copyright (c) 2008, Claudio Pica *
3* All rights reserved. *
4\***************************************************************************/
5
6#ifndef RATIONAL_FUNCTIONS_H
7#define RATIONAL_FUNCTIONS_H
8
9#include "Inverters/linear_solvers.h"
10#include "spinor_field.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct rational_app {
17 /* approximate function = x^(n/d) */
18 /* in the range [min,max] with relative precision rel_error */
19 int n, d;
20 unsigned int order;
21 double rel_error;
22 double *a;
23 double *b;
24 double min, max; /* eigenvalues */
25 unsigned int _asize; /* allocated space for arrays */
27
28void r_app_alloc(rational_app *app);
29void r_app_free(rational_app *app);
30void r_app_realloc(rational_app *app);
31void r_app_rescale(rational_app *app, double k);
32void r_app_set(rational_app *app, double min, double max);
33
34void rational_func(rational_app *coef, spinor_operator Q, spinor_field *out, spinor_field *in);
35
36#ifdef __cplusplus
37}
38#endif
39#endif
The elementary site structures defined in suN.h are used in this file to define field structures that...
Definition rational_functions.h:16
Spinor field array containing SU(N_f) spinors in chosen fermion representation.
Definition spinor_field.h:189