VCTR
Loading...
Searching...
No Matches
vctr::SplitComplexExpression< RealExpression, ImagExpression > Struct Template Reference

An expression combining separate real and imaginary component expressions. More...

Public Types

using value_type = typename RealExpression::value_type
 The real valued type both component expressions produce.
 

Public Member Functions

constexpr RealExpression & real ()
 Returns the expression producing the real parts.
 
constexpr const RealExpression & real () const
 Returns the expression producing the real parts.
 
constexpr ImagExpression & imag ()
 Returns the expression producing the imaginary parts.
 
constexpr const ImagExpression & imag () const
 Returns the expression producing the imaginary parts.
 

Public Attributes

RealExpression realExpression
 The expression producing the real parts.
 
ImagExpression imagExpression
 The expression producing the imaginary parts.
 

Detailed Description

template<is::expression RealExpression, is::expression ImagExpression>
requires (std::same_as<typename RealExpression::value_type, typename ImagExpression::value_type>)
struct vctr::SplitComplexExpression< RealExpression, ImagExpression >

An expression combining separate real and imaginary component expressions.

Template Parameters
RealExpressionThe expression producing the real parts.
ImagExpressionThe expression producing the imaginary parts. Its value type must match RealExpression.

Member Typedef Documentation

◆ value_type

template<is::expression RealExpression, is::expression ImagExpression>
using vctr::SplitComplexExpression< RealExpression, ImagExpression >::value_type = typename RealExpression::value_type

The real valued type both component expressions produce.

Member Function Documentation

◆ imag() [1/2]

template<is::expression RealExpression, is::expression ImagExpression>
constexpr ImagExpression & vctr::SplitComplexExpression< RealExpression, ImagExpression >::imag ( )
inlineconstexpr

Returns the expression producing the imaginary parts.

◆ imag() [2/2]

template<is::expression RealExpression, is::expression ImagExpression>
constexpr const ImagExpression & vctr::SplitComplexExpression< RealExpression, ImagExpression >::imag ( ) const
inlineconstexpr

Returns the expression producing the imaginary parts.

◆ real() [1/2]

template<is::expression RealExpression, is::expression ImagExpression>
constexpr RealExpression & vctr::SplitComplexExpression< RealExpression, ImagExpression >::real ( )
inlineconstexpr

Returns the expression producing the real parts.

◆ real() [2/2]

template<is::expression RealExpression, is::expression ImagExpression>
constexpr const RealExpression & vctr::SplitComplexExpression< RealExpression, ImagExpression >::real ( ) const
inlineconstexpr

Returns the expression producing the real parts.

Member Data Documentation

◆ imagExpression

template<is::expression RealExpression, is::expression ImagExpression>
ImagExpression vctr::SplitComplexExpression< RealExpression, ImagExpression >::imagExpression

The expression producing the imaginary parts.

◆ realExpression

template<is::expression RealExpression, is::expression ImagExpression>
RealExpression vctr::SplitComplexExpression< RealExpression, ImagExpression >::realExpression

The expression producing the real parts.


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