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}}};
Represents a 4x4 matrix of complex numbers.
Definition: QuEST.h:193
qreal real[4][4]
Definition: QuEST.h:194

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)

Field Documentation

◆ imag

qreal ComplexMatrix4::imag[4][4]

◆ real

qreal ComplexMatrix4::real[4][4]

Referenced by TEST_CASE().


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