mdp_complex_field Class Reference
field of complex numbers or vectors of complex numbers
More...
#include <mdp_complex_field.h>
List of all members.
Public Member Functions |
| mdp_complex_field () |
| mdp_complex_field (mdp_lattice &lattice, int n=1) |
| mdp_complex_field (const mdp_complex_field &other) |
void | operator= (const mdp_complex_field &psi) |
void | operator*= (const mdp_complex alpha) |
void | operator/= (const mdp_complex alpha) |
void | operator*= (const mdp_real alpha) |
void | operator/= (const mdp_real alpha) |
void | operator+= (mdp_complex_field &psi) |
void | operator-= (mdp_complex_field &psi) |
bool | save_as_float (string filename, int processIO=0, mdp_int max_buffer_size=1024, bool load_header=true, mdp_int skip_bytes=0) |
bool | load_as_float (string filename, int processIO=0, mdp_int max_buffer_size=1024, bool load_header=true, mdp_int skip_bytes=0) |
bool | load_as_double (string filename, int processIO=0, mdp_int max_buffer_size=1024, bool load_header=true, mdp_int skip_bytes=0) |
bool | save_as_double (string filename, int processIO=0, mdp_int max_buffer_size=1024, bool load_header=true, mdp_int skip_bytes=0) |
Friends |
mdp_real | norm_square (mdp_complex_field &psi, int parity=EVENODD) |
mdp_complex | scalar_product (mdp_complex_field &psi, mdp_complex_field &chi, int parity=EVENODD) |
mdp_real | real_scalar_product (mdp_complex_field &psi, mdp_complex_field &chi, int parity=EVENODD) |
mdp_real | imag_scalar_product (mdp_complex_field &psi, mdp_complex_field &chi, int parity=EVENODD) |
void | mdp_add_scaled_field (mdp_complex_field &psi, mdp_real alpha, mdp_complex_field &chi, int parity=EVENODD) |
void | mdp_add_scaled_field (mdp_complex_field &psi, mdp_complex alpha, mdp_complex_field &chi, int parity=EVENODD) |
mdp_complex | operator* (mdp_complex_field &psi, mdp_complex_field &chi) |
mdp_real | relative_residue (mdp_complex_field &p, mdp_complex_field &q, int parity=EVENODD) |
Detailed Description
field of complex numbers or vectors of complex numbers
Example:
/// int box[]={10,10,10};
/// mdp_lattice lattice(3,box);
/// mdp_complex_field psi(lattice,10);
/// mdp_site x(lattice);
/// forallsites(x)
/// for(int i=0; i<10; i++)
/// psi(x,i)=0.0+0.0*I;
///
Constructor & Destructor Documentation
mdp_complex_field::mdp_complex_field |
( |
|
) |
[inline] |
mdp_complex_field::mdp_complex_field |
( |
mdp_lattice & |
lattice, |
|
|
int |
n = 1 | |
|
) |
| | [inline] |
Member Function Documentation
bool mdp_complex_field::load_as_double |
( |
string |
filename, |
|
|
int |
processIO = 0 , |
|
|
mdp_int |
max_buffer_size = 1024 , |
|
|
bool |
load_header = true , |
|
|
mdp_int |
skip_bytes = 0 | |
|
) |
| | [inline] |
bool mdp_complex_field::load_as_float |
( |
string |
filename, |
|
|
int |
processIO = 0 , |
|
|
mdp_int |
max_buffer_size = 1024 , |
|
|
bool |
load_header = true , |
|
|
mdp_int |
skip_bytes = 0 | |
|
) |
| | [inline] |
void mdp_complex_field::operator*= |
( |
const mdp_real |
alpha |
) |
[inline] |
void mdp_complex_field::operator*= |
( |
const mdp_complex |
alpha |
) |
[inline] |
void mdp_complex_field::operator/= |
( |
const mdp_real |
alpha |
) |
[inline] |
void mdp_complex_field::operator/= |
( |
const mdp_complex |
alpha |
) |
[inline] |
bool mdp_complex_field::save_as_double |
( |
string |
filename, |
|
|
int |
processIO = 0 , |
|
|
mdp_int |
max_buffer_size = 1024 , |
|
|
bool |
load_header = true , |
|
|
mdp_int |
skip_bytes = 0 | |
|
) |
| | [inline] |
bool mdp_complex_field::save_as_float |
( |
string |
filename, |
|
|
int |
processIO = 0 , |
|
|
mdp_int |
max_buffer_size = 1024 , |
|
|
bool |
load_header = true , |
|
|
mdp_int |
skip_bytes = 0 | |
|
) |
| | [inline] |
Friends And Related Function Documentation
The documentation for this class was generated from the following file: