GiNaC 1.8.7
|
Generate all bounded combinatorial partitions of an integer n with exactly m parts (including zero parts) in non-decreasing order. More...
#include <utils.h>
Public Member Functions | |
partition_with_zero_parts_generator (unsigned n_, unsigned m_) | |
const std::vector< unsigned > & | get () const |
bool | next () |
Private Attributes | |
unsigned | m |
std::vector< unsigned > | partition |
bool | current_updated |
Additional Inherited Members | |
Protected Member Functions inherited from GiNaC::basic_partition_generator | |
basic_partition_generator (unsigned n_, unsigned m_) | |
Protected Attributes inherited from GiNaC::basic_partition_generator | |
mpartition2 | mpgen |
Generate all bounded combinatorial partitions of an integer n with exactly m parts (including zero parts) in non-decreasing order.
|
inline |
|
inline |
Definition at line 337 of file utils.h.
References current_updated, GiNaC::basic_partition_generator::mpartition2::m, m, GiNaC::basic_partition_generator::mpgen, partition, and GiNaC::basic_partition_generator::mpartition2::x.
Referenced by GiNaC::power::expand_add().
|
inline |
Definition at line 350 of file utils.h.
References current_updated, GiNaC::basic_partition_generator::mpartition2::m, m, GiNaC::basic_partition_generator::mpgen, GiNaC::basic_partition_generator::mpartition2::n, and GiNaC::basic_partition_generator::mpartition2::next_partition().
Referenced by GiNaC::power::expand_add().
|
private |
|
mutableprivate |
|
mutableprivate |