Skip to content

Commit

Permalink
Bugfix for forgotten std::fmod's.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed May 30, 2024
1 parent 8c472c8 commit 0a22fb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/isometric/unary/arithmetic_vector_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1093,11 +1093,11 @@ TEST_P(DelayedUnaryIsometricModuloVectorZeroedTest, AllZero) {
auto copy = simulated;
if (right) {
for (auto& x : copy) {
x = std::fmod(x, 0.0);
x = careful_modulo(x, 0.0);
}
} else {
for (auto& x : copy) {
x = std::fmod(0.0, x);
x = careful_modulo(0.0, x);
}
}
tatami::DenseRowMatrix<double, int> ref(nrow, ncol, std::move(copy));
Expand Down Expand Up @@ -1152,9 +1152,9 @@ TEST_P(DelayedUnaryIsometricModuloVectorNewTypeTest, Basic) {
auto offset = r * ncol + c;
auto val = vec[row ? r : c];
if (right) {
frefvec[offset] = std::fmod(simulated[offset], val);
frefvec[offset] = careful_modulo(simulated[offset], val);
} else {
frefvec[offset] = std::fmod(val, simulated[offset]);
frefvec[offset] = careful_modulo(val, simulated[offset]);
}

}
Expand Down

0 comments on commit 0a22fb9

Please sign in to comment.