MFEM v4.9.0
Finite element discretization library
Loading...
Searching...
No Matches
Complex Struct Reference

#include <schrodinger_flow.hpp>

Inheritance diagram for Complex:
[legend]
Collaboration diagram for Complex:
[legend]

Public Member Functions

MFEM_HOST_DEVICE Complex ()=default
 
MFEM_HOST_DEVICE Complex (real_t r)
 
MFEM_HOST_DEVICE Complex (real_t r, real_t i)
 
MFEM_HOST_DEVICE real_t real () const
 
MFEM_HOST_DEVICE void real (real_t r)
 
MFEM_HOST_DEVICE real_t imag () const
 
MFEM_HOST_DEVICE void imag (real_t i)
 
template<typename U >
MFEM_HOST_DEVICE Complexoperator*= (const U &z)
 
template<typename U >
MFEM_HOST_DEVICE Complexoperator/= (const U &z)
 

Detailed Description

Definition at line 155 of file schrodinger_flow.hpp.

Constructor & Destructor Documentation

◆ Complex() [1/3]

MFEM_HOST_DEVICE Complex::Complex ( )
default

◆ Complex() [2/3]

MFEM_HOST_DEVICE Complex::Complex ( real_t r)
inline

Definition at line 158 of file schrodinger_flow.hpp.

◆ Complex() [3/3]

MFEM_HOST_DEVICE Complex::Complex ( real_t r,
real_t i )
inline

Definition at line 159 of file schrodinger_flow.hpp.

Member Function Documentation

◆ imag() [1/2]

MFEM_HOST_DEVICE real_t Complex::imag ( ) const
inline

Definition at line 162 of file schrodinger_flow.hpp.

◆ imag() [2/2]

MFEM_HOST_DEVICE void Complex::imag ( real_t i)
inline

Definition at line 163 of file schrodinger_flow.hpp.

◆ operator*=()

template<typename U >
MFEM_HOST_DEVICE Complex & Complex::operator*= ( const U & z)
inline

Definition at line 166 of file schrodinger_flow.hpp.

◆ operator/=()

template<typename U >
MFEM_HOST_DEVICE Complex & Complex::operator/= ( const U & z)
inline

Definition at line 172 of file schrodinger_flow.hpp.

◆ real() [1/2]

MFEM_HOST_DEVICE real_t Complex::real ( ) const
inline

Definition at line 160 of file schrodinger_flow.hpp.

◆ real() [2/2]

MFEM_HOST_DEVICE void Complex::real ( real_t r)
inline

Definition at line 161 of file schrodinger_flow.hpp.


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