OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
gsl_complex Struct Reference

Complex number stored as \((\Re, \Im)\). More...

#include <GSLComplex.h>

Collaboration diagram for gsl_complex:
Collaboration graph

Public Member Functions

 gsl_complex ()
 
 gsl_complex (double r, double i)
 
 gsl_complex (const std::complex< double > &c)
 
 operator std::complex< double > () const
 
double real () const
 
double imag () const
 

Public Attributes

double dat [2]
 

Detailed Description

Complex number stored as \((\Re, \Im)\).

See also
Documentation on https://www.gnu.org/software/gsl/doc/html/complex.htm
Implementation on https://www.gnu.org/software/gsl/

Definition at line 27 of file GSLComplex.h.

Constructor & Destructor Documentation

◆ gsl_complex() [1/3]

gsl_complex::gsl_complex ( )
inline

Definition at line 30 of file GSLComplex.h.

◆ gsl_complex() [2/3]

gsl_complex::gsl_complex ( double  r,
double  i 
)
inline

Definition at line 31 of file GSLComplex.h.

◆ gsl_complex() [3/3]

gsl_complex::gsl_complex ( const std::complex< double > &  c)
inline

Definition at line 32 of file GSLComplex.h.

Member Function Documentation

◆ imag()

double gsl_complex::imag ( ) const
inline

Definition at line 37 of file GSLComplex.h.

References dat.

◆ operator std::complex< double >()

gsl_complex::operator std::complex< double > ( ) const
inline

Definition at line 34 of file GSLComplex.h.

References dat.

◆ real()

double gsl_complex::real ( ) const
inline

Definition at line 36 of file GSLComplex.h.

References dat.

Member Data Documentation

◆ dat


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