field of vectors of matrices More...
#include <mdp_nmatrix_field.h>
Public Member Functions | |
mdp_nmatrix_field () | |
mdp_nmatrix_field (mdp_nmatrix_field &field) | |
mdp_nmatrix_field (mdp_lattice &a, int n, int i, int j) | |
declares a field object that at each site as vector of n ixj matrices | |
void | allocate_mdp_nmatrix_field (mdp_lattice &a, int n, int i, int j) |
dynamically allocates a field object that at each site as vector of n ixj matrices | |
mdp_matrix | operator() (mdp_site x, int n) |
returns the n-th matrix stored at site x | |
mdp_complex & | operator() (mdp_site x, int n, int i, int j) |
returns the (i,j) component of the n-th matrix stored at site x | |
const mdp_complex & | operator() (mdp_site x, int n, int i, int j) const |
Public Attributes | |
uint | rows |
uint | columns |
uint | matrices |
uint | imax |
uint | imax2 |
field of vectors of matrices
Example:
/// int box[]={10,10,10}; /// mdp_lattice lattice(3,box); /// mdp_nmatrix_field h(lattice,10,3,3); /// mdp_site x(lattice); /// forallsites(x) /// for(int i=0; i<10; i++) /// h(x,i)=lattice.random(x).SU(3); ///
mdp_nmatrix_field::mdp_nmatrix_field | ( | ) | [inline] |
mdp_nmatrix_field::mdp_nmatrix_field | ( | mdp_nmatrix_field & | field | ) | [inline] |
mdp_nmatrix_field::mdp_nmatrix_field | ( | mdp_lattice & | a, | |
int | n, | |||
int | i, | |||
int | j | |||
) | [inline] |
declares a field object that at each site as vector of n ixj matrices
void mdp_nmatrix_field::allocate_mdp_nmatrix_field | ( | mdp_lattice & | a, | |
int | n, | |||
int | i, | |||
int | j | |||
) | [inline] |
dynamically allocates a field object that at each site as vector of n ixj matrices
const mdp_complex& mdp_nmatrix_field::operator() | ( | mdp_site | x, | |
int | n, | |||
int | i, | |||
int | j | |||
) | const [inline] |
mdp_complex& mdp_nmatrix_field::operator() | ( | mdp_site | x, | |
int | n, | |||
int | i, | |||
int | j | |||
) | [inline] |
returns the (i,j) component of the n-th matrix stored at site x
mdp_matrix mdp_nmatrix_field::operator() | ( | mdp_site | x, | |
int | n | |||
) | [inline] |
returns the n-th matrix stored at site x
Reimplemented from mdp_field< mdp_complex >.