Graphical Model

This commit is contained in:
tqlong
2010-08-15 18:34:25 +00:00
parent 391ec45d66
commit 862c4f6df6
@@ -0,0 +1,11 @@
#include "gm.h"
ostream& operator << (ostream& os, const GM_NAMESPACE::Logarithm& x)
{
return os << "exp(" << x.logValue() << ") = " << x.originalValue();
}
GM_NAMESPACE::Logarithm log(const GM_NAMESPACE::Logarithm& x)
{
return GM_NAMESPACE::Logarithm(x.logValue());
}