Bridge++  Ver. 2.0.2
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 ()
 
 Source_Random (const Parameters &params)
 
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 get_parameters (Parameters &params) const
 
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 ()
 

Static Public Attributes

static const std::string class_name = "Source_Random"
 

Private Attributes

Bridge::VerboseLevel m_vl
 
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
 

Detailed Description

Random noise source in the space at a given timeslice.

Random noise source in the space at a given timeslice src = \eta_{i_color,i_spin}^{i_noise}(x), where \eta is a random number field satisfying \sum_{i_noise} \eta^{i_noise} = 0 \sum \eta_i^{i_noise,\dagger} \eta_j^{i_noise} = \delta_{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() [1/2]

Source_Random::Source_Random ( )
inline

Definition at line 51 of file source_Random.h.

◆ Source_Random() [2/2]

Source_Random::Source_Random ( const Parameters params)
inline

Definition at line 57 of file source_Random.h.

Member Function Documentation

◆ get_parameters()

void Source_Random::get_parameters ( Parameters params) const
virtual

Implements Source.

Definition at line 53 of file source_Random.cpp.

◆ set() [1/2]

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

Implements Source.

Definition at line 215 of file source_Random.cpp.

◆ set() [2/2]

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

Implements Source.

Definition at line 135 of file source_Random.cpp.

◆ set_all_color()

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

Implements Source.

Definition at line 225 of file source_Random.cpp.

◆ set_all_color_spin()

void Source_Random::set_all_color_spin ( Field src)
virtual

Implements Source.

Definition at line 316 of file source_Random.cpp.

◆ set_all_space_time() [1/2]

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 405 of file source_Random.cpp.

◆ set_all_space_time() [2/2]

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 452 of file source_Random.cpp.

◆ set_parameters() [1/2]

void Source_Random::set_parameters ( const Parameters params)
virtual

Implements Source.

Definition at line 25 of file source_Random.cpp.

◆ set_parameters() [2/2]

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

◆ class_name

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

Definition at line 38 of file source_Random.h.

◆ m_in_node

bool Source_Random::m_in_node
private

Definition at line 48 of file source_Random.h.

◆ m_index

Index_lex Source_Random::m_index
private

Definition at line 44 of file source_Random.h.

◆ m_rand

RandomNumbers* Source_Random::m_rand
private

Definition at line 43 of file source_Random.h.

◆ m_source_momentum

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

Definition at line 46 of file source_Random.h.

◆ m_source_position

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

Definition at line 45 of file source_Random.h.

◆ m_str_noise_type

std::string Source_Random::m_str_noise_type
private

Definition at line 47 of file source_Random.h.

◆ m_vl

Bridge::VerboseLevel Source_Random::m_vl
private

Definition at line 41 of file source_Random.h.


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