![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
#include <scheduleProjectionBasic.h>
Public Member Functions | |
Constructors / Destructors | |
ScheduleProjectionBasic (MultiDimImplementation< GUM_SCALAR > *(*proj)(const MultiDimImplementation< GUM_SCALAR > &, const Set< const DiscreteVariable * > &)) | |
default constructor More... | |
ScheduleProjectionBasic (const ScheduleProjectionBasic< GUM_SCALAR > &) | |
copy constructor More... | |
virtual | ~ScheduleProjectionBasic () |
destructor More... | |
virtual ScheduleProjectionBasic< GUM_SCALAR > * | newFactory () const |
virtual constructor More... | |
Accessors/Modifiers | |
ScheduleMultiDim< GUM_SCALAR > | project (const ScheduleMultiDim< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, Schedule< GUM_SCALAR > &schedule) |
creates and returns the projection of the table over a subset of its vars More... | |
ScheduleMultiDim< GUM_SCALAR > | project (const MultiDimImplementation< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, Schedule< GUM_SCALAR > &schedule) |
creates and returns the projection of the table over a subset of its vars More... | |
template<template< typename > class TABLE> | |
ScheduleMultiDim< GUM_SCALAR > | project (const TABLE< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, Schedule< GUM_SCALAR > &schedule) |
creates and returns the projection of the table over a subset of its vars More... | |
void | setProjectFunction (MultiDimImplementation< GUM_SCALAR > *(*proj)(const MultiDimImplementation< GUM_SCALAR > &, const Set< const DiscreteVariable * > &)) |
changes the function used for projecting tables More... | |
MultiDimImplementation< GUM_SCALAR > *(*)(const MultiDimImplementation< GUM_SCALAR > &, const Set< const DiscreteVariable *> &) | projectFunction () |
returns the projection function currently used by the projector More... | |
virtual float | nbOperations (const ScheduleMultiDim< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, const Schedule< GUM_SCALAR > &schedule) |
returns a rough estimate of the number of operations that will be performed to compute the projection More... | |
float | nbOperations (const MultiDimImplementation< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, const Schedule< GUM_SCALAR > &schedule) |
creates and returns the projection of the table over a subset of its vars More... | |
template<template< typename > class TABLE> | |
float | nbOperations (const TABLE< GUM_SCALAR > &set, const Set< const DiscreteVariable * > &del_vars, const Schedule< GUM_SCALAR > &schedule) |
creates and returns the projection of the table over a subset of its vars More... | |
virtual std::pair< long, long > | memoryUsage (const ScheduleMultiDim< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, const Schedule< GUM_SCALAR > &schedule) |
returns the memory consumption used during the projection More... | |
std::pair< long, long > | memoryUsage (const MultiDimImplementation< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, const Schedule< GUM_SCALAR > &schedule) |
creates and returns the projection of the table over a subset of its vars More... | |
template<template< typename > class TABLE> | |
std::pair< long, long > | memoryUsage (const TABLE< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, const Schedule< GUM_SCALAR > &schedule) |
creates and returns the projection of the table over a subset of its vars More... | |
Protected Attributes | |
MultiDimImplementation< GUM_SCALAR > *(* | proj_ )(const MultiDimImplementation< GUM_SCALAR > &, const Set< const DiscreteVariable * > &) |
the projection function actually used More... | |
Definition at line 72 of file scheduleProjectionBasic.h.
|
explicit |
default constructor
gum::ScheduleProjectionBasic< GUM_SCALAR >::ScheduleProjectionBasic | ( | const ScheduleProjectionBasic< GUM_SCALAR > & | ) |
copy constructor
|
virtual |
destructor
|
virtual |
returns the memory consumption used during the projection
Actually, this function does not return a precise account of the memory used by the multidimProjection but a rough estimate based on the size of the table involved in the projection.
Implements gum::ScheduleProjection< GUM_SCALAR >.
std::pair< long, long > gum::ScheduleProjectionBasic< GUM_SCALAR >::memoryUsage | ( | const MultiDimImplementation< GUM_SCALAR > & | table, |
const Set< const DiscreteVariable * > & | del_vars, | ||
const Schedule< GUM_SCALAR > & | schedule | ||
) |
creates and returns the projection of the table over a subset of its vars
std::pair< long, long > gum::ScheduleProjectionBasic< GUM_SCALAR >::memoryUsage | ( | const TABLE< GUM_SCALAR > & | table, |
const Set< const DiscreteVariable * > & | del_vars, | ||
const Schedule< GUM_SCALAR > & | schedule | ||
) |
creates and returns the projection of the table over a subset of its vars
|
virtual |
returns a rough estimate of the number of operations that will be performed to compute the projection
Implements gum::ScheduleProjection< GUM_SCALAR >.
float gum::ScheduleProjectionBasic< GUM_SCALAR >::nbOperations | ( | const MultiDimImplementation< GUM_SCALAR > & | table, |
const Set< const DiscreteVariable * > & | del_vars, | ||
const Schedule< GUM_SCALAR > & | schedule | ||
) |
creates and returns the projection of the table over a subset of its vars
float gum::ScheduleProjectionBasic< GUM_SCALAR >::nbOperations | ( | const TABLE< GUM_SCALAR > & | set, |
const Set< const DiscreteVariable * > & | del_vars, | ||
const Schedule< GUM_SCALAR > & | schedule | ||
) |
creates and returns the projection of the table over a subset of its vars
|
virtual |
virtual constructor
Implements gum::ScheduleProjection< GUM_SCALAR >.
|
private |
to be coherent with combinations, forbid copy operators
|
virtual |
creates and returns the projection of the table over a subset of its vars
Implements gum::ScheduleProjection< GUM_SCALAR >.
ScheduleMultiDim< GUM_SCALAR > gum::ScheduleProjectionBasic< GUM_SCALAR >::project | ( | const MultiDimImplementation< GUM_SCALAR > & | table, |
const Set< const DiscreteVariable * > & | del_vars, | ||
Schedule< GUM_SCALAR > & | schedule | ||
) |
creates and returns the projection of the table over a subset of its vars
ScheduleMultiDim< GUM_SCALAR > gum::ScheduleProjectionBasic< GUM_SCALAR >::project | ( | const TABLE< GUM_SCALAR > & | table, |
const Set< const DiscreteVariable * > & | del_vars, | ||
Schedule< GUM_SCALAR > & | schedule | ||
) |
creates and returns the projection of the table over a subset of its vars
|
virtual |
returns the projection function currently used by the projector
Reimplemented from gum::ScheduleProjection< GUM_SCALAR >.
|
virtual |
changes the function used for projecting tables
Implements gum::ScheduleProjection< GUM_SCALAR >.
|
protected |
the projection function actually used
Definition at line 166 of file scheduleProjectionBasic.h.