42#ifndef GUM_UTILS_PRM_H
43#define GUM_UTILS_PRM_H
68 void decomposePath(
const std::string& path, std::vector< std::string >& v);
88 template <
typename GUM_SCALAR >
91 const Tensor< GUM_SCALAR >& source);
93 template <
typename GUM_SCALAR >
94 Tensor< GUM_SCALAR >
multTensor(
const Tensor< GUM_SCALAR >& t1,
const Tensor< GUM_SCALAR >& t2);
102 template <
typename GUM_SCALAR >
104 Set< Tensor< GUM_SCALAR >* >& pool,
105 Set< Tensor< GUM_SCALAR >* >& trash);
107 template <
typename GUM_SCALAR >
108 void eliminateNodes(
const std::vector< const DiscreteVariable* >& elim_order,
109 Set< Tensor< GUM_SCALAR >* >& pool,
110 Set< Tensor< GUM_SCALAR >* >& trash);
Set of pairs of elements with fast search for both elements.
Base class for discrete random variable.
Size NodeId
Type for node ids.
Headers of the MultiDimBijArray class.
Headers of the MultiDimBucket class.
class for multiDimNoisyORCompound
class for NoisyOR-net implementation as multiDim
Headers of MultiDimSparse.
namespace for all probabilistic relational models entities
Tensor< GUM_SCALAR > multTensor(const Tensor< GUM_SCALAR > &t1, const Tensor< GUM_SCALAR > &t2)
void eliminateNode(const DiscreteVariable *var, Set< Tensor< GUM_SCALAR > * > &pool, Set< Tensor< GUM_SCALAR > * > &trash)
Proceeds with the elimination of var in pool.
void decomposePath(const std::string &path, std::vector< std::string > &v)
Decompose a string in a vector of strings using "." as separators.
float prm_float
PRMType for real numbers.
void eliminateNodes(const std::vector< const DiscreteVariable * > &elim_order, Set< Tensor< GUM_SCALAR > * > &pool, Set< Tensor< GUM_SCALAR > * > &trash)
NodeId nextNodeId()
Returns the next value of an unique counter for PRM's node id.
Tensor< GUM_SCALAR > * 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.
gum is the global namespace for all aGrUM entities
Efficient functionals for projecting multiDimensional tables.
Header of the Tensor class.