gslcpp
Modern-C++ Wrapper for GSL
Public Types | Public Member Functions | List of all members
gsl::complex< long double > Struct Reference

Specialization of gsl::complex for long double. More...

#include <complex.hpp>

Inheritance diagram for gsl::complex< long double >:
[legend]
Collaboration diagram for gsl::complex< long double >:
[legend]

Public Types

using P = std::complex< long double >
 Type of parent.
 

Public Member Functions

 complex (gsl_complex_long_double const &z)
 Construct from gsl_complex. More...
 
 complex (P const &z)
 Construct from instance of parent's type. More...
 
 operator gsl_complex_long_double & ()
 Convert to gsl_complex. More...
 
 operator gsl_complex_long_double const & () const
 Convert to gsl_complex. More...
 

Detailed Description

Specialization of gsl::complex for long double.

Definition at line 70 of file complex.hpp.

Constructor & Destructor Documentation

◆ complex() [1/2]

gsl::complex< long double >::complex ( gsl_complex_long_double const &  z)
inline

Construct from gsl_complex.

Parameters
zReference to instance of gsl_complex.

Definition at line 76 of file complex.hpp.

76 : P(GSL_REAL(z), GSL_IMAG(z)) {}

◆ complex() [2/2]

gsl::complex< long double >::complex ( P const &  z)
inline

Construct from instance of parent's type.

Parameters
zReference to instance of parent's type.

Definition at line 80 of file complex.hpp.

80 : P(z) {}

Member Function Documentation

◆ operator gsl_complex_long_double &()

gsl::complex< long double >::operator gsl_complex_long_double & ( )
inline

Convert to gsl_complex.

Returns
Reference to this as gsl_complex.

Definition at line 84 of file complex.hpp.

84  {
85  return *(gsl_complex_long_double *)this;
86  }

◆ operator gsl_complex_long_double const &()

gsl::complex< long double >::operator gsl_complex_long_double const & ( ) const
inline

Convert to gsl_complex.

Returns
Reference to this as gsl_complex.

Definition at line 90 of file complex.hpp.

90  {
91  return *(gsl_complex_long_double const *)this;
92  }

The documentation for this struct was generated from the following file:
gsl::complex< long double >::P
std::complex< long double > P
Type of parent.
Definition: complex.hpp:71