55 template <
typename GUM_SCALAR >
65 template <
typename GUM_SCALAR >
76 template <
typename GUM_SCALAR >
87 template <
typename GUM_SCALAR >
92 template <
typename GUM_SCALAR >
98 template <
typename GUM_SCALAR >
103 template <
typename GUM_SCALAR >
108 template <
typename GUM_SCALAR >
113 template <
typename GUM_SCALAR >
118 template <
typename GUM_SCALAR >
123 template <
typename GUM_SCALAR >
128 template <
typename GUM_SCALAR >
133 template <
typename GUM_SCALAR >
142 template <
typename GUM_SCALAR >
144 const GUM_SCALAR& value)
const {
148 template <
typename GUM_SCALAR >
153 template <
typename GUM_SCALAR >
159 template <
typename GUM_SCALAR >
164 template <
typename GUM_SCALAR >
const T2 & second(const T1 &first) const
Base class for discrete random variable.
Class for assigning/browsing values to tuples of discrete variables.
bool isMaster(const MultiDimAdressable *m) const
Indicates whether m is the master of this instantiation.
Multidimensional matrix stored as an array in memory.
Decorator of a MultiDimArray, using a bijection over the variables.
virtual void set(const Instantiation &i, const GUM_SCALAR &value) const
virtual void populate(const std::vector< GUM_SCALAR > &v) const
This will raise an exception: you can't change the variables in a MultiDimBijArray.
MultiDimBijArray(const VarBijection &bijection, const MultiDimArray< GUM_SCALAR > &array)
Class constructor.
MultiDimBijArray< GUM_SCALAR > & operator=(const MultiDimBijArray< GUM_SCALAR > &from)
virtual GUM_SCALAR & get_(const Instantiation &i) const
Return a data, given a Instantiation.
virtual void replace_(const DiscreteVariable *x, const DiscreteVariable *y)
Replace variable x by y.
virtual const std::string & name() const
Returns the real name of the multiDim implementation.
std::string _name_
The class name.
virtual void commitMultipleChanges_()
Synchronize content after MultipleChanges.
Bijection< const DiscreteVariable *, const DiscreteVariable * > VarBijection
virtual MultiDimBijArray< GUM_SCALAR > * newFactory() const
Class constructor.
virtual GUM_SCALAR get(const Instantiation &i) const
Returns the value pointed by i.
const MultiDimArray< GUM_SCALAR > & _array_
The true data.
virtual Size realSize() const
Returns the real number of parameters used for this table.
virtual void erase(const DiscreteVariable &v)
This will raise an exception: you can't change the variables in a MultiDimBijArray.
virtual ~MultiDimBijArray()
Class destructor.
virtual void add(const DiscreteVariable &v)
This will raise an exception: you can't change the variables in a MultiDimBijArray.
virtual void fill(const GUM_SCALAR &d) const
This will raise an exception: you can't change the data.
virtual void replace_(const DiscreteVariable *x, const DiscreteVariable *y) override
Replace variable x by y.
virtual const Sequence< const DiscreteVariable * > & variablesSequence() const override
Returns a const ref to the sequence of DiscreteVariable*.
HashTable< const Instantiation *, Size > offsets_
The position in the array of each slave Instantiation.
MultiDimWithOffset()
Class constructor.
Size getOffs_(const Instantiation &i) const
Compute the offset of a Instantiation.
virtual void add(const DiscreteVariable &v)
Adds a new var to the variables of the multidimensional matrix.
Exception : operation not allowed.
#define GUM_ERROR(type, msg)
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Headers of the MultiDimBijArray class.
gum is the global namespace for all aGrUM entities