ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
gsl::cpx_float Namespace Reference

The gsl::cpx_float namespace allows the gsl::complex_float static funtions to be called from a namespace and so allows the usual C++ convenience of using code like the following. More...

Functions

complex_float rect (float x, float y)
 C++ version of gsl_complex_float_rect(). More...
 
complex_float polar (float r, float theta)
 C++ version of gsl_complex_float_rect(). More...
 

Detailed Description

The gsl::cpx_float namespace allows the gsl::complex_float static funtions to be called from a namespace and so allows the usual C++ convenience of using code like the following.

using namespace gsl;
using namespace gsl::cpx_float;
complex_float z = rect( 3, 1 );
complex_float w = sin( z );
This class handles complex_float numbers.
The gsl::cpx_float namespace allows the gsl::complex_float static funtions to be called from a namesp...
complex_float rect(float x, float y)
C++ version of gsl_complex_float_rect().
complex sin(complex const &a)
C++ version of gsl_complex_sin().
Definition: complex.hpp:992
The gsl package creates an interface to the GNU Scientific Library for C++.
Definition: blas.hpp:34

Function Documentation

◆ polar()

complex_float gsl::cpx_float::polar ( float  r,
float  theta 
)
inline

C++ version of gsl_complex_float_rect().

Parameters
rThe magnitude
thetaThe argument
Returns
complex_float

Definition at line 376 of file complex_float.hpp.

References gsl::complex_float::polar().

◆ rect()

complex_float gsl::cpx_float::rect ( float  x,
float  y 
)
inline

C++ version of gsl_complex_float_rect().

Parameters
xReal part
yImaginary part
Returns
complex_float

Definition at line 369 of file complex_float.hpp.

References gsl::complex_float::rect().