Borderbasix

Public Types | Public Member Functions | Public Attributes | List of all members
cubature< T > Struct Template Reference

Class for computing cubature formula. More...

#include <borderbasix/cubature.hpp>

Public Types

typedef Monom< double, dynamicexp<'x'> > Monomial
 
typedef Dlex< MonomialOrdering
 
typedef MPoly< std::vector< Monomial >, OrderingPolynomial
 

Public Member Functions

 cubature ()
 
void set_input (const Polynomial &p)
 Set the input sequence of moments. More...
 
void obj_def (int i)
 
T & obj_mat (int i, int j)
 Coefficient of the objective matrix. More...
 
void run (int k, list< Polynomial > list2)
 
void set_threshold (double eps)
 
void set_sdpsolver (solversdp *slv)
 Set the SDP solver to be used. More...
 
void set_degree (int deg)
 Set the minimal degree of the cubature. More...
 
void set_numeq (int g)
 Set the number of equations defining the integration domain. More...
 
void set_numneq (int h)
 Set the number of equations defining the integration domain. More...
 
void set_verbose (int v)
 
T & P_ini (int i, int j)
 

Public Attributes

std::vector< T > weight
 
std::vector< T > point
 
unsigned dim
 
int m_degree
 
int m_numeq
 
int m_numneq
 

Detailed Description

template<class T>
struct cubature< T >

Class for computing cubature formula.

Compute cubature formula by SDP relaxation.

Input: a sequence of moments represented by a polynomial.

Output: weights and points which weighted sum of the evaluation coincide with the input sequence of moments.

Member Typedef Documentation

template<class T >
typedef Monom<double, dynamicexp<'x'> > cubature< T >::Monomial
template<class T >
typedef Dlex<Monomial> cubature< T >::Ordering
template<class T >
typedef MPoly<std::vector<Monomial>, Ordering > cubature< T >::Polynomial

Constructor & Destructor Documentation

template<class T >
TMPL cubature< T >::cubature ( )

Member Function Documentation

template<class T >
void cubature< T >::obj_def ( int  i)
inline

Type of the objective function. 1=identity, 0=random (default)

template<class T >
T& cubature< T >::obj_mat ( int  i,
int  j 
)
inline

Coefficient of the objective matrix.

template<class T >
T& cubature< T >::P_ini ( int  i,
int  j 
)
template<class T >
TMPL void cubature< T >::run ( int  k,
list< Polynomial list2 
)
template<class T >
void cubature< T >::set_degree ( int  deg)
inline

Set the minimal degree of the cubature.

template<class T >
TMPL void cubature< T >::set_input ( const Polynomial p)

Set the input sequence of moments.

template<class T >
void cubature< T >::set_numeq ( int  g)
inline

Set the number of equations defining the integration domain.

template<class T >
void cubature< T >::set_numneq ( int  h)
inline

Set the number of equations defining the integration domain.

template<class T >
void cubature< T >::set_sdpsolver ( solversdp slv)
inline

Set the SDP solver to be used.

template<class T >
void cubature< T >::set_threshold ( double  eps)
inline
template<class T >
void cubature< T >::set_verbose ( int  v)
inline

Member Data Documentation

template<class T >
unsigned cubature< T >::dim
template<class T >
int cubature< T >::m_degree
template<class T >
int cubature< T >::m_numeq
template<class T >
int cubature< T >::m_numneq
template<class T >
std::vector<T> cubature< T >::point
template<class T >
std::vector<T> cubature< T >::weight
Home  |  Download & InstallContributions