ComplexMatrix4 Struct Reference

Represents a 4x4 matrix of complex numbers. More...

#include <QuEST.h>

Data Fields

qreal imag [4][4]
 
qreal real [4][4]
 

Detailed Description

Represents a 4x4 matrix of complex numbers.

In C, a ComplexMatrix4 can be initialised by separately specifying the real and imaginary components as nested arrays. Note that in C99, a short row that ends with a 0 with be padded with 0.
For example,

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

specifies matrix

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

See also
Author
Balint Koczor
Tyson Jones (doc)

Definition at line 175 of file QuEST.h.

Field Documentation

◆ imag

qreal ComplexMatrix4::imag[4][4]

◆ real

qreal ComplexMatrix4::real[4][4]

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