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 | |
![]() | |
basic_partition_generator (unsigned n_, unsigned m_) | |
![]() | |
mpartition2 | mpgen |
Generate all bounded combinatorial partitions of an integer n with exactly m parts (including zero parts) in non-decreasing order.
|
inline |
Definition at line 333 of file utils.h.
References GiNaC::basic_partition_generator::basic_partition_generator(), current_updated, m, and partition.
|
inline |
Definition at line 337 of file utils.h.
References current_updated, m, GiNaC::basic_partition_generator::mpgen, and partition.
Referenced by GiNaC::power::expand_add().
|
inline |
Definition at line 350 of file utils.h.
References current_updated, m, and GiNaC::basic_partition_generator::mpgen.
Referenced by GiNaC::power::expand_add().
|
private |
Definition at line 329 of file utils.h.
Referenced by get(), next(), and partition_with_zero_parts_generator().
|
mutableprivate |
Definition at line 330 of file utils.h.
Referenced by get(), and partition_with_zero_parts_generator().
|
mutableprivate |
Definition at line 331 of file utils.h.
Referenced by get(), next(), and partition_with_zero_parts_generator().