ComplexMatrix2 Struct Reference

Represents a 2x2 matrix of complex numbers. More...

#include <QuEST.h>

Data Fields

qreal imag [2][2]
 
qreal real [2][2]
 

Detailed Description

Represents a 2x2 matrix of complex numbers.

In C, a ComplexMatrix2 can be initialised by separately specifying the real and imaginary components as nested arrays.
For example,

.real = {{1,2},
{3,4}},
.imag = {{5,6},
{7, 8}}};

specifies matrix

\[ m = \begin{pmatrix} 1 + 5\,i & 2+6\,i \\ 3 + 7\,i & 4+ 8\,i \end{pmatrix} \]

See also
Author
Balint Koczor
Tyson Jones (doc)

Definition at line 137 of file QuEST.h.

Field Documentation

◆ imag

◆ real


The documentation for this struct was generated from the following file:
qreal real[2][2]
Definition: QuEST.h:139
Represents a 2x2 matrix of complex numbers.
Definition: QuEST.h:137