PURIFY
Next-generation radio interferometric imaging
random_update_factory.h
Go to the documentation of this file.
1 #ifndef RANDOM_UPDATE_FACTORY_H
2 #define RANDOM_UPDATE_FACTORY_H
3 
4 #include "purify/config.h"
5 
6 #include "purify/types.h"
8 #include "purify/logging.h"
9 #include "purify/utilities.h"
10 
11 #ifdef PURIFY_MPI
12 #include "purify/mpi_utilities.h"
13 #include <sopt/mpi/communicator.h>
14 namespace purify {
15 namespace random_updater {
17 std::function<bool()> random_updater(const sopt::mpi::Communicator& comm, const t_int total,
18  const t_int update_size,
19  const std::shared_ptr<bool> update_pointer,
20  const std::string& update_name);
21 } // namespace random_updater
22 } // namespace purify
23 #endif
24 #endif
std::function< bool()> random_updater(const sopt::mpi::Communicator &comm, const t_int total, const t_int update_size, const std::shared_ptr< bool > update_pointer, const std::string &update_name)