Skip to content

Commit

Permalink
Last commit missed one instance -- now updated also
Browse files Browse the repository at this point in the history
  • Loading branch information
anyzelman committed Jan 7, 2025
1 parent e180dc5 commit 498538a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/transition/fuselets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -633,14 +633,11 @@ int doubleUpdate_update_norm2(
}
if( eta != 0.0 && eta != -0.0 ) {
if( eta != 1.0 ) {
rc = rc ? rc : grb::eWiseMul< grb::descriptors::dense >(
alp_r, eta, alp_t, dblSemiring );
} else {
rc = rc ? rc : grb::foldr< grb::descriptors::dense >(
static_cast< double >(1.0) / eta, alp_r, dblTimesMonoid );
}
rc = rc ? rc : grb::foldr< grb::descriptors::dense >(
alp_t, alp_r, dblPlusMonoid );
if( eta != 1.0 ) {
rc = rc ? rc : grb::foldr< grb::descriptors::dense >(
eta, alp_r, dblTimesMonoid );
alp_t, alp_r, dblPlusMonoid );
}
}
if( rc != grb::SUCCESS ) {
Expand Down

0 comments on commit 498538a

Please sign in to comment.