GLAC  1.0
Public Member Functions | Data Fields
SU2 Class Reference

Class for holding \(\mathrm{SU}(2)\) matrices. More...

#include <su2.h>

Public Member Functions

 SU2 ()
 
 ~SU2 ()
 
void print ()
 
void zeros ()
 
void identity ()
 
void setComplex (complex w, int i)
 SU2::setComplex. More...
 
double normSquared (int i)
 
SU2 transpose ()
 
SU2 conjugate ()
 
SU2 inv ()
 SU2::inv. More...
 
double get (int i, int j, int k)
 
double & operator[] (int i)
 
SU2operator= (const SU2 &B)
 
SU2operator+= (SU2 B)
 
SU2operator-= (SU2 B)
 
SU2operator *= (SU2 B)
 
SU2operator *= (double B)
 

Data Fields

double mat [8]
 

Detailed Description

Class for holding \(\mathrm{SU}(2)\) matrices.

Operations have been overloaded for ease of use.

Author
Mathias M. Vege
Version
1.0
Date
2017-2019

Constructor & Destructor Documentation

◆ SU2()

SU2::SU2 ( )
inline

◆ ~SU2()

SU2::~SU2 ( )
inline

Member Function Documentation

◆ conjugate()

SU2 SU2::conjugate ( )

◆ get()

double SU2::get ( int  i,
int  j,
int  k 
)
inline

◆ identity()

void SU2::identity ( )
inline

◆ inv()

SU2 SU2::inv ( )
inline

SU2::inv.

Returns
a copy of the inverse of itself.

◆ normSquared()

double SU2::normSquared ( int  i)

◆ operator *=() [1/2]

SU2 & SU2::operator *= ( SU2  B)
inline

◆ operator *=() [2/2]

SU2 & SU2::operator *= ( double  B)
inline

◆ operator+=()

SU2 & SU2::operator+= ( SU2  B)
inline

◆ operator-=()

SU2 & SU2::operator-= ( SU2  B)
inline

◆ operator=()

SU2 & SU2::operator= ( const SU2 B)
inline

◆ operator[]()

double& SU2::operator[] ( int  i)
inline

◆ print()

void SU2::print ( )

◆ setComplex()

void SU2::setComplex ( complex  w,
int  i 
)

SU2::setComplex.

Parameters
wcomplex number
imatrix position(contigious) to set w as.
Here is the caller graph for this function:

◆ transpose()

SU2 SU2::transpose ( )

◆ zeros()

void SU2::zeros ( )
inline
Here is the caller graph for this function:

Field Documentation

◆ mat

double SU2::mat[8]

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