GiNaC 1.8.7
|
Generate all compositions of a partition of an integer n, starting with the compositions which has non-decreasing order. More...
#include <utils.h>
Classes | |
struct | coolmulti |
Public Member Functions | |
composition_generator (const std::vector< unsigned > &partition) | |
const std::vector< unsigned > & | get () const |
bool | next () |
Private Attributes | |
struct GiNaC::composition_generator::coolmulti | cmgen |
bool | atend |
bool | trivial |
std::vector< unsigned > | composition |
bool | current_updated |
Generate all compositions of a partition of an integer n, starting with the compositions which has non-decreasing order.
|
inlineexplicit |
|
inline |
Definition at line 460 of file utils.h.
References cmgen, composition, current_updated, GiNaC::composition_generator::coolmulti::head, GiNaC::composition_generator::coolmulti::element::next, and GiNaC::composition_generator::coolmulti::element::value.
Referenced by GiNaC::power::expand_add().
|
inline |
Definition at line 474 of file utils.h.
References atend, cmgen, current_updated, GiNaC::composition_generator::coolmulti::finished(), GiNaC::composition_generator::coolmulti::next_permutation(), and trivial.
Referenced by GiNaC::power::expand_add().
|
private |
|
private |
|
private |
Definition at line 450 of file utils.h.
Referenced by composition_generator(), and next().
|
mutableprivate |
|
mutableprivate |