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}}};
Represents a 2x2 matrix of complex numbers.
Definition: QuEST.h:155
qreal real[2][2]
Definition: QuEST.h:156

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)

Field Documentation

◆ imag

qreal ComplexMatrix2::imag[2][2]

◆ real

qreal ComplexMatrix2::real[2][2]

Referenced by TEST_CASE().


The documentation for this struct was generated from the following file: