42#ifndef GUM_UTILS_PRM_H
43#define GUM_UTILS_PRM_H
70 void decomposePath(std::string_view path, std::vector< std::string >& v);
90 template < GUM_Numeric GUM_SCALAR >
93 const Tensor< GUM_SCALAR >& source);
95 template < GUM_Numeric GUM_SCALAR >
96 Tensor< GUM_SCALAR >
multTensor(
const Tensor< GUM_SCALAR >& t1,
const Tensor< GUM_SCALAR >& t2);
104 template < GUM_Numeric GUM_SCALAR >
106 Set< Tensor< GUM_SCALAR >* >& pool,
107 Set< Tensor< GUM_SCALAR >* >& trash);
109 template < GUM_Numeric GUM_SCALAR >
110 void eliminateNodes(
const std::vector< const DiscreteVariable* >& elim_order,
111 Set< Tensor< GUM_SCALAR >* >& pool,
112 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 decomposePath(std::string_view path, std::vector< std::string > &v)
Decompose a string in a vector of strings using "." as separators.
void eliminateNode(const DiscreteVariable *var, Set< Tensor< GUM_SCALAR > * > &pool, Set< Tensor< GUM_SCALAR > * > &trash)
Proceeds with the elimination of var in pool.
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.