![]() |
Cadabra
Computer algebra system for field theory problems
|
#include <Combinatorics.hh>
Public Types | |
| typedef std::vector < std::vector< T > > | permuted_sets_t |
| typedef permuted_sets_t::const_iterator | const_iterator |
Public Types inherited from combin::combinations_base< T > | |
| enum | weight_cond { weight_equals, weight_less, weight_greater } |
Public Member Functions | |
| combinations () | |
| combinations (const std::vector< T > &) | |
| virtual | ~combinations () |
| virtual void | clear () |
| virtual void | clear_results () |
| const std::vector< T > & | operator[] (unsigned int) const |
| int | ordersign (unsigned int) const |
| unsigned int | size () const |
| unsigned int | multiplier (unsigned int) const |
Public Member Functions inherited from combin::combinations_base< T > | |
| combinations_base () | |
| combinations_base (const std::vector< T > &) | |
| virtual | ~combinations_base () |
| void | permute (long start=-1, long end=-1) |
| unsigned int | sum_of_sublengths () const |
| void | set_unit_sublengths () |
| unsigned int | multiplier (const std::vector< T > &) const |
| unsigned int | total_permutations () const |
Protected Member Functions | |
| virtual void | vector_generated (const std::vector< unsigned int > &) |
Protected Member Functions inherited from combin::combinations_base< T > | |
| virtual bool | entry_accepted (unsigned int current) const |
Private Attributes | |
| permuted_sets_t | storage |
Additional Inherited Members | |
Public Attributes inherited from combin::combinations_base< T > | |
| unsigned int | block_length |
| std::vector< unsigned int > | sublengths |
| range_vector_t | input_asym |
| std::vector< T > | original |
| bool | multiple_pick |
| std::vector< weights_t > | weights |
| std::vector< int > | max_weights |
| std::vector< weight_cond > | weight_conditions |
| unsigned int | sub_problem_blocksize |
Protected Attributes inherited from combin::combinations_base< T > | |
| std::vector< unsigned int > | temparr |
| long | start_ |
| long | end_ |
| long | vector_generated_called_ |
| std::vector< int > | current_weight |
| typedef permuted_sets_t::const_iterator combin::combinations< T >::const_iterator |
| typedef std::vector<std::vector<T> > combin::combinations< T >::permuted_sets_t |
| combin::combinations< T >::combinations | ( | ) |
| combin::combinations< T >::combinations | ( | const std::vector< T > & | oa | ) |
|
virtual |
|
virtual |
Reimplemented from combin::combinations_base< T >.
|
virtual |
Reimplemented from combin::combinations_base< T >.
| unsigned int combin::combinations< T >::multiplier | ( | unsigned int | num | ) | const |
| const std::vector< T > & combin::combinations< T >::operator[] | ( | unsigned int | i | ) | const |
| int combin::combinations< T >::ordersign | ( | unsigned int | num | ) | const |
| unsigned int combin::combinations< T >::size | ( | ) | const |
|
protectedvirtual |
Implements combin::combinations_base< T >.
|
private |
1.8.6