17 #ifndef _SUTRA_GROOT_H_
18 #define _SUTRA_GROOT_H_
66 float gsangle,
float *vdt,
float *Htheta,
float *L0,
67 float *winddir,
float *
scale,
float *pzt2tt,
float *TTPfilter,
68 float *Nact,
float *xpos,
float *ypos,
float fc);
71 float scale,
float *xpos,
float *ypos,
float fc,
float d,
81 template <
class T_data>
83 T_data *tab_int_y, T_data *xpos, T_data *ypos,
84 T_data vdt, T_data Htheta, T_data L0, T_data fc,
85 T_data winddir, T_data gsangle, T_data scale,
int Ntab,
87 template <
class T_data>
88 int compute_Ca(T_data *CaXX, T_data *CaYY,
int nssp, T_data *tab_int_x,
89 T_data *tab_int_y, T_data *xpos, T_data *ypos, T_data offset,
90 T_data d, T_data fc, T_data scale, T_data weight,
int Ntab,
92 template <
class T_data>
93 int tab_u831J0(T_data *tab_int_x, T_data *tab_int_y,
int N,
95 template <
class T_data>
96 void cumsum(T_data *odata, T_data *idata,
int N);
97 template <
class T_data>
this file provides the cublas features to CarmaObj
this class provides the context in which CarmaObj are created
cublasHandle_t get_cublas_handle()
this class provides the groot features to COMPASS
CarmaObj< float > * d_pzt2tt
CarmaObj< float > * d_Cerr
CarmaHostObj< float > * h_weights
SutraGroot(CarmaContext *context, int device, int nactus, int nlayers, float gsangle, float *vdt, float *Htheta, float *L0, float *winddir, float *scale, float *pzt2tt, float *TTPfilter, float *Nact, float *xpos, float *ypos, float fc)
CarmaObj< float > * d_CaXX
CarmaObj< float > * d_TTPfilter
CarmaHostObj< float > * h_Htheta
CarmaHostObj< float > * h_scale
CarmaObj< float > * d_tab_int_x
CarmaHostObj< float > * h_L0
cublasHandle_t cublas_handle()
void init_common(CarmaContext *context, int device, float *xpos, float *ypos, int N, float fc)
CarmaContext * current_context
CarmaObj< float > * d_tab_int_y
CarmaHostObj< float > * h_winddir
CarmaObj< float > * d_ypos
CarmaObj< float > * d_Nact
CarmaObj< float > * d_xpos
CarmaObj< float > * d_CaYY
SutraGroot(CarmaContext *context, int device, int nssp, float *weights, float scale, float *xpos, float *ypos, float fc, float d, int npts)
CarmaHostObj< float > * h_vdt
int compute_Ca(T_data *CaXX, T_data *CaYY, int nssp, T_data *tab_int_x, T_data *tab_int_y, T_data *xpos, T_data *ypos, T_data offset, T_data d, T_data fc, T_data scale, T_data weight, int Ntab, CarmaDevice *device)
void cumsum(T_data *odata, T_data *idata, int N)
int tab_u831J0(T_data *tab_int_x, T_data *tab_int_y, int N, CarmaDevice *device)
int compute_Cerr_layer(T_data *Cerr, int N, T_data *tab_int_x, T_data *tab_int_y, T_data *xpos, T_data *ypos, T_data vdt, T_data Htheta, T_data L0, T_data fc, T_data winddir, T_data gsangle, T_data scale, int Ntab, CarmaDevice *device)
int add_transpose(T_data *Cerr, int N, CarmaDevice *device)