Bridge++  Ver. 2.0.2
SU_N::Mat_SU_N Class Reference

#include <mat_SU_N.h>

Public Member Functions

 Mat_SU_N (int Nc, double r=0.0)
 
Mat_SU_Ndag ()
 
Mat_SU_Nht ()
 
Mat_SU_Nah ()
 antihermitian More...
 
Mat_SU_Nat ()
 antihermitian traceless More...
 
Mat_SU_Nunit ()
 
Mat_SU_Nzero ()
 
Mat_SU_NxI ()
 
Mat_SU_Nreunit ()
 
Mat_SU_Nreunit_SU3 ()
 
Mat_SU_Nreunit_SU2 ()
 
Mat_SU_Nreunit_general ()
 
Mat_SU_Nset_random (RandomNumbers *rand)
 
Mat_SU_Nset_random_SU3 (RandomNumbers *)
 
Mat_SU_Nset_random_SU2 (RandomNumbers *)
 
Mat_SU_Nset_random_general (RandomNumbers *)
 
int nc () const
 
Mat_SU_Noperator- ()
 
Mat_SU_Noperator= (const double &)
 
Mat_SU_Noperator+= (const Mat_SU_N &)
 
Mat_SU_Noperator+= (const double &)
 
Mat_SU_Noperator-= (const Mat_SU_N &)
 
Mat_SU_Noperator-= (const double &)
 
Mat_SU_Noperator*= (const Mat_SU_N &)
 
Mat_SU_Noperator*= (const double &)
 
Mat_SU_Noperator/= (const double &)
 
int size () const
 
double r (int c) const
 
double i (int c) const
 
dcomplex c (int c) const
 
double r (int c1, int c2) const
 
double i (int c1, int c2) const
 
dcomplex c (int c1, int c2) const
 
void set_r (int c, const double &re)
 
void set_i (int c, const double &im)
 
void set_c (int c, const dcomplex &z)
 
void set_r (int c1, int c2, const double &re)
 
void set_i (int c1, int c2, const double &im)
 
void set (int c, const double &re, const double &im)
 
void set (int c1, int c2, const double &re, const double &im)
 
void set (int c, const dcomplex &z)
 
void set (int c1, int c2, const dcomplex &z)
 
void add (int c, const double &re, const double &im)
 
void add (int c1, int c2, const double &re, const double &im)
 
void add (int c, const dcomplex &z)
 
void add (int c1, int c2, const dcomplex &z)
 
double norm2 ()
 
void mult_nn (const Mat_SU_N &u1, const Mat_SU_N &u2)
 
void multadd_nn (const Mat_SU_N &u1, const Mat_SU_N &u2)
 
void mult_nd (const Mat_SU_N &u1, const Mat_SU_N &u2)
 
void multadd_nd (const Mat_SU_N &u1, const Mat_SU_N &u2)
 
void mult_dn (const Mat_SU_N &u1, const Mat_SU_N &u2)
 
void multadd_dn (const Mat_SU_N &u1, const Mat_SU_N &u2)
 
void zcopy (double re, double im, const Mat_SU_N &v)
 
void zcopy (dcomplex z, const Mat_SU_N &v)
 
void zaxpy (double re, double im, const Mat_SU_N &v)
 
void zaxpy (dcomplex z, const Mat_SU_N &v)
 

Private Attributes

int m_Nc
 
std::valarray< double > va
 
Mat_SU_N &(Mat_SU_N::* m_reunit )()
 
Mat_SU_N &(SU_N::Mat_SU_N::* m_set_random )(RandomNumbers *)
 pointer to reunitalization. More...
 

Detailed Description

SU(N) matrix operations. Reunitarization is generalized to general value of Nc. Setting random matrix is not for SU(2) which is to be implemented. [07 May 2014 H.Matsufuru] Add complex args and returns [08 Aug 2020 Y.Namekawa]

Definition at line 36 of file mat_SU_N.h.

Constructor & Destructor Documentation

◆ Mat_SU_N()

SU_N::Mat_SU_N::Mat_SU_N ( int  Nc,
double  r = 0.0 
)
inlineexplicit

Definition at line 47 of file mat_SU_N.h.

Member Function Documentation

◆ add() [1/4]

void SU_N::Mat_SU_N::add ( int  c,
const dcomplex &  z 
)
inline

Definition at line 170 of file mat_SU_N.h.

◆ add() [2/4]

void SU_N::Mat_SU_N::add ( int  c,
const double &  re,
const double &  im 
)
inline

Definition at line 159 of file mat_SU_N.h.

◆ add() [3/4]

void SU_N::Mat_SU_N::add ( int  c1,
int  c2,
const dcomplex &  z 
)
inline

Definition at line 176 of file mat_SU_N.h.

◆ add() [4/4]

void SU_N::Mat_SU_N::add ( int  c1,
int  c2,
const double &  re,
const double &  im 
)
inline

Definition at line 165 of file mat_SU_N.h.

◆ ah()

Mat_SU_N & SU_N::Mat_SU_N::ah ( )
inline

antihermitian

Definition at line 403 of file mat_SU_N.h.

◆ at()

Mat_SU_N & SU_N::Mat_SU_N::at ( )
inline

antihermitian traceless

Definition at line 375 of file mat_SU_N.h.

◆ c() [1/2]

dcomplex SU_N::Mat_SU_N::c ( int  c) const
inline

Definition at line 117 of file mat_SU_N.h.

◆ c() [2/2]

dcomplex SU_N::Mat_SU_N::c ( int  c1,
int  c2 
) const
inline

Definition at line 121 of file mat_SU_N.h.

◆ dag()

Mat_SU_N & SU_N::Mat_SU_N::dag ( )
inline

Definition at line 329 of file mat_SU_N.h.

◆ ht()

Mat_SU_N & SU_N::Mat_SU_N::ht ( )
inline

Definition at line 347 of file mat_SU_N.h.

◆ i() [1/2]

double SU_N::Mat_SU_N::i ( int  c) const
inline

Definition at line 116 of file mat_SU_N.h.

◆ i() [2/2]

double SU_N::Mat_SU_N::i ( int  c1,
int  c2 
) const
inline

Definition at line 120 of file mat_SU_N.h.

◆ mult_dn()

void SU_N::Mat_SU_N::mult_dn ( const Mat_SU_N u1,
const Mat_SU_N u2 
)
inline

Definition at line 257 of file mat_SU_N.h.

◆ mult_nd()

void SU_N::Mat_SU_N::mult_nd ( const Mat_SU_N u1,
const Mat_SU_N u2 
)
inline

Definition at line 223 of file mat_SU_N.h.

◆ mult_nn()

void SU_N::Mat_SU_N::mult_nn ( const Mat_SU_N u1,
const Mat_SU_N u2 
)
inline

Definition at line 189 of file mat_SU_N.h.

◆ multadd_dn()

void SU_N::Mat_SU_N::multadd_dn ( const Mat_SU_N u1,
const Mat_SU_N u2 
)
inline

Definition at line 275 of file mat_SU_N.h.

◆ multadd_nd()

void SU_N::Mat_SU_N::multadd_nd ( const Mat_SU_N u1,
const Mat_SU_N u2 
)
inline

Definition at line 241 of file mat_SU_N.h.

◆ multadd_nn()

void SU_N::Mat_SU_N::multadd_nn ( const Mat_SU_N u1,
const Mat_SU_N u2 
)
inline

Definition at line 207 of file mat_SU_N.h.

◆ nc()

int SU_N::Mat_SU_N::nc ( ) const
inline

Definition at line 87 of file mat_SU_N.h.

◆ norm2()

double SU_N::Mat_SU_N::norm2 ( )
inline

Definition at line 181 of file mat_SU_N.h.

◆ operator*=() [1/2]

Mat_SU_N & SU_N::Mat_SU_N::operator*= ( const double &  rhs)
inline

Definition at line 510 of file mat_SU_N.h.

◆ operator*=() [2/2]

Mat_SU_N & SU_N::Mat_SU_N::operator*= ( const Mat_SU_N rhs)
inline

Definition at line 489 of file mat_SU_N.h.

◆ operator+=() [1/2]

Mat_SU_N & SU_N::Mat_SU_N::operator+= ( const double &  rhs)
inline

Definition at line 475 of file mat_SU_N.h.

◆ operator+=() [2/2]

Mat_SU_N & SU_N::Mat_SU_N::operator+= ( const Mat_SU_N rhs)
inline

Definition at line 454 of file mat_SU_N.h.

◆ operator-()

Mat_SU_N & SU_N::Mat_SU_N::operator- ( )
inline

Definition at line 447 of file mat_SU_N.h.

◆ operator-=() [1/2]

Mat_SU_N & SU_N::Mat_SU_N::operator-= ( const double &  rhs)
inline

Definition at line 482 of file mat_SU_N.h.

◆ operator-=() [2/2]

Mat_SU_N & SU_N::Mat_SU_N::operator-= ( const Mat_SU_N rhs)
inline

Definition at line 461 of file mat_SU_N.h.

◆ operator/=()

Mat_SU_N & SU_N::Mat_SU_N::operator/= ( const double &  rhs)
inline

Definition at line 527 of file mat_SU_N.h.

◆ operator=()

Mat_SU_N & SU_N::Mat_SU_N::operator= ( const double &  rhs)
inline

Definition at line 468 of file mat_SU_N.h.

◆ r() [1/2]

double SU_N::Mat_SU_N::r ( int  c) const
inline

Definition at line 115 of file mat_SU_N.h.

◆ r() [2/2]

double SU_N::Mat_SU_N::r ( int  c1,
int  c2 
) const
inline

Definition at line 119 of file mat_SU_N.h.

◆ reunit()

Mat_SU_N& SU_N::Mat_SU_N::reunit ( )
inline

Definition at line 72 of file mat_SU_N.h.

◆ reunit_general()

Mat_SU_N & Mat_SU_N::reunit_general ( )

Definition at line 117 of file mat_SU_N.cpp.

◆ reunit_SU2()

Mat_SU_N & Mat_SU_N::reunit_SU2 ( )

Definition at line 91 of file mat_SU_N.cpp.

◆ reunit_SU3()

Mat_SU_N & Mat_SU_N::reunit_SU3 ( )

Definition at line 18 of file mat_SU_N.cpp.

◆ set() [1/4]

void SU_N::Mat_SU_N::set ( int  c,
const dcomplex &  z 
)
inline

Definition at line 148 of file mat_SU_N.h.

◆ set() [2/4]

void SU_N::Mat_SU_N::set ( int  c,
const double &  re,
const double &  im 
)
inline

Definition at line 137 of file mat_SU_N.h.

◆ set() [3/4]

void SU_N::Mat_SU_N::set ( int  c1,
int  c2,
const dcomplex &  z 
)
inline

Definition at line 154 of file mat_SU_N.h.

◆ set() [4/4]

void SU_N::Mat_SU_N::set ( int  c1,
int  c2,
const double &  re,
const double &  im 
)
inline

Definition at line 143 of file mat_SU_N.h.

◆ set_c()

void SU_N::Mat_SU_N::set_c ( int  c,
const dcomplex &  z 
)
inline

Definition at line 125 of file mat_SU_N.h.

◆ set_i() [1/2]

void SU_N::Mat_SU_N::set_i ( int  c,
const double &  im 
)
inline

Definition at line 124 of file mat_SU_N.h.

◆ set_i() [2/2]

void SU_N::Mat_SU_N::set_i ( int  c1,
int  c2,
const double &  im 
)
inline

Definition at line 132 of file mat_SU_N.h.

◆ set_r() [1/2]

void SU_N::Mat_SU_N::set_r ( int  c,
const double &  re 
)
inline

Definition at line 123 of file mat_SU_N.h.

◆ set_r() [2/2]

void SU_N::Mat_SU_N::set_r ( int  c1,
int  c2,
const double &  re 
)
inline

Definition at line 127 of file mat_SU_N.h.

◆ set_random()

Mat_SU_N& SU_N::Mat_SU_N::set_random ( RandomNumbers rand)
inline

Definition at line 77 of file mat_SU_N.h.

◆ set_random_general()

Mat_SU_N & Mat_SU_N::set_random_general ( RandomNumbers rand)

Definition at line 196 of file mat_SU_N.cpp.

◆ set_random_SU2()

Mat_SU_N & Mat_SU_N::set_random_SU2 ( RandomNumbers rand)

Definition at line 186 of file mat_SU_N.cpp.

◆ set_random_SU3()

Mat_SU_N & Mat_SU_N::set_random_SU3 ( RandomNumbers rand)

Definition at line 148 of file mat_SU_N.cpp.

◆ size()

int SU_N::Mat_SU_N::size ( ) const
inline

Definition at line 114 of file mat_SU_N.h.

◆ unit()

Mat_SU_N & SU_N::Mat_SU_N::unit ( )
inline

Definition at line 419 of file mat_SU_N.h.

◆ xI()

Mat_SU_N & SU_N::Mat_SU_N::xI ( )
inline

Definition at line 436 of file mat_SU_N.h.

◆ zaxpy() [1/2]

void SU_N::Mat_SU_N::zaxpy ( dcomplex  z,
const Mat_SU_N v 
)
inline

Definition at line 317 of file mat_SU_N.h.

◆ zaxpy() [2/2]

void SU_N::Mat_SU_N::zaxpy ( double  re,
double  im,
const Mat_SU_N v 
)
inline

Definition at line 309 of file mat_SU_N.h.

◆ zcopy() [1/2]

void SU_N::Mat_SU_N::zcopy ( dcomplex  z,
const Mat_SU_N v 
)
inline

Definition at line 299 of file mat_SU_N.h.

◆ zcopy() [2/2]

void SU_N::Mat_SU_N::zcopy ( double  re,
double  im,
const Mat_SU_N v 
)
inline

Definition at line 291 of file mat_SU_N.h.

◆ zero()

Mat_SU_N & SU_N::Mat_SU_N::zero ( )
inline

Definition at line 429 of file mat_SU_N.h.

Member Data Documentation

◆ m_Nc

int SU_N::Mat_SU_N::m_Nc
private

Definition at line 38 of file mat_SU_N.h.

◆ m_reunit

Mat_SU_N&(Mat_SU_N::* SU_N::Mat_SU_N::m_reunit) ()
private

Definition at line 40 of file mat_SU_N.h.

◆ m_set_random

Mat_SU_N&(SU_N::Mat_SU_N::* SU_N::Mat_SU_N::m_set_random) (RandomNumbers *)
private

pointer to reunitalization.

pointer to random matrix setting.

Definition at line 41 of file mat_SU_N.h.

◆ va

std::valarray<double> SU_N::Mat_SU_N::va
private

Definition at line 39 of file mat_SU_N.h.


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