herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
ColorFull::Poly_vec Class Reference

Class for containing vector of Polynomials, and functions for Polynomial vectors. More...

#include <Poly_vec.h>

Public Member Functions

 Poly_vec ()
 Default constructor, leaves pv empty.
 
 Poly_vec (poly_vec poly_v)
 Makes a Poly_vec of a poly_vec.
 
const Polynomialat (int i) const
 Returns the Polynomial at place i.
 
Polynomialat (int i)
 Returns the Polynomial at place i.
 
uint size () const
 Return the number of Polynomials in the vector, i.e., the size of the member pv. More...
 
void clear ()
 Erases the information in vector.
 
void append (Polynomial Poly)
 Appends a Polynomial to data member pv.
 
bool empty () const
 Is the vector empty?
 
void remove_CF ()
 Remove CF in the poly_vec member pv, i.e., replace CF by TR*Nc -TR/Nc. More...
 
void normal_order ()
 Normal order all Polynomials in the poly_vec member pv (uses the Polynomial.normal_order function.)
 
void simplify ()
 Simplifies all polynomials in the poly_vec member pv (uses the simplify member function in Polynomial). More...
 
void conjugate ()
 Conjugates the Poly_vec.
 
void read_in_Poly_vec (std::string filename)
 Reads in a Polynomial vector of form {Poly1, Poly2,...} to the member pv from the file filename. More...
 
void write_out_Poly_vec (std::string filename) const
 Writes out the vector to the file filename.
 

Public Attributes

poly_vec pv
 To actually contain the polynomial information.
 

Detailed Description

Class for containing vector of Polynomials, and functions for Polynomial vectors.

Definition at line 25 of file Poly_vec.h.

Member Function Documentation

◆ read_in_Poly_vec()

void ColorFull::Poly_vec::read_in_Poly_vec ( std::string  filename)

Reads in a Polynomial vector of form {Poly1, Poly2,...} to the member pv from the file filename.

Comments starting with # are allowed at the top of the file.

Referenced by empty().

◆ remove_CF()

void ColorFull::Poly_vec::remove_CF ( )

Remove CF in the poly_vec member pv, i.e., replace CF by TR*Nc -TR/Nc.

Referenced by empty().

◆ simplify()

void ColorFull::Poly_vec::simplify ( )

Simplifies all polynomials in the poly_vec member pv (uses the simplify member function in Polynomial).

Referenced by empty().

◆ size()

uint ColorFull::Poly_vec::size ( ) const
inline

Return the number of Polynomials in the vector, i.e., the size of the member pv.

Definition at line 47 of file Poly_vec.h.


The documentation for this class was generated from the following file: