SpECTRE
v2024.03.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 nonowning, meaning it just has a pointer to an array.
Only basic mathematical operations are supported with ComplexModalVector
s. ComplexModalVector
s may be added or subtracted and may be added or subtracted with ModalVector
s, and the following unary operations are supported:
ModalVector
)ModalVector
)Also multiplication is supported with std::complex<double>
s or doubles and ComplexModalVector
s, and ComplexModalVector
s can be divided by std::complex<double>
s or double
s. Multiplication is supported with ComplexDiagonalModalOperator
s and ComplexModalVector
s.