|
GiNaC 1.8.10
|
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 |
Definition at line 332 of file utils.h.
References GiNaC::basic_partition_generator::basic_partition_generator(), current_updated, m, and partition.
|
inline |
Definition at line 336 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 349 of file utils.h.
References current_updated, m, and GiNaC::basic_partition_generator::mpgen.
Referenced by GiNaC::power::expand_add().
|
private |
Definition at line 328 of file utils.h.
Referenced by get(), next(), and partition_with_zero_parts_generator().
|
mutableprivate |
Definition at line 329 of file utils.h.
Referenced by get(), and partition_with_zero_parts_generator().
|
mutableprivate |
Definition at line 330 of file utils.h.
Referenced by get(), next(), and partition_with_zero_parts_generator().