colorfull is hosted by Hepforge, IPPP Durham
ColorFull  1.1
ColorFull::Poly_vec Class Reference

#include <Poly_vec.h>

Public Member Functions

 Poly_vec ()
 
 Poly_vec (poly_vec poly_v)
 
const Polynomialat (int i) const
 
Polynomialat (int i)
 
uint size () const
 
void clear ()
 
void append (Polynomial Poly)
 
bool empty () const
 
void remove_CF ()
 
void normal_order ()
 
void simplify ()
 
void conjugate ()
 
void read_in_Poly_vec (std::string filename)
 
void write_out_Poly_vec (std::string filename) const
 

Public Attributes

poly_vec pv
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Poly_vec() [1/2]

ColorFull::Poly_vec::Poly_vec ( )
inline

Default constructor, leaves pv empty.

◆ Poly_vec() [2/2]

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

Makes a Poly_vec of a poly_vec.

Member Function Documentation

◆ append()

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

Appends a Polynomial to data member pv.

◆ at() [1/2]

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

Returns the Polynomial at place i.

◆ at() [2/2]

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

Returns the Polynomial at place i.

◆ clear()

void ColorFull::Poly_vec::clear ( )
inline

Erases the information in vector.

◆ conjugate()

void ColorFull::Poly_vec::conjugate ( )

Conjugates the Poly_vec.

◆ empty()

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

Is the vector empty?

◆ normal_order()

void ColorFull::Poly_vec::normal_order ( )

Normal order all Polynomials in the poly_vec member pv (uses the Polynomial.normal_order function.)

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

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

◆ simplify()

void ColorFull::Poly_vec::simplify ( )

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

◆ size()

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

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

◆ write_out_Poly_vec()

void ColorFull::Poly_vec::write_out_Poly_vec ( std::string  filename) const

Writes out the vector to the file filename.

Member Data Documentation

◆ pv

poly_vec ColorFull::Poly_vec::pv

To actually contain the polynomial information.


The documentation for this class was generated from the following file:
  • /data/Documents/eclipse/workspace/ColorFull/Poly_vec.h