Class for computing cubature formula. More...
#include <borderbasix/cubature.hpp>
Public Types | |
typedef Monom< double, dynamicexp<'x'> > | Monomial |
typedef Dlex< Monomial > | Ordering |
typedef MPoly< std::vector< Monomial >, Ordering > | Polynomial |
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 |
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.
typedef Monom<double, dynamicexp<'x'> > cubature< T >::Monomial |
typedef MPoly<std::vector<Monomial>, Ordering > cubature< T >::Polynomial |
Type of the objective function. 1=identity, 0=random (default)
|
inline |
Coefficient of the objective matrix.
T& cubature< T >::P_ini | ( | int | i, |
int | j | ||
) |
TMPL void cubature< T >::run | ( | int | k, |
list< Polynomial > | list2 | ||
) |
Set the minimal degree of the cubature.
TMPL void cubature< T >::set_input | ( | const Polynomial & | p | ) |
Set the input sequence of moments.
Set the number of equations defining the integration domain.
Set the number of equations defining the integration domain.
Set the SDP solver to be used.
unsigned cubature< T >::dim |
int cubature< T >::m_degree |
int cubature< T >::m_numeq |
int cubature< T >::m_numneq |
std::vector<T> cubature< T >::point |
std::vector<T> cubature< T >::weight |