aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
utils_prm.h File Reference
Include dependency graph for utils_prm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities
namespace  gum::prm
 namespace for all probabilistic relational models entities

Typedefs

using gum::prm::prm_float = float
 PRMType for real numbers.

Functions

void gum::prm::decomposePath (const std::string &path, std::vector< std::string > &v)
 Decompose a string in a vector of strings using "." as separators.
template<typename GUM_SCALAR>
Tensor< GUM_SCALAR > * gum::prm::copyTensor (const Bijection< const DiscreteVariable *, const DiscreteVariable * > &bij, const Tensor< GUM_SCALAR > &source)
 Returns a copy of a Tensor after applying a bijection over the variables in source.
template<typename GUM_SCALAR>
Tensor< GUM_SCALAR > gum::prm::multTensor (const Tensor< GUM_SCALAR > &t1, const Tensor< GUM_SCALAR > &t2)
template<typename GUM_SCALAR>
void gum::prm::eliminateNode (const DiscreteVariable *var, Set< Tensor< GUM_SCALAR > * > &pool, Set< Tensor< GUM_SCALAR > * > &trash)
 Proceeds with the elimination of var in pool.
template<typename GUM_SCALAR>
void gum::prm::eliminateNodes (const std::vector< const DiscreteVariable * > &elim_order, Set< Tensor< GUM_SCALAR > * > &pool, Set< Tensor< GUM_SCALAR > * > &trash)
NodeId gum::prm::nextNodeId ()
 Returns the next value of an unique counter for PRM's node id.