![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
#include <scheduleCombinationBasic.h>
Public Member Functions | |
Constructors / Destructors | |
ScheduleCombinationBasic (MultiDimImplementation< GUM_SCALAR > *(*combine)(const MultiDimImplementation< GUM_SCALAR > &, const MultiDimImplementation< GUM_SCALAR > &)) | |
default constructor More... | |
ScheduleCombinationBasic (const ScheduleCombinationBasic< GUM_SCALAR > &) | |
copy constructor More... | |
virtual | ~ScheduleCombinationBasic () |
destructor More... | |
virtual ScheduleCombinationBasic< GUM_SCALAR > * | newFactory () const |
virtual constructor More... | |
Accessors/Modifiers | |
virtual ScheduleMultiDim< GUM_SCALAR > | combine (const Set< const ScheduleMultiDim< GUM_SCALAR > * > &set, Schedule< GUM_SCALAR > &) |
ScheduleMultiDim< GUM_SCALAR > | combine (const Set< const MultiDimImplementation< GUM_SCALAR > * > &set, Schedule< GUM_SCALAR > &) |
template<template< typename > class TABLE> | |
ScheduleMultiDim< GUM_SCALAR > | combine (const Set< const TABLE< GUM_SCALAR > * > &set, Schedule< GUM_SCALAR > &) |
virtual void | setCombineFunction (MultiDimImplementation< GUM_SCALAR > *(*combine)(const MultiDimImplementation< GUM_SCALAR > &, const MultiDimImplementation< GUM_SCALAR > &)) |
changes the function used for combining two TABLES More... | |
virtual MultiDimImplementation< GUM_SCALAR > *(*)(const MultiDimImplementation< GUM_SCALAR > &, const MultiDimImplementation< GUM_SCALAR > &) | combineFunction () |
returns the combination function currently used by the combinator More... | |
virtual float | nbOperations (const Set< const ScheduleMultiDim< GUM_SCALAR > * > &set, const Schedule< GUM_SCALAR > &schedule) |
returns a rough estimate of the number of operations that will be performed to compute the combination More... | |
float | nbOperations (const Set< const MultiDimImplementation< GUM_SCALAR > * > &set, const Schedule< GUM_SCALAR > &schedule) |
template<template< typename > class TABLE> | |
float | nbOperations (const Set< const TABLE< GUM_SCALAR > * > &set, const Schedule< GUM_SCALAR > &schedule) |
virtual std::pair< long, long > | memoryUsage (const Set< const ScheduleMultiDim< GUM_SCALAR > * > &set, const Schedule< GUM_SCALAR > &schedule) |
returns the memory consumption used during the combination More... | |
std::pair< long, long > | memoryUsage (const Set< const MultiDimImplementation< GUM_SCALAR > * > &set, const Schedule< GUM_SCALAR > &schedule) |
template<template< typename > class TABLE> | |
std::pair< long, long > | memoryUsage (const Set< const TABLE< GUM_SCALAR > * > &set, const Schedule< GUM_SCALAR > &schedule) |
Protected Attributes | |
MultiDimImplementation< GUM_SCALAR > *(* | combine_ )(const MultiDimImplementation< GUM_SCALAR > &t1, const MultiDimImplementation< GUM_SCALAR > &t2) |
the function used to combine two tables More... | |
Protected Member Functions | |
Size | combinedSize_ (const Sequence< const DiscreteVariable * > &seq1, const Sequence< const DiscreteVariable * > &seq2) const |
returns the domain size of the Cartesian product of the union of all the variables in seq1 and seq2 More... | |
Definition at line 89 of file scheduleCombinationBasic.h.
gum::ScheduleCombinationBasic< GUM_SCALAR >::ScheduleCombinationBasic | ( | MultiDimImplementation< GUM_SCALAR > *(*)(const MultiDimImplementation< GUM_SCALAR > &, const MultiDimImplementation< GUM_SCALAR > &) | combine | ) |
default constructor
gum::ScheduleCombinationBasic< GUM_SCALAR >::ScheduleCombinationBasic | ( | const ScheduleCombinationBasic< GUM_SCALAR > & | ) |
copy constructor
|
virtual |
destructor
|
virtual |
InvalidArgumentsNumber | exception is thrown if the set passed in argument contains less than two elements |
Implements gum::ScheduleCombination< GUM_SCALAR >.
ScheduleMultiDim< GUM_SCALAR > gum::ScheduleCombinationBasic< GUM_SCALAR >::combine | ( | const Set< const MultiDimImplementation< GUM_SCALAR > * > & | set, |
Schedule< GUM_SCALAR > & | |||
) |
InvalidArgumentsNumber | exception is thrown if the set passed in argument contains less than two elements |
ScheduleMultiDim< GUM_SCALAR > gum::ScheduleCombinationBasic< GUM_SCALAR >::combine | ( | const Set< const TABLE< GUM_SCALAR > * > & | set, |
Schedule< GUM_SCALAR > & | |||
) |
InvalidArgumentsNumber | exception is thrown if the set passed in argument contains less than two elements |
|
protected |
returns the domain size of the Cartesian product of the union of all the variables in seq1 and seq2
|
virtual |
returns the combination function currently used by the combinator
Reimplemented from gum::ScheduleCombination< GUM_SCALAR >.
|
virtual |
returns the memory consumption used during the combination
Actually, this function does not return a precise account of the memory used by the multidimCombination but a rough estimate based on the sizes of the tables involved in the combination.
Implements gum::ScheduleCombination< GUM_SCALAR >.
std::pair< long, long > gum::ScheduleCombinationBasic< GUM_SCALAR >::memoryUsage | ( | const Set< const MultiDimImplementation< GUM_SCALAR > * > & | set, |
const Schedule< GUM_SCALAR > & | schedule | ||
) |
InvalidArgumentsNumber | exception is thrown if the set passed in argument contains less than two elements |
std::pair< long, long > gum::ScheduleCombinationBasic< GUM_SCALAR >::memoryUsage | ( | const Set< const TABLE< GUM_SCALAR > * > & | set, |
const Schedule< GUM_SCALAR > & | schedule | ||
) |
InvalidArgumentsNumber | exception is thrown if the set passed in argument contains less than two elements |
|
virtual |
returns a rough estimate of the number of operations that will be performed to compute the combination
Implements gum::ScheduleCombination< GUM_SCALAR >.
float gum::ScheduleCombinationBasic< GUM_SCALAR >::nbOperations | ( | const Set< const MultiDimImplementation< GUM_SCALAR > * > & | set, |
const Schedule< GUM_SCALAR > & | schedule | ||
) |
InvalidArgumentsNumber | exception is thrown if the set passed in argument contains less than two elements |
float gum::ScheduleCombinationBasic< GUM_SCALAR >::nbOperations | ( | const Set< const TABLE< GUM_SCALAR > * > & | set, |
const Schedule< GUM_SCALAR > & | schedule | ||
) |
InvalidArgumentsNumber | exception is thrown if the set passed in argument contains less than two elements |
|
virtual |
virtual constructor
Implements gum::ScheduleCombination< GUM_SCALAR >.
|
virtual |
changes the function used for combining two TABLES
Implements gum::ScheduleCombination< GUM_SCALAR >.
|
protected |
the function used to combine two tables
Definition at line 176 of file scheduleCombinationBasic.h.