Skip to content
Snippets Groups Projects
Commit 564e2b8b authored by Matthew Johnson's avatar Matthew Johnson
Browse files

add check for last iteration of forward message passing, needed for

inhomog
parent 333903b4
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,9 @@ namespace hmm
return -numeric_limits<Type>::infinity();
}
#endif
ein_potential = ealphan.row(t) * eAs.block(t*M*hetero,0,M,M);
if (likely(t != T-1)) {
ein_potential = ealphan.row(t) * eAs.block(t*M*hetero,0,M,M);
}
}
return logtot;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment