Skip to content

Commit 1fe532e

Browse files
committed
new b-slice code
1 parent 047f363 commit 1fe532e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/rna_polytope.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace pmfe {
3737
ParameterVector fv_to_pv(BBP::FVector v, Rational multi) {
3838
ParameterVector pv(
3939
mpq_class(v.cartesian(0).mpq()),
40-
multi,
40+
multi * mpq_class(v.cartesian(2).mpq()),
4141
mpq_class(v.cartesian(1).mpq()),
4242
mpq_class(v.cartesian(2).mpq())
4343
);
@@ -117,11 +117,10 @@ namespace pmfe {
117117
};
118118

119119
BBP::FPoint RNAPolytope::remove_b_param(BBP::FPoint point, ParameterVector p){
120-
Rational scale = p.dummy_scaling != 0 ? p.dummy_scaling : 1;
121120
BBP::FPoint out(
122121
point.homogeneous(0),
123122
point.homogeneous(2),
124-
point.homogeneous(3)+((point.homogeneous(1) * multiloop_weight) / scale),
123+
point.homogeneous(3)+((point.homogeneous(1) * multiloop_weight)),
125124
1
126125
);
127126
return out;

0 commit comments

Comments
 (0)