DPC++ Runtime
Runtime libraries for oneAPI DPC++
__spv::complex_float Struct Reference

#include <CL/__spirv/spirv_types.hpp>

Collaboration diagram for __spv::complex_float:

Public Member Functions

 complex_float ()=default
 
 complex_float (std::complex< float > x)
 
 operator std::complex< float > ()
 

Public Attributes

float real
 
float imag
 

Detailed Description

Definition at line 135 of file spirv_types.hpp.

Constructor & Destructor Documentation

◆ complex_float() [1/2]

__spv::complex_float::complex_float ( )
default

◆ complex_float() [2/2]

__spv::complex_float::complex_float ( std::complex< float >  x)
inline

Definition at line 137 of file spirv_types.hpp.

Member Function Documentation

◆ operator std::complex< float >()

__spv::complex_float::operator std::complex< float > ( )
inline

Definition at line 138 of file spirv_types.hpp.

References imag, and real.

Member Data Documentation

◆ imag

float __spv::complex_float::imag

Definition at line 139 of file spirv_types.hpp.

Referenced by operator std::complex< float >().

◆ real

float __spv::complex_float::real

Definition at line 139 of file spirv_types.hpp.

Referenced by operator std::complex< float >().


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