Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

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


The documentation for this class was generated from the following file:
Generated on Sun Feb 27 15:12:26 2005 by  doxygen 1.4.1