14 #ifndef SOURCE_RANDOM_INCLUDED
15 #define SOURCE_RANDOM_INCLUDED
64 const std::vector<int>& source_momentum,
65 const std::string noise_type);
68 void set(
Field& src,
const int i_color,
const int i_spin);
80 static Source *create_object()
91 static bool register_factory()
93 bool init1 = Source::Factory::Register(
"Random", create_object);
static const std::string class_name
Random noise source in the space at a given timeslice.
Container of Field-type object.
void set_all_color_spin(Field &src)
void set_all_space_time(Field &src, const int ic)
Setting a noise vector. Filling all the sites and spin indices for color index "ic". The same random number is set for all the spin indices at one site.
std::vector< int > m_source_position
std::string m_str_noise_type
void set_all_color(Field &src, const int i_spin)
Manager class for RandomNumbers.
Base class of random number generators.
std::vector< int > m_source_momentum
void set(Field &src, const int idx)
void set_parameters(const Parameters ¶ms)
Base class of source for a linear solver.