Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
double_extensions.hpp File Reference

Provides bertini extensions to the double and complex<double> types. More...

#include <random>
#include <complex>
Include dependency graph for double_extensions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool bertini::isnan (std::complex< double > const &z)
 
std::complex< double > bertini::operator* (unsigned i, std::complex< double > z)
 Overload * for unsigned * complex<double>
 
dbl bertini::pow (const dbl &z, int power)
 
double bertini::RandReal ()
 Gets you a random real number between -1 and 1, fwiw.
 

Detailed Description

Provides bertini extensions to the double and complex<double> types.

Function Documentation

◆ isnan()

bool bertini::isnan ( std::complex< double > const & z)
inline

an overload of isnan, for std::complex<double>

◆ operator*()

std::complex< double > bertini::operator* ( unsigned i,
std::complex< double > z )
inline

Overload * for unsigned * complex<double>

◆ pow()

dbl bertini::pow ( const dbl & z,
int power )
inline

Compute +,- integral powers of a std::complex<double> number.

This function recursively calls itself if the power is negative, by computing the power on the inverse.

Note
This overload was removed from C++ in C++11, for some insane reason. Here it is, back in black.

◆ RandReal()

double bertini::RandReal ( )
inline

Gets you a random real number between -1 and 1, fwiw.