82template <
typename REAL,
typename Device = base_device::DEVICE_CPU>
97 void calcoef_complex(std::function<std::complex<REAL>(std::complex<REAL>)> fun);
101 void calcoef_pair(std::function<REAL(REAL)> fun1, std::function<REAL(REAL)> fun2);
118 void calfinalvec_real(std::function<
void(std::complex<REAL>*, std::complex<REAL>*,
const int)> funA,
119 std::complex<REAL>* wavein,
120 std::complex<REAL>* waveout,
126 void calfinalvec_complex(std::function<
void(std::complex<REAL>*, std::complex<REAL>*,
const int)> funA,
127 std::complex<REAL>* wavein,
128 std::complex<REAL>* waveout,
137 void tracepolyA(std::function<
void(std::complex<REAL>* in, std::complex<REAL>* out,
const int)> funA,
138 std::complex<REAL>* wavein,
144 void getpolyval(REAL x, REAL* polyval,
const int N);
157 void calpolyvec_complex(std::function<
void(std::complex<REAL>* in, std::complex<REAL>* out,
const int)> funA,
158 std::complex<REAL>* wavein,
159 std::complex<REAL>* waveout,
168 void recurs_real(std::function<
void(REAL* in, REAL* out,
const int)> funA,
177 void recurs_complex(std::function<
void(std::complex<REAL>* in, std::complex<REAL>* out,
const int)> funA,
178 std::complex<REAL>* arraynp1,
179 std::complex<REAL>* arrayn,
180 std::complex<REAL>* arrayn_1,
186 REAL
recurs(
const REAL x,
const REAL Tn,
const REAL Tn_1);
194 bool checkconverge(std::function<
void(std::complex<REAL>* in, std::complex<REAL>* out,
const int)> funA,
195 std::complex<REAL>* wavein,
221 REAL
ddot_real(
const std::complex<REAL>* psi_L,
222 const std::complex<REAL>* psi_R,
248 FFTW(
const int norder2_in);
261 FFTW(
const int norder2_in);
264 float* dcoef =
nullptr;
265 fftwf_complex* ccoef =
nullptr;
266 fftwf_plan coef_plan;
void getpolyval(REAL x, REAL *polyval, const int N)
Definition math_chebyshev.cpp:101
base_device::memory::synchronize_memory_op< std::complex< REAL >, base_device::DEVICE_CPU, Device > syncmem_complex_d2h_op
Definition math_chebyshev.h:238
REAL * coef_real
Definition math_chebyshev.h:207
void calfinalvec_real(std::function< void(REAL *, REAL *, const int)> funA, REAL *wavein, REAL *waveout, const int N, const int LDA=1, const int m=1)
void recurs_real(std::function< void(REAL *in, REAL *out, const int)> funA, REAL *arraynp1, REAL *arrayn, REAL *arrayn_1, const int N, const int LDA=1, const int m=1)
void calfinalvec_complex(std::function< void(std::complex< REAL > *, std::complex< REAL > *, const int)> funA, std::complex< REAL > *wavein, std::complex< REAL > *waveout, const int N, const int LDA=1, const int m=1)
Definition math_chebyshev.cpp:472
void calpolyvec_real(std::function< void(REAL *in, REAL *out, const int)> funA, REAL *wavein, REAL *waveout, const int N, const int LDA=1, const int m=1)
int norder
Definition math_chebyshev.h:204
base_device::memory::resize_memory_op< REAL, Device > resmem_var_op
Definition math_chebyshev.h:232
void calcoef_pair(std::function< REAL(REAL)> fun1, std::function< REAL(REAL)> fun2)
Definition math_chebyshev.cpp:312
bool getcoef_complex
Definition math_chebyshev.h:216
REAL recurs(const REAL x, const REAL Tn, const REAL Tn_1)
Definition math_chebyshev.cpp:111
Chebyshev(const int norder)
Definition math_chebyshev.cpp:54
base_device::memory::synchronize_memory_op< std::complex< REAL >, Device, base_device::DEVICE_CPU > syncmem_complex_h2d_op
Definition math_chebyshev.h:237
void calpolyvec_complex(std::function< void(std::complex< REAL > *in, std::complex< REAL > *out, const int)> funA, std::complex< REAL > *wavein, std::complex< REAL > *waveout, const int N, const int LDA=1, const int m=1)
Definition math_chebyshev.cpp:537
~Chebyshev()
Definition math_chebyshev.cpp:82
base_device::memory::delete_memory_op< std::complex< REAL >, Device > delmem_complex_op
Definition math_chebyshev.h:233
REAL * coefr_cpu
Definition math_chebyshev.h:209
void recurs_complex(std::function< void(std::complex< REAL > *in, std::complex< REAL > *out, const int)> funA, std::complex< REAL > *arraynp1, std::complex< REAL > *arrayn, std::complex< REAL > *arrayn_1, const int N, const int LDA=1, const int m=1)
Definition math_chebyshev.cpp:628
Device * ctx
Definition math_chebyshev.h:228
base_device::DEVICE_CPU * cpu_ctx
Definition math_chebyshev.h:229
base_device::memory::delete_memory_op< REAL, Device > delmem_var_op
Definition math_chebyshev.h:234
base_device::memory::synchronize_memory_op< REAL, Device, base_device::DEVICE_CPU > syncmem_var_h2d_op
Definition math_chebyshev.h:235
std::complex< REAL > * coef_complex
Definition math_chebyshev.h:208
base_device::memory::synchronize_memory_op< REAL, base_device::DEVICE_CPU, Device > syncmem_var_d2h_op
Definition math_chebyshev.h:236
REAL * polytrace
Definition math_chebyshev.h:213
void calcoef_real(std::function< REAL(REAL)> fun)
Definition math_chebyshev.cpp:160
typename container::PsiToContainer< Device >::type ct_Device
Definition math_chebyshev.h:230
void tracepolyA(std::function< void(std::complex< REAL > *in, std::complex< REAL > *out, const int)> funA, std::complex< REAL > *wavein, const int N, const int LDA=1, const int m=1)
Definition math_chebyshev.cpp:577
void calcoef_complex(std::function< std::complex< REAL >(std::complex< REAL >)> fun)
Definition math_chebyshev.cpp:222
base_device::memory::resize_memory_op< std::complex< REAL >, Device > resmem_complex_op
Definition math_chebyshev.h:231
REAL ddot_real(const std::complex< REAL > *psi_L, const std::complex< REAL > *psi_R, const int N, const int LDA=1, const int m=1)
Definition math_chebyshev.cpp:117
std::complex< REAL > * coefc_cpu
Definition math_chebyshev.h:210
FFTW< REAL > fftw
Definition math_chebyshev.h:212
bool getcoef_real
Definition math_chebyshev.h:215
bool checkconverge(std::function< void(std::complex< REAL > *in, std::complex< REAL > *out, const int)> funA, std::complex< REAL > *wavein, const int N, const int LDA, REAL &tmax, REAL &tmin, REAL stept)
Definition math_chebyshev.cpp:658
int norder2
Definition math_chebyshev.h:205
base_device::memory::synchronize_memory_op< REAL, Device, Device > memcpy_var_op
Definition math_chebyshev.h:239
base_device::memory::set_memory_op< std::complex< REAL >, Device > setmem_complex_op
Definition math_chebyshev.h:241
base_device::memory::synchronize_memory_op< std::complex< REAL >, Device, Device > memcpy_complex_op
Definition math_chebyshev.h:240
fftw_plan coef_plan
Definition math_chebyshev.h:253
void execute_fftw()
Definition math_chebyshev.cpp:26
fftw_complex * ccoef
Definition math_chebyshev.h:252
FFTW(const int norder2_in)
Definition math_chebyshev.cpp:14
double * dcoef
Definition math_chebyshev.h:251
Definition math_chebyshev.h:15
#define N
Definition exp.cpp:24
Definition clebsch_gordan_coeff.cpp:8
Definition memory_op.h:115
Definition memory_op.h:17
Definition memory_op.h:31
Definition memory_op.h:61
T type
Definition tensor_types.h:76
This file contains the definition of the DataType enum class.