41 std::vector< float > v;
44 v.push_back((
float)rand() * 1000);
54 std::vector< double > v;
57 v.push_back((
double)rand() * 1000);
aGrUM's Potential is a multi-dimensional array with tensor operators.
Class for generating Utility Tables.
virtual Size domainSize() const final
Returns the product of the variables domain size.
SimpleUTGenerator()
Default constructor.
gum is the global namespace for all aGrUM entities
virtual void populate(const std::vector< GUM_SCALAR > &v) const final
Automatically fills this MultiDimContainer with the values in v.
virtual void generateUT(const Idx &varId, const Potential< float > &ut)
Generates a UT using floats.
Abstract class for generating Utility Tables.
virtual ~SimpleUTGenerator()
Destructor.
Size Idx
Type for indexes.
std::size_t Size
In aGrUM, hashed values are unsigned long int.