evaluator.h
Go to the documentation of this file.
34};
56};
191 virtual void eval_sub_sol(int offset, const vector<FT> &new_sub_sol_coord, const enumf &sub_dist)
270 ErrorBoundedEvaluator(int dim, const Matrix<FP_NR<mpfr_t>> &mmu, const Matrix<FP_NR<mpfr_t>> &mr,
305 bool get_max_error_aux(const FP_NR<mpfr_t> &max_dist, bool boundOnExactVal, FP_NR<mpfr_t> &maxDE);
328 virtual void eval_sol(const vector<FP_NR<mpfr_t>> &new_sol_coord, const enumf &new_partial_dist,
359 virtual void eval_sol(const vector<FP_NR<mpfr_t>> &new_sol_coord, const enumf &new_partial_dist,
Definition: evaluator.h:223
virtual void eval_sol(const vector< FT > &new_sol_coord, const enumf &new_partial_dist, enumf &max_dist)
Definition: evaluator.h:248
CallbackEvaluator(std::function< callback_evaluator_callback > callbackf, void *ctx=NULL, size_t nr_solutions=1, EvaluatorStrategy update_strategy=EVALSTRATEGY_BEST_N_SOLUTIONS, bool find_subsolutions=false)
Definition: evaluator.h:236
Definition: evaluator.h:268
ErrorBoundedEvaluator(int dim, const Matrix< FP_NR< mpfr_t > > &mmu, const Matrix< FP_NR< mpfr_t > > &mr, EvaluatorMode evalmode, size_t nr_solutions=1, EvaluatorStrategy update_strategy=EVALSTRATEGY_BEST_N_SOLUTIONS, bool find_subsolutions=false)
Definition: evaluator.h:270
bool get_max_error_aux(const FP_NR< mpfr_t > &max_dist, bool boundOnExactVal, FP_NR< mpfr_t > &maxDE)
Definition: evaluator.cpp:75
void init_delta_def(int prec, double rho, bool withRoundingToEnumf)
Definition: evaluator.cpp:20
virtual bool get_max_error(FP_NR< mpfr_t > &max_error, const FP_NR< mpfr_t > &sol_dist)=0
virtual ~ErrorBoundedEvaluator()
Definition: evaluator.h:281
Definition: evaluator.h:66
void process_sol(const FT &dist, const vector< FT > &coord, enumf &max_dist)
Definition: evaluator.h:122
virtual void eval_sol(const vector< FT > &new_sol_coord, const enumf &new_partial_dist, enumf &max_dist)=0
std::vector< std::pair< FT, std::vector< FT > > > sub_solutions
Definition: evaluator.h:92
std::multimap< FT, std::vector< FT >, std::greater< FT > > container_t
Definition: evaluator.h:87
virtual enumf calc_enum_bound(const FT &dist) const
Definition: evaluator.h:114
virtual void eval_sub_sol(int offset, const vector< FT > &new_sub_sol_coord, const enumf &sub_dist)=0
Evaluator(size_t nr_solutions=1, EvaluatorStrategy update_strategy=EVALSTRATEGY_BEST_N_SOLUTIONS, bool find_subsolutions=false)
Definition: evaluator.h:68
Definition: evaluator.h:339
Z_NR< mpz_t > exact_subsol_dist(int offset, const vector< FP_NR< mpfr_t > > &sol_coord)
virtual void eval_sol(const vector< FP_NR< mpfr_t > > &new_sol_coord, const enumf &new_partial_dist, enumf &max_dist)
Definition: evaluator.cpp:277
ExactErrorBoundedEvaluator(int d, MatGSOInterface< Z_NR< mpz_t >, FP_NR< mpfr_t > > &_gso, EvaluatorMode eval_mode, size_t nr_solutions=1, EvaluatorStrategy update_strategy=EVALSTRATEGY_BEST_N_SOLUTIONS, bool find_subsolutions=false)
Definition: evaluator.h:341
virtual void eval_sub_sol(int offset, const vector< FP_NR< mpfr_t > > &new_sub_sol_coord, const enumf &sub_dist)
Definition: evaluator.cpp:311
virtual ~ExactErrorBoundedEvaluator()
Definition: evaluator.h:352
virtual bool get_max_error(FP_NR< mpfr_t > &max_error, const FP_NR< mpfr_t > &sol_dist)
Definition: evaluator.cpp:271
Z_NR< mpz_t > exact_sol_dist(const vector< FP_NR< mpfr_t > > &sol_coord)
Definition: evaluator.h:315
virtual void eval_sub_sol(int offset, const vector< FP_NR< mpfr_t > > &new_sub_sol_coord, const enumf &sub_dist)
Definition: evaluator.cpp:229
virtual ~FastErrorBoundedEvaluator()
Definition: evaluator.h:325
FastErrorBoundedEvaluator(int d=0, const Matrix< FP_NR< mpfr_t > > &mu=Matrix< FP_NR< mpfr_t > >(), const Matrix< FP_NR< mpfr_t > > &r=Matrix< FP_NR< mpfr_t > >(), EvaluatorMode eval_mode=EVALMODE_SV, size_t nr_solutions=1, EvaluatorStrategy update_strategy=EVALSTRATEGY_BEST_N_SOLUTIONS, bool find_subsolutions=false)
Definition: evaluator.h:317
virtual void eval_sol(const vector< FP_NR< mpfr_t > > &new_sol_coord, const enumf &new_partial_dist, enumf &max_dist)
Definition: evaluator.cpp:213
virtual bool get_max_error(FP_NR< mpfr_t > &max_error, const FP_NR< mpfr_t > &sol_dist)
Definition: evaluator.cpp:247
Definition: evaluator.h:165
virtual void eval_sol(const vector< FT > &new_sol_coord, const enumf &new_partial_dist, enumf &max_dist)
Definition: evaluator.h:181
virtual void eval_sub_sol(int offset, const vector< FT > &new_sub_sol_coord, const enumf &sub_dist)
Definition: evaluator.h:191
FastEvaluator(size_t nr_solutions=1, EvaluatorStrategy update_strategy=EVALSTRATEGY_BEST_N_SOLUTIONS, bool find_subsolutions=false)
Definition: evaluator.h:173
Definition: gso_interface.h:60
Definition: matrix.h:118
fplll_extenum_enumf std::function< extenum_cb_set_config > std::function< extenum_cb_process_sol > std::function< extenum_cb_process_subsol > bool bool findsubsols
Definition: enumerate_ext_api.h:92
@ EVALSTRATEGY_OPPORTUNISTIC_N_SOLUTIONS
Definition: evaluator.h:54
bool() callback_evaluator_callback(size_t n, enumf *new_sol_coord, void *ctx)
Callback function used by CallbackEvaluator.
Definition: evaluator.h:213