Small improvements
This commit is contained in:
parent
42a5bc493a
commit
80452bf75d
@ -52,7 +52,7 @@ class TFactor
|
|||||||
|
|
||||||
void absorveEvidence (const T& arg, unsigned obsIdx);
|
void absorveEvidence (const T& arg, unsigned obsIdx);
|
||||||
|
|
||||||
void reorderArguments (const vector<T> new_args);
|
void reorderArguments (const vector<T>& new_args);
|
||||||
|
|
||||||
bool contains (const T& arg) const;
|
bool contains (const T& arg) const;
|
||||||
|
|
||||||
@ -225,7 +225,7 @@ TFactor<T>::absorveEvidence (const T& arg, unsigned obsIdx)
|
|||||||
|
|
||||||
|
|
||||||
template <typename T> inline void
|
template <typename T> inline void
|
||||||
TFactor<T>::reorderArguments (const vector<T> new_args)
|
TFactor<T>::reorderArguments (const vector<T>& new_args)
|
||||||
{
|
{
|
||||||
assert (new_args.size() == args_.size());
|
assert (new_args.size() == args_.size());
|
||||||
if (new_args == args_) {
|
if (new_args == args_) {
|
||||||
|
Reference in New Issue
Block a user