herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
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.
 
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.
 
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).
 
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.
 
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.

Constructor & Destructor Documentation

◆ Poly_vec() [1/2]

ColorFull::Poly_vec::Poly_vec ( )
inline

Default constructor, leaves pv empty.

Definition at line 31 of file Poly_vec.h.

◆ Poly_vec() [2/2]

ColorFull::Poly_vec::Poly_vec ( poly_vec  poly_v)
inline

Makes a Poly_vec of a poly_vec.

Definition at line 34 of file Poly_vec.h.

References pv.

Member Function Documentation

◆ append()

void ColorFull::Poly_vec::append ( Polynomial  Poly)
inline

Appends a Polynomial to data member pv.

Definition at line 53 of file Poly_vec.h.

References pv.

◆ at() [1/2]

Polynomial & ColorFull::Poly_vec::at ( int  i)
inline

Returns the Polynomial at place i.

Definition at line 43 of file Poly_vec.h.

References pv.

◆ at() [2/2]

const Polynomial & ColorFull::Poly_vec::at ( int  i) const
inline

Returns the Polynomial at place i.

Definition at line 40 of file Poly_vec.h.

References pv.

◆ clear()

void ColorFull::Poly_vec::clear ( )
inline

Erases the information in vector.

Definition at line 50 of file Poly_vec.h.

References pv.

◆ empty()

bool ColorFull::Poly_vec::empty ( ) const
inline

Is the vector empty?

Definition at line 56 of file Poly_vec.h.

References pv.

◆ 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.

◆ 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.

References pv.

Member Data Documentation

◆ pv

poly_vec ColorFull::Poly_vec::pv

To actually contain the polynomial information.

Definition at line 37 of file Poly_vec.h.

Referenced by append(), at(), clear(), empty(), Poly_vec(), and size().


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