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

Constructor & Destructor Documentation

◆ Poly_matr()

ColorFull::Poly_matr::Poly_matr ( )
inline

Default constructor, leaves pm empty.

Definition at line 31 of file Poly_matr.h.

Member Function Documentation

◆ append()

void ColorFull::Poly_matr::append ( Poly_vec  Pv)
inline

Appends a Poly_vec to data member pm.

Definition at line 59 of file Poly_matr.h.

References pm.

◆ at() [1/4]

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

Returns the Poly_vec at place i.

Definition at line 40 of file Poly_matr.h.

References pm.

◆ at() [2/4]

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

Returns the Poly_vec at place i.

Definition at line 37 of file Poly_matr.h.

References pm.

◆ at() [3/4]

Polynomial & ColorFull::Poly_matr::at ( int  i,
int  j 
)
inline

Returns the matrix element at i, j.

Definition at line 43 of file Poly_matr.h.

References pm.

◆ at() [4/4]

const Polynomial & ColorFull::Poly_matr::at ( int  i,
int  j 
) const
inline

Returns the matrix element at i, j.

Definition at line 46 of file Poly_matr.h.

References pm.

◆ clear()

void ColorFull::Poly_matr::clear ( )
inline

Erases the matrix information.

Definition at line 56 of file Poly_matr.h.

References pm.

◆ empty()

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

Is the matrix, stored in pm, empty?

Definition at line 49 of file Poly_matr.h.

References pm.

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

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

References pm.

Member Data Documentation

◆ pm

poly_matr ColorFull::Poly_matr::pm

To actually contain the matrix of Polynomials.

Definition at line 34 of file Poly_matr.h.

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


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