We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25a5834 commit 00be740Copy full SHA for 00be740
include/gemmi.hpp
@@ -108,8 +108,7 @@ struct MatrixSplit {
108
// NOTE 2: I use exponents instead of powers of 2, as I need the former
109
// to shift correctly.
110
frexp(this->powersVector[i], this->scalingExponents.data() + i);
111
- const auto largest_log = log2(this->powersVector[i]);
112
- this->powersVector[i] = std::ldexp(1.0, floor(largest_log) + 1);
+ this->powersVector[i] = std::ldexp(1.0, this->scalingExponents[i]);
113
}
114
115
0 commit comments