C++QEDCore  v2 Milestone 10
a framework for simulating open quantum dynamics – core
ComplexExtensions.h File Reference

Additional helpers for dcomp. More...

#include "core_config.h"
#include <complex>
#include <boost/serialization/complex.hpp>
+ Include dependency graph for ComplexExtensions.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef std::complex< double > dcomp
 Double-precision complex number. More...
 

Functions

const dcomp DCOMP_I (0, 1)
 Imaginary unit.
 
bool isNonZero (const dcomp &c)
 
bool hasRealPart (const dcomp &c)
 
bool hasImagPart (const dcomp &c)
 
bool absCompare (const dcomp &c1, const dcomp &c2)
 
bool realCompare (const dcomp &c1, const dcomp &c2)
 

Detailed Description

Additional helpers for dcomp.

Definition in file ComplexExtensions.h.

Typedef Documentation

typedef std::complex<double> dcomp

Double-precision complex number.

Even though it is a type, we name it this way because we would like it to closely resemble built-in types

Definition at line 18 of file ComplexExtensions.h.