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

Specialization of gsl::complex for float. More...

#include <complex.hpp>

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

Public Types

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

Public Member Functions

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

Detailed Description

Specialization of gsl::complex for float.

Definition at line 45 of file complex.hpp.

Constructor & Destructor Documentation

◆ complex() [1/2]

gsl::complex< float >::complex ( gsl_complex_float const &  z)
inline

Construct from gsl_complex.

Parameters
zReference to instance of gsl_complex.

Definition at line 51 of file complex.hpp.

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

◆ complex() [2/2]

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

Construct from instance of parent's type.

Parameters
zReference to instance of parent's type.

Definition at line 55 of file complex.hpp.

55 : P(z) {}

Member Function Documentation

◆ operator gsl_complex_float &()

gsl::complex< float >::operator gsl_complex_float & ( )
inline

Convert to gsl_complex.

Returns
Reference to this as gsl_complex.

Definition at line 59 of file complex.hpp.

59 { return *(gsl_complex_float *)this; }

◆ operator gsl_complex_float const &()

gsl::complex< float >::operator gsl_complex_float const & ( ) const
inline

Convert to gsl_complex.

Returns
Reference to this as gsl_complex.

Definition at line 63 of file complex.hpp.

63  {
64  return *(gsl_complex_float const *)this;
65  }

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