void generate_dm_list(float dm_start, float dm_end, float width, float tolerance) { dedisp_error error = dedisp_generate_dm_list(plan, dm_start, dm_end, width, tolerance); ErrorChecker::check_dedisp_error(error,"generate_dm_list"); dm_list.resize(dedisp_get_dm_count(plan)); const float* plan_dm_list = dedisp_get_dm_list(plan); std::copy(plan_dm_list,plan_dm_list+dm_list.size(),dm_list.begin()); }
void DedispPlan::generate_dm_list(float_type dm_start, float_type dm_end, float_type ti, float_type tol) { check_error( dedisp_generate_dm_list(m_plan, dm_start, dm_end, ti, tol), "dedisp_generate_dm_list" ); }