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

Class for containing a Polynomial matrix, and functions for Polynomial matrices. More...

#include <Poly_matr.h>

Public Member Functions

 Poly_matr ()
 Default constructor, leaves pm empty.
 
const Poly_vecat (int i) const
 Returns the Poly_vec at place i.
 
Poly_vecat (int i)
 Returns the Poly_vec at place i.
 
Polynomialat (int i, int j)
 Returns the matrix element at i, j.
 
const Polynomialat (int i, int j) const
 Returns the matrix element at i, j.
 
bool empty () const
 Is the matrix, stored in pm, empty?
 
uint size () const
 Returns the size of the matrix, the number of Poly_vec's in the member pm. More...
 
void clear ()
 Erases the matrix information.
 
void append (Poly_vec Pv)
 Appends a Poly_vec to data member pm.
 
void remove_CF ()
 Remove CF in the poly_matr member pm, i.e., replace CF by TR (Nc^2-1)/Nc. More...
 
void normal_order ()
 Normal orders all polynomials in the poly_matr member pm, (uses Polynomial.normal_order.)
 
void simplify ()
 Simplifies all polynomials in the poly_matr member pm, (uses Polynomial.simplify.)
 
void conjugate ()
 Conjugates the matrix.
 
void read_in_Poly_matr (std::string filename)
 Reads in the matrix from the file filename. More...
 
void write_out_Poly_matr (std::string filename) const
 Writes out the matrix to the file filename.
 

Public Attributes

poly_matr pm
 To actually contain the matrix of Polynomials.
 

Detailed Description

Class for containing a Polynomial matrix, and functions for Polynomial matrices.

Definition at line 26 of file Poly_matr.h.

Member Function Documentation

◆ read_in_Poly_matr()

void ColorFull::Poly_matr::read_in_Poly_matr ( std::string  filename)

Reads in the matrix from the file filename.

The file should be of the format {{Poly11,...,Poly1n}, ..., {Polyn1,...,Polynn}}, and may contain comment lines starting with # at the top.

Referenced by append().

◆ remove_CF()

void ColorFull::Poly_matr::remove_CF ( )

Remove CF in the poly_matr member pm, i.e., replace CF by TR (Nc^2-1)/Nc.

Referenced by append().

◆ size()

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

Returns the size of the matrix, the number of Poly_vec's in the member pm.

Definition at line 53 of file Poly_matr.h.


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