3 #ifndef __cfft2d_calc_block_hpp
4 #define __cfft2d_calc_block_hpp
9 #include <calc_block.hpp>
11 #include <dcf/calc_block.hpp>
35 void setData(
size_t dim_x,
size_t dim_y,
float *re_data,
float *im_data);
50 void calcModule(
size_t dim_x,
size_t dim_y,
float *
re,
float *
im,
float *mod);
78 void cuda_set_data(
size_t dim_x,
size_t dim_y,
float *re_data,
float *im_data);
void setData(size_t dim_x, size_t dim_y, float *re_data, float *im_data)
error_t
Definition: types.hpp:11
Definition: manager.hpp:19
int dir
Definition: cfft2d_calc_block.hpp:61
const dcf::Manager * manager() const
Definition: calc_block.hpp:43
bool normalize
Definition: cfft2d_calc_block.hpp:62
float * re
Definition: cfft2d_calc_block.hpp:59
void setNormalize(bool normalize)
Definition: cfft2d_calc_block.hpp:47
int getDirection() const
Definition: cfft2d_calc_block.hpp:41
float * im
Definition: cfft2d_calc_block.hpp:60
struct dcf::CFFT2DCalcBlock::@4 m_data
dcf::error_t free_device()
Definition: calc_block.hpp:17
void calcModule(size_t dim_x, size_t dim_y, float *re, float *im, float *mod)
bool isNormalize() const
Definition: cfft2d_calc_block.hpp:44
CFFT2DCalcBlock(const dcf::Manager &manager, int direction=1, bool normalize=true)
dcf::error_t select_device()
Definition: cfft2d_calc_block.hpp:17
void cuda_set_data(size_t dim_x, size_t dim_y, float *re_data, float *im_data)
void setDirection(int dir)
Definition: cfft2d_calc_block.hpp:38
bool new_plan
Definition: cfft2d_calc_block.hpp:58
virtual ~CFFT2DCalcBlock()
size_t dim_y
Definition: cfft2d_calc_block.hpp:57