Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Source_Random Class Reference

Random noise source in the space at a given timeslice. More...

#include <source_Random.h>

Inheritance diagram for Source_Random:
Source

Public Member Functions

 Source_Random ()
 
void set_parameters (const Parameters &params)
 
void set_parameters (const std::vector< int > &source_position, const std::vector< int > &source_momentum, const std::string noise_type)
 
void set (Field &src, const int idx)
 
void set (Field &src, const int i_color, const int i_spin)
 
void set_all_color (Field &src, const int i_spin)
 
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. More...
 
void set_all_space_time (Field &src, const int ic, const int is)
 Setting a noise vector. Filling all the sites for spin-color index "is" and "ic". More...
 
- Public Member Functions inherited from Source
 Source ()
 
virtual ~Source ()
 
void set_parameter_verboselevel (const Bridge::VerboseLevel vl)
 

Static Public Attributes

static const std::string class_name = "Source_Random"
 

Private Attributes

RandomNumbersm_rand
 
Index_lex m_index
 
std::vector< int > m_source_position
 
std::vector< int > m_source_momentum
 
std::string m_str_noise_type
 
bool m_in_node
 

Additional Inherited Members

- Protected Attributes inherited from Source
Bridge::VerboseLevel m_vl
 

Detailed Description

Random noise source in the space at a given timeslice.

Random noise source in the space at a given timeslice src = {i_color,i_spin}^{i_noise}(x), where is a random number field satisfying {i_noise} ^{i_noise} = 0 ^{i_noise,} ^{i_noise} = {ij} [10 Jan 2017 Y.Namekawa] Add two functions set_all_space_time(ic), set_all_space_time(ic,is) intended to be used in VEV calculation with fermion_flow. [21 December 2017 Y.Taniguchi]

Definition at line 35 of file source_Random.h.

Constructor & Destructor Documentation

Source_Random::Source_Random ( )
inline

Definition at line 49 of file source_Random.h.

Member Function Documentation

void Source_Random::set ( Field src,
const int  idx 
)
virtual

Implements Source.

Definition at line 123 of file source_Random.cpp.

void Source_Random::set ( Field src,
const int  i_color,
const int  i_spin 
)
virtual

Implements Source.

Definition at line 203 of file source_Random.cpp.

void Source_Random::set_all_color ( Field src,
const int  i_spin 
)
virtual

Implements Source.

Definition at line 213 of file source_Random.cpp.

void Source_Random::set_all_color_spin ( Field src)
virtual

Implements Source.

Definition at line 304 of file source_Random.cpp.

void Source_Random::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.

Definition at line 393 of file source_Random.cpp.

void Source_Random::set_all_space_time ( Field src,
const int  ic,
const int  is 
)

Setting a noise vector. Filling all the sites for spin-color index "is" and "ic".

Definition at line 440 of file source_Random.cpp.

void Source_Random::set_parameters ( const Parameters params)
virtual

Implements Source.

Definition at line 25 of file source_Random.cpp.

void Source_Random::set_parameters ( const std::vector< int > &  source_position,
const std::vector< int > &  source_momentum,
const std::string  noise_type 
)

Member Data Documentation

const std::string Source_Random::class_name = "Source_Random"
static

Definition at line 38 of file source_Random.h.

bool Source_Random::m_in_node
private

Definition at line 46 of file source_Random.h.

Index_lex Source_Random::m_index
private

Definition at line 42 of file source_Random.h.

RandomNumbers* Source_Random::m_rand
private

Definition at line 41 of file source_Random.h.

std::vector<int> Source_Random::m_source_momentum
private

Definition at line 44 of file source_Random.h.

std::vector<int> Source_Random::m_source_position
private

Definition at line 43 of file source_Random.h.

std::string Source_Random::m_str_noise_type
private

Definition at line 45 of file source_Random.h.


The documentation for this class was generated from the following files: