Sector decomposition
Public Member Functions | Public Attributes | Friends | List of all members
exponent Class Reference

#include <integrand.h>

Public Member Functions

 exponent ()
 
 exponent (int order_0, int order_1)
 
 exponent (GiNaC::ex order_0, GiNaC::ex order_1)
 
GiNaC::ex operator[] (size_t i) const
 
exponentsum_up (const exponent &other)
 
exponentsubtract_off (const exponent &other)
 
exponentsum_up (const exponent &other, int lambda)
 
exponentsubtract_off (const exponent &other, int lambda)
 
int get_integer_part () const
 
GiNaC::ex get_exponent (const integration_data &global_data) const
 
bool is_not_zero () const
 

Public Attributes

GiNaC::ex order_0
 term of order 0
 
GiNaC::ex order_1
 term of order 1
 

Friends

std::ostream & operator<< (std::ostream &os, const exponent &arg)
 

Detailed Description

A container class for the exponents.

Exponents are of the form

\[
    a + \varepsilon b,
\]

where $a$ and $b$ are rational numbers and $\varepsilon$ is the expansion parameter. The class stores $a$ and $b$ and provides methods for the addition and subtraction of exponents.

Constructor & Destructor Documentation

◆ exponent() [1/3]

exponent ( )

Default constructor.

◆ exponent() [2/3]

exponent ( int  arg_order_0,
int  arg_order_1 
)

Constructor.

order_0 is initialised with arg_order_0, order_1 is initialised with arg_order_1.

◆ exponent() [3/3]

exponent ( GiNaC::ex  arg_order_0,
GiNaC::ex  arg_order_1 
)

Constructor.

order_0 is initialised with arg_order_0, order_1 is initialised with arg_order_1.

Member Function Documentation

◆ get_exponent()

GiNaC::ex get_exponent ( const integration_data global_data) const

Returns the exponent as GiNaC::ex.

◆ get_integer_part()

int get_integer_part ( ) const

Returns the integer part of the exponent.

◆ is_not_zero()

bool is_not_zero ( ) const

Returns true if not zero.

◆ operator[]()

GiNaC::ex operator[] ( size_t  i) const

Subscription.

◆ subtract_off() [1/2]

exponent & subtract_off ( const exponent other)

Subtracts the argument from the current exponent.

◆ subtract_off() [2/2]

exponent & subtract_off ( const exponent other,
int  lambda 
)

Subtracts lambda times the argument from the current exponent.

◆ sum_up() [1/2]

exponent & sum_up ( const exponent other)

Adds the argument to the current exponent.

◆ sum_up() [2/2]

exponent & sum_up ( const exponent other,
int  lambda 
)

Adds lambda times the argument to the current exponent.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const exponent arg 
)
friend

Output. Prints out the exponent in the form exponent(order_0, order_1).


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