![]() |
aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
|
Topics | |
| Hash Tables | |
| A efficient and flexible implementation of hash tables. | |
| Hash functions | |
| This module lists all hash functions provided by aGrUM. | |
| Bijections | |
| Set of pairs of elements with fast search for both elements. | |
| Heaps | |
| An implementation of heaps. | |
| Lists | |
| This file provides class List for manipulating generic lists as well as List<>::iterator, List<>::const_iterator, List<>::iterator_safe and List<>::const_iterator_safe for parsing lists. | |
| Priority queue | |
| This file provides class MultiPriorityQueue that is essentially a heap in which elements are sorted according to a dynamically modifiable priority. | |
| Sequences | |
| A Sequence<Key> is quite similar to a vector<Key> in that it stores an ordered set of elements. | |
| Sets | |
| A Set is a structure that contains arbitrary elements. | |
| Splay Trees | |
| A splay tree is a self-balancing binary search tree. | |
Classes | |
| class | gum::ThreadExecutorBase |
| Set the max number of threads to be used. More... | |
| class | gum::AVLTree< Val, Cmp > |
| AVL binary search tree. More... | |
| class | gum::AVLTreeIterator< Val, Cmp > |
| AVL binary search tree iterator. More... | |
| class | gum::AVLTreeIteratorSafe< Val, Cmp > |
| AVL binary search tree safe (w.r.t. More... | |
| class | gum::AVLTreeReverseIterator< Val, Cmp > |
| AVL binary search tree reverse iterator. More... | |
| class | gum::AVLTreeReverseIteratorSafe< Val, Cmp > |
| AVL binary search tree safe (w.r.t. More... | |
| class | gum::Bijection< T1, T2 > |
| Set of pairs of elements with fast search for both elements. More... | |
| class | gum::BinSearchTree< Val, Cmp, Node > |
| A generic binary search tree. More... | |
| class | gum::BinSearchTreeIterator< Val, Cmp, Node > |
| A Generic binary search tree. More... | |
| class | gum::BinTreeNode< Val > |
| Nodes of a binary trees. More... | |
| class | gum::ParseError |
| This class is used to represent parsing errors for the different parser implemented in aGrUM. More... | |
| class | gum::ErrorsContainer |
| This class is used contain and manipulate gum::ParseError. More... | |
| class | gum::HashTable< Key, Val > |
| The class for generic Hash Tables. More... | |
| class | gum::Heap< Val, Cmp > |
| Heap data structure. More... | |
| class | gum::IndexedTree< Key, Data > |
| The class for storing the nodes of the Arborescence. More... | |
| class | gum::List< Val > |
| Generic doubly linked lists. More... | |
| class | gum::ListIteratorSafe< Val > |
| Safe iterators for Lists. More... | |
| class | gum::MultiPriorityQueue< Val, Priority, Cmp > |
| A MultiPriorityQueue is a heap in which each element has a mutable priority and duplicates are allowed. More... | |
| class | gum::PriorityQueue< Val, Priority, Cmp > |
| A priorityQueue is a heap in which each element has a mutable priority. More... | |
| class | gum::Sequence< Key > |
| The generic class for storing (ordered) sequences of objects. More... | |
| class | gum::Set< Key > |
| Representation of a set. More... | |
| class | gum::SortedPriorityQueueIterator< Val, Priority, Cmp > |
| Sorted priority queue iterator. More... | |
| class | gum::SortedPriorityQueueIteratorSafe< Val, Priority, Cmp > |
| Sorted priority queues safe (w.r.t. More... | |
| class | gum::SortedPriorityQueueReverseIterator< Val, Priority, Cmp > |
| Sorted priority queue reverse iterator. More... | |
| class | gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > |
| Sorted priority queue safe (w.r.t. More... | |
| class | gum::SplayTree< Element > |
| A splay tree. More... | |
| class | gum::ThreadData< T_DATA > |
| A wrapper that enables to store data in a way that prevents false cacheline sharing. More... | |
| class | gum::Timer |
| Class used to compute response times for benchmark purposes. More... | |
Functions | |
| void | gum::setNumberOfThreads (unsigned int number) |
| Set the max number of threads to be used when entering the next parallel region. | |
| bool | gum::threadsOMP::hasOMPSupport () |
| Is OMP active ? | |
| unsigned int | gum::threadsOMP::getMaxNumberOfThreads () |
| Returns the maximum number of threads that should be used at any time. | |
| unsigned int | gum::threadsOMP::getNumberOfLogicalProcessors () |
| Get the number of logical processors. | |
| void | gum::threadsOMP::setNumberOfThreads (unsigned int number) |
| Set the number of threads to be used when entering the next parallel region. | |
| unsigned int | gum::threadsOMP::getThreadNumber () |
| Get the calling thread id. | |
| unsigned int | gum::threadsOMP::getNumberOfRunningThreads () |
| Get the current number of running threads. | |
| void | gum::threadsOMP::setDynamicThreadsNumber (bool value) |
| Set the dynamic threads number (false by default). | |
| bool | gum::threadsOMP::getDynamicThreadsNumber () |
| Get the dynamic thread number adjustment status. | |
| unsigned int | gum::threadsSTL::getMaxNumberOfThreads () |
| Returns the maximum number of threads you should use at any time. | |
| unsigned int | gum::threadsSTL::getNumberOfLogicalProcessors () |
| Get the number of logical processors. | |
| void | gum::threadsSTL::setNumberOfThreads (unsigned int number) |
| Set the max number of threads to be used when entering the next parallel region. | |
| INLINE bool gum::threadsOMP::getDynamicThreadsNumber | ( | ) |
Get the dynamic thread number adjustment status.
True if dynamic adjustment is enabled, False otherwise. Definition at line 110 of file threadsOMP_inl.h.
| INLINE unsigned int gum::threadsOMP::getMaxNumberOfThreads | ( | ) |
Returns the maximum number of threads that should be used at any time.
By default, it should be the number of CPU cores available. Note that it is preferable to use function getNumberOfThreads(), which corresponds to the max number of threads the user wants to launch in parallel regions (this is by default equal to getMaxNumberOfThreads(), but the user may wish to change it for some reason).
Definition at line 67 of file threadsOMP_inl.h.
| INLINE unsigned int gum::threadsSTL::getMaxNumberOfThreads | ( | ) |
Returns the maximum number of threads you should use at any time.
By default, it should be the number of CPU cores available. Note that it is preferable to use function getNumberOfThreads(), which corresponds to the max number of threads the user wants to launch in parallel regions (this is by default equal to getMaxNumberOfThreads(), but the user may wish to change it for some reason).
Definition at line 61 of file threadsSTL_inl.h.
| INLINE unsigned int gum::threadsOMP::getNumberOfLogicalProcessors | ( | ) |
Get the number of logical processors.
Definition at line 75 of file threadsOMP_inl.h.
| INLINE unsigned int gum::threadsSTL::getNumberOfLogicalProcessors | ( | ) |
Get the number of logical processors.
Definition at line 66 of file threadsSTL_inl.h.
| INLINE unsigned int gum::threadsOMP::getNumberOfRunningThreads | ( | ) |
Get the current number of running threads.
Call this from a parallel region.
Definition at line 91 of file threadsOMP_inl.h.
| INLINE unsigned int gum::threadsOMP::getThreadNumber | ( | ) |
Get the calling thread id.
Call this from a parallel region.
Definition at line 83 of file threadsOMP_inl.h.
Referenced by gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::updateOldMarginals_().
| INLINE bool gum::threadsOMP::hasOMPSupport | ( | ) |
Is OMP active ?
True if OMP has been set at compilation, False otherwise. Definition at line 59 of file threadsOMP_inl.h.
| INLINE void gum::threadsOMP::setDynamicThreadsNumber | ( | bool | value | ) |
Set the dynamic threads number (false by default).
Automatically adjust the number of running threads within a parallel region.
Desactivated by default.
| value | True if dynamic thread number should be used, False otherwise. |
Definition at line 99 of file threadsOMP_inl.h.
References GUM_ERROR.
| void gum::setNumberOfThreads | ( | unsigned int | number | ) |
Set the max number of threads to be used when entering the next parallel region.
To avoid spare cycles (less then 100% CPU occupied), you may want to use more threads than logical processors (x2 could be a good all-around value).
| number | The number of threads to be used in the next parallel region. |
Definition at line 55 of file threads.cpp.
References gum::threadsOMP::setNumberOfThreads(), and gum::threadsSTL::setNumberOfThreads().
| void gum::threadsOMP::setNumberOfThreads | ( | unsigned int | number | ) |
Set the number of threads to be used when entering the next parallel region.
To avoid spare cycles (less then 100% CPU occupied), you may want to use more threads than logical processors (x2 could be a good all-around value).
| number | The number of threads to be used in the next parallel region. |
Definition at line 71 of file threadsOMP.cpp.
References GUM_ERROR.
Referenced by gum::setNumberOfThreads().
| void gum::threadsSTL::setNumberOfThreads | ( | unsigned int | number | ) |
Set the max number of threads to be used when entering the next parallel region.
To avoid spare cycles (less then 100% CPU occupied), you may want to use more threads than logical processors (x2 could be a good all-around value).
| number | The number of threads to be used in the next parallel region. |
Definition at line 73 of file threadsSTL.cpp.
Referenced by gum::setNumberOfThreads().