BSMPT 3.0.7
BSMPT - Beyond the Standard Model Phase Transitions : A C++ package for the computation of the EWPT in BSM models
Loading...
Searching...
No Matches
utility.h File Reference
#include <BSMPT/config.h>
#include <algorithm>
#include <functional>
#include <gsl/gsl_integration.h>
#include <iostream>
#include <numeric>
#include <random>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  BSMPT
 This classes calculates the Bounce action of the potential with a set temperature.
 
namespace  BSMPT::ModelID
 operator << overload for the model parameter
 

Functions

bool BSMPT::StringStartsWith (const std::string &str, const std::string &prefix)
 StringStartsWith checks if str starts with prefix.
 
bool BSMPT::StringEndsWith (const std::string &str, const std::string &suffix)
 StringEndsWith tests if str ends with suffix.
 
int BSMPT::factorial (const int &a)
 factorial function
 
template<typename T >
std::vector< T > BSMPT::push_back (std::vector< T > &a, const std::vector< T > &b)
 push back vector into vector
 
template<typename T >
std::string BSMPT::vec_to_string (const std::vector< T > &vec)
 vector to_string
 
std::vector< std::string > BSMPT::split (const std::string &str, char delimiter)
 split string separated by delimiter into substrings
 
template<typename T >
std::ostream & BSMPT::operator<< (std::ostream &os, const std::vector< T > &vec)
 Overload to print out vectors with the << operator.
 
template<typename T >
std::vector< T > BSMPT::operator+ (const std::vector< T > &a, const std::vector< T > &b)
 vector addition
 
template<typename T >
std::vector< T > BSMPT::operator- (const std::vector< T > &a, const std::vector< T > &b)
 vector subtraction
 
template<typename T , typename T2 >
std::vector< T > BSMPT::operator* (const T2 &a, const std::vector< T > &b)
 multiplication of vector with scalar
 
template<typename T , typename T2 >
std::vector< T > BSMPT::operator/ (const std::vector< T > &a, const T2 &b)
 division of vector by scalar
 
template<typename T >
BSMPT::operator* (const std::vector< T > &a, const std::vector< T > &b)
 dot product of two vectors
 
template<typename T >
std::vector< T > BSMPT::operator* (const std::vector< std::vector< T > > &a, const std::vector< T > &b)
 multiplication of matrix with vector
 
template<typename T >
std::vector< T > BSMPT::flatten (std::vector< std::vector< T > > const &vec)
 flatten matrix
 
double BSMPT::L2NormVector (const std::vector< double > &vec)
 L2NormVector.
 
std::vector< std::vector< double > > BSMPT::Transpose (const std::vector< std::vector< double > > &A)
 Calculates the tranpose of a matrix.
 
double BSMPT::Li2 (const double &x)
 Dilogarithm of x.
 
double BSMPT::EllipIntSecond (const double &x)
 Incomplete elliptic integral of the second kind of x with a different parameterization and k^2 = -2.
 
std::ostream & BSMPT::operator<< (std::ostream &os, const ModelID::ModelIDs &Model)
 
std::string BSMPT::ModelIDToString (const ModelID::ModelIDs &Model)
 

Variables

const std::string BSMPT::sep = "\t"
 seperator used to write into output files