GiNaC 1.8.7
Public Member Functions | Private Attributes | List of all members
GiNaC::partition_generator Class Reference

Generate all bounded combinatorial partitions of an integer n with exactly m parts (not including zero parts) in non-decreasing order. More...

#include <utils.h>

Inheritance diagram for GiNaC::partition_generator:
GiNaC::basic_partition_generator

Public Member Functions

 partition_generator (unsigned n_, unsigned m_)
 
const std::vector< unsigned > & get () const
 
bool next ()
 

Private Attributes

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
 

Detailed Description

Generate all bounded combinatorial partitions of an integer n with exactly m parts (not including zero parts) in non-decreasing order.

Definition at line 366 of file utils.h.

Constructor & Destructor Documentation

◆ partition_generator()

GiNaC::partition_generator::partition_generator ( unsigned  n_,
unsigned  m_ 
)
inline

Definition at line 371 of file utils.h.

Member Function Documentation

◆ get()

const std::vector< unsigned > & GiNaC::partition_generator::get ( ) const
inline

◆ next()

bool GiNaC::partition_generator::next ( )
inline

Member Data Documentation

◆ partition

std::vector<unsigned> GiNaC::partition_generator::partition
mutableprivate

Definition at line 368 of file utils.h.

Referenced by get().

◆ current_updated

bool GiNaC::partition_generator::current_updated
mutableprivate

Definition at line 369 of file utils.h.

Referenced by get(), and next().


The documentation for this class was generated from the following file:

This page is part of the GiNaC developer's reference. It was generated automatically by doxygen. For an introduction, see the tutorial.