GiNaC 1.8.7
|
Interface to several small and furry utilities needed within GiNaC but not of any interest to the user of the library. More...
Go to the source code of this file.
Classes | |
class | GiNaC::dunno |
Exception class thrown by functions to signal unimplemented functionality so the expression may just be .hold() More... | |
class | GiNaC::basic_partition_generator |
Base class for generating all bounded combinatorial partitions of an integer n with exactly m parts in non-decreasing order. More... | |
struct | GiNaC::basic_partition_generator::mpartition2 |
class | GiNaC::partition_with_zero_parts_generator |
Generate all bounded combinatorial partitions of an integer n with exactly m parts (including zero parts) in non-decreasing order. More... | |
class | GiNaC::partition_generator |
Generate all bounded combinatorial partitions of an integer n with exactly m parts (not including zero parts) in non-decreasing order. More... | |
class | GiNaC::composition_generator |
Generate all compositions of a partition of an integer n, starting with the compositions which has non-decreasing order. More... | |
struct | GiNaC::composition_generator::coolmulti |
struct | GiNaC::composition_generator::coolmulti::element |
Namespaces | |
namespace | GiNaC |
Macros | |
#define | DEFAULT_CTOR(classname) classname::classname() { setflag(status_flags::evaluated | status_flags::expanded); } |
#define | DEFAULT_COMPARE(classname) |
#define | DEFAULT_PRINT(classname, text) |
#define | DEFAULT_PRINT_LATEX(classname, text, latex) |
Functions | |
unsigned | GiNaC::log2 (unsigned n) |
Integer binary logarithm. More... | |
unsigned | GiNaC::rotate_left (unsigned n) |
Rotate bits of unsigned value by one bit to the left. More... | |
template<class T > | |
int | GiNaC::compare_pointers (const T *a, const T *b) |
Compare two pointers (just to establish some sort of canonical order). More... | |
unsigned | GiNaC::golden_ratio_hash (uintptr_t n) |
Truncated multiplication with golden ratio, for computing hash values. More... | |
template<class It > | |
int | GiNaC::permutation_sign (It first, It last) |
template<class It , class Cmp , class Swap > | |
int | GiNaC::permutation_sign (It first, It last, Cmp comp, Swap swapit) |
template<class It , class Cmp , class Swap > | |
void | GiNaC::shaker_sort (It first, It last, Cmp comp, Swap swapit) |
template<class It , class Swap > | |
void | GiNaC::cyclic_permutation (It first, It last, It new_first, Swap swapit) |
const numeric | GiNaC::multinomial_coefficient (const std::vector< unsigned > &p) |
Compute the multinomial coefficient n!/(p1!*p2!*...*pk!) where n = p1+p2+...+pk, i.e. More... | |
Interface to several small and furry utilities needed within GiNaC but not of any interest to the user of the library.
Definition in file utils.h.
#define DEFAULT_CTOR | ( | classname | ) | classname::classname() { setflag(status_flags::evaluated | status_flags::expanded); } |
#define DEFAULT_COMPARE | ( | classname | ) |
#define DEFAULT_PRINT | ( | classname, | |
text | |||
) |
#define DEFAULT_PRINT_LATEX | ( | classname, | |
text, | |||
latex | |||
) |