Drake
drake::symbolic::internal Namespace Reference

Functions

template<typename MonomialOrder >
void AddMonomialsOfDegreeN (const Variables &vars, int degree, const Monomial &b, std::set< Monomial, MonomialOrder > *const bin)
 Generates [b * m for m in MonomialBasis(vars, degree)] and push them to bin. More...
 
template<int rows>
Eigen::Matrix< Monomial, rows, 1 > ComputeMonomialBasis (const Variables &vars, int degree)
 Returns all monomials up to a given degree under the graded reverse lexicographic order. More...
 

Function Documentation

void drake::symbolic::internal::AddMonomialsOfDegreeN ( const Variables vars,
int  degree,
const Monomial b,
std::set< Monomial, MonomialOrder > *const  bin 
)

Generates [b * m for m in MonomialBasis(vars, degree)] and push them to bin.

Used as a helper function to implement MonomialBasis.

Template Parameters
MonomialOrderprovides a monomial ordering.

Here is the call graph for this function:

Here is the caller graph for this function:

Eigen::Matrix<Monomial, rows, 1> drake::symbolic::internal::ComputeMonomialBasis ( const Variables vars,
int  degree 
)

Returns all monomials up to a given degree under the graded reverse lexicographic order.

This is called by MonomialBasis functions defined below.

Template Parameters
rowsNumber of rows or Dynamic

Here is the call graph for this function: