projects
/
libdai.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
765e004
)
Fixed regression in TFactor::partSum
author
Joris Mooij
<jorism@osun.tuebingen.mpg.de>
Thu, 9 Oct 2008 19:41:49 +0000
(21:41 +0200)
committer
Joris Mooij
<jorism@osun.tuebingen.mpg.de>
Thu, 9 Oct 2008 19:41:49 +0000
(21:41 +0200)
include/dai/factor.h
patch
|
blob
|
history
diff --git
a/include/dai/factor.h
b/include/dai/factor.h
index
9e0b42b
..
30871ec
100644
(file)
--- a/
include/dai/factor.h
+++ b/
include/dai/factor.h
@@
-413,11
+413,11
@@
template <typename T> class TFactor {
template<typename T> TFactor<T> TFactor<T>::partSum(const VarSet & ns) const {
-
ns &=
_vs;
+
VarSet res_ns = ns &
_vs;
- TFactor<T> res( ns, 0.0 );
+ TFactor<T> res(
res_
ns, 0.0 );
- IndexFor i_res( ns, _vs );
+ IndexFor i_res(
res_
ns, _vs );
for( size_t i = 0; i < _p.size(); i++, ++i_res )
res._p[i_res] += _p[i];