mdp_nmatrix_field Class Reference

field of vectors of matrices More...

#include <mdp_nmatrix_field.h>

Inheritance diagram for mdp_nmatrix_field:
mdp_field< mdp_complex >

List of all members.

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_complexoperator() (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_complexoperator() (mdp_site x, int n, int i, int j) const

Public Attributes

uint rows
uint columns
uint matrices
uint imax
uint imax2

Detailed Description

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);
/// 

Constructor & Destructor Documentation

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


Member Function Documentation

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 >.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Generated on Wed Dec 23 14:03:15 2009 for fermiqcd by  doxygen 1.6.1