TBCI Numerical high perf. C++ Library 2.8.0
std_cplx.h File Reference

Wrapper for C++ std library complex type plus compatibility features. More...

#include "tbci/basics.h"
#include <complex>
Include dependency graph for std_cplx.h:

Go to the source code of this file.

Macros

#define CPLX(t)
#define CPLXR(t, a, r)
#define CPLXRI(t, a, r, i)
#define CPLXC(t, a, c)
#define CPLXVRI(t, r, i)

Functions

template<typename T>
NAMESPACE_TBCI double fabssqr (const CPLX__ complex< T > &a)
template<typename T>
NAMESPACE_END NAMESPACE_CSTD double fabs (const CPLX__ complex< T > &a)
template<typename T>
NAMESPACE_CSTD_END NAMESPACE_CPLX bool operator> (const CPLX__ complex< T > &a, const CPLX__ complex< T > &b)
 defined(NO_NS)
template<typename T>
bool operator>= (const CPLX__ complex< T > &a, const CPLX__ complex< T > &b)
template<typename T>
bool operator< (const CPLX__ complex< T > &a, const CPLX__ complex< T > &b)
template<typename T>
bool operator<= (const CPLX__ complex< T > &a, const CPLX__ complex< T > &b)
NAMESPACE_CPLX_END NAMESPACE_TBCI NAMESPACE_END NAMESPACE_TBCI SPEC_TBCI_TRAITS_LOOP_COPY (CPLX__ complex< float >)
 SPEC_TBCI_TRAITS_LOOP_COPY (CPLX__ complex< double >)
 SPEC_TBCI_TRAITS_ALWAYS_COPY (CPLX__ complex< float > *)
 SPEC_TBCI_TRAITS_ALWAYS_COPY (CPLX__ complex< double > *)

Detailed Description

Wrapper for C++ std library complex type plus compatibility features.

Definition in file std_cplx.h.

Macro Definition Documentation

◆ CPLX

#define CPLX ( t)
Value:

Definition at line 23 of file std_cplx.h.

◆ CPLXC

#define CPLXC ( t,
a,
c )
Value:
return c
Definition f_matrix.h:760
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 26 of file std_cplx.h.

◆ CPLXR

#define CPLXR ( t,
a,
r )
Value:

Definition at line 24 of file std_cplx.h.

◆ CPLXRI

#define CPLXRI ( t,
a,
r,
i )
Value:
int i
Definition LM_fit.h:71

Definition at line 25 of file std_cplx.h.

◆ CPLXVRI

#define CPLXVRI ( t,
r,
i )
Value:

Definition at line 27 of file std_cplx.h.

Function Documentation

◆ fabs()

template<typename T>
NAMESPACE_END NAMESPACE_CSTD double fabs ( const CPLX__ complex< T > & a)
inline

Definition at line 47 of file std_cplx.h.

References a, complex, fabs(), fabssqr(), GLBL__, MATH__, sqrt(), and TBCI__.

Referenced by operator<(), operator<=(), operator>(), and operator>=().

◆ fabssqr()

template<typename T>
NAMESPACE_TBCI double fabssqr ( const CPLX__ complex< T > & a)
inline

Definition at line 38 of file std_cplx.h.

References a, complex, and fabssqr().

◆ operator<()

template<typename T>
bool operator< ( const CPLX__ complex< T > & a,
const CPLX__ complex< T > & b )
inline

Definition at line 118 of file std_cplx.h.

References a, b, complex, fabs(), and MATH__.

◆ operator<=()

template<typename T>
bool operator<= ( const CPLX__ complex< T > & a,
const CPLX__ complex< T > & b )
inline

Definition at line 123 of file std_cplx.h.

References a, b, complex, fabs(), and MATH__.

◆ operator>()

template<typename T>
NAMESPACE_CSTD_END NAMESPACE_CPLX bool operator> ( const CPLX__ complex< T > & a,
const CPLX__ complex< T > & b )
inline

defined(NO_NS)

Larger/Smaller is not mathematically defined for complex numbers; for convenience we provide these operators, focusing just on the magnitude.

Definition at line 108 of file std_cplx.h.

References a, b, complex, fabs(), and MATH__.

◆ operator>=()

template<typename T>
bool operator>= ( const CPLX__ complex< T > & a,
const CPLX__ complex< T > & b )
inline

Definition at line 113 of file std_cplx.h.

References a, b, complex, fabs(), and MATH__.

◆ SPEC_TBCI_TRAITS_ALWAYS_COPY() [1/2]

SPEC_TBCI_TRAITS_ALWAYS_COPY ( CPLX__ complex< double > * )

References complex, and NAMESPACE_END.

◆ SPEC_TBCI_TRAITS_ALWAYS_COPY() [2/2]

SPEC_TBCI_TRAITS_ALWAYS_COPY ( CPLX__ complex< float > * )

References complex.

◆ SPEC_TBCI_TRAITS_LOOP_COPY() [1/2]

SPEC_TBCI_TRAITS_LOOP_COPY ( CPLX__ complex< double > )

References complex.

◆ SPEC_TBCI_TRAITS_LOOP_COPY() [2/2]

References complex.