Grid 0.7.0
ZMobius.h
Go to the documentation of this file.
1/*************************************************************************************
2
3 Grid physics library, www.github.com/paboyle/Grid
4
5 Source file: ./lib/algorithms/approx/ZMobius.h
6
7 Copyright (C) 2015
8
9Author: Christopher Kelly <ckelly@phys.columbia.edu>
10
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License along
22 with this program; if not, write to the Free Software Foundation, Inc.,
23 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24
25 See the full license in the file "LICENSE" in the top level distribution directory
26*************************************************************************************/
27/* END LEGAL */
28#ifndef GRID_ZMOBIUS_APPROX_H
29#define GRID_ZMOBIUS_APPROX_H
30
31#include <Grid/GridCore.h>
32
35
36//Compute the Zmobius Omega parameters suitable for eigenvalue range -lambda_bound <= lambda <= lambda_bound
37//Note omega_i = 1/(b_i + c_i) where b_i and c_i are the Mobius parameters
38void computeZmobiusOmega(std::vector<ComplexD> &omega_out, const int Ls_out,
39 const std::vector<RealD> &omega_in, const int Ls_in,
40 const RealD lambda_bound);
41
42//mobius_param = b+c with b-c=1
43void computeZmobiusOmega(std::vector<ComplexD> &omega_out, const int Ls_out, const RealD mobius_param, const int Ls_in, const RealD lambda_bound);
44
45//ZMobius class takes gamma_i = (b+c) omega_i as its input, where b, c are factored out
46void computeZmobiusGamma(std::vector<ComplexD> &gamma_out,
47 const RealD mobius_param_out, const int Ls_out,
48 const RealD mobius_param_in, const int Ls_in,
49 const RealD lambda_bound);
50
51//Assumes mobius_param_out == mobius_param_in
52void computeZmobiusGamma(std::vector<ComplexD> &gamma_out, const int Ls_out, const RealD mobius_param, const int Ls_in, const RealD lambda_bound);
53
56
57#endif
#define NAMESPACE_BEGIN(A)
Definition Namespace.h:35
#define NAMESPACE_END(A)
Definition Namespace.h:36
double RealD
Definition Simd.h:61
void computeZmobiusGamma(std::vector< ComplexD > &gamma_out, const RealD mobius_param_out, const int Ls_out, const RealD mobius_param_in, const int Ls_in, const RealD lambda_bound)
Definition ZMobius.cc:170
void computeZmobiusOmega(std::vector< ComplexD > &omega_out, const int Ls_out, const std::vector< RealD > &omega_in, const int Ls_in, const RealD lambda_bound)
Definition ZMobius.cc:74