|
SpECTRE
v2025.08.19
|
A class for storing complex spectral coefficients on a spectral grid. More...
#include <ComplexModalVector.hpp>
Public Types | |
| using | BaseType = VectorImpl< std::complex< double >, ComplexModalVector > |
Public Member Functions | |
| ComplexModalVector (const ComplexModalVector &)=default | |
| ComplexModalVector (ComplexModalVector &&)=default | |
| ComplexModalVector & | operator= (const ComplexModalVector &)=default |
| ComplexModalVector & | operator= (ComplexModalVector &&)=default |
A class for storing complex spectral coefficients on a spectral grid.
A ComplexModalVector holds an array of spectral coefficients represented as std::complex<double>s, and can be either owning (the array is deleted when the ComplexModalVector goes out of scope) or non-owning, meaning it just has a pointer to an array.
Only basic mathematical operations are supported with ComplexModalVectors. ComplexModalVectors may be added or subtracted and may be added or subtracted with ModalVectors, and the following unary operations are supported:
ModalVector)ModalVector)Also multiplication is supported with std::complex<double>s or doubles and ComplexModalVectors, and ComplexModalVectors can be divided by std::complex<double>s or doubles. Multiplication is supported with ComplexDiagonalModalOperators and ComplexModalVectors.