25 for (
int i = 0; i < 8; i++)
46 inline double get(
int i,
int j,
int k) {
return mat[(4*i + 2*j) + k]; }
95 for (
int i = 0; i < 8; i++) {
103 for (
int i = 0; i < 8; i++)
112 for (
int i = 0; i < 8; i++)
132 std::memcpy(
mat, temp,
sizeof(
double)*8);
139 for (
int i = 0; i < 8; i++)
178 for (
int i = 0; i < 8; i++)
186 for (
int i = 0; i < 8; i++)
SU2 & operator *=(SU2 B)
Definition: su2.h:119
A complex number class, consisting of t.
Definition: complex.h:16
SU2 inv()
SU2::inv.
Definition: su2.h:154
SU2 & operator-=(SU2 B)
Definition: su2.h:110
SU2 & operator=(const SU2 &B)
Definition: su2.h:90
void zeros()
Definition: su2.h:176
void print()
Definition: su2.cpp:24
SU2 operator+(SU2 A, SU2 B)
Definition: su2.h:62
SU2()
Definition: su2.h:24
double get(int i, int j, int k)
Definition: su2.h:46
SU2 operator *(SU2 A, SU2 B)
Definition: su2.h:74
SU2 conjugate()
Definition: su2.cpp:64
~SU2()
Definition: su2.h:31
double & operator[](int i)
Definition: su2.h:47
void identity()
Definition: su2.h:184
double mat[8]
Definition: su2.h:33
void setComplex(complex w, int i)
SU2::setComplex.
Definition: su2.cpp:10
SU2 transpose()
Definition: su2.cpp:45
double normSquared(int i)
Definition: su2.cpp:16
SU2 & operator+=(SU2 B)
Definition: su2.h:101
Class for holding matrices.
Definition: su2.h:21
SU2 operator-(SU2 A, SU2 B)
Definition: su2.h:68