Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
double_extensions.hpp File Reference

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

#include <random>
#include "bertini2/records/draw_functions.hpp"
#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.

Namespaces

namespace  bertini

Typedefs

using bertini::real_dbl = double
 The double-precision real number type.
using bertini::complex_dbl = std::complex<double>
 The double-precision complex number type.

Functions

std::mt19937 & bertini::ThreadEngine ()
 Returns this thread's canonical mt19937 engine.
std::complex< double > bertini::operator* (unsigned i, std::complex< double > z)
 Overload * for unsigned * complex<double>.
bool bertini::isnan (std::complex< double > const &z)
 an overload of isnan, for std::complex<double>
double bertini::RandReal ()
 Gets you a random real number between -1 and 1, fwiw.
complex_dbl bertini::pow (const complex_dbl &z, int power)
 Compute +,- integral powers of a std::complex<double> number.

Detailed Description

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