refactor(math): improve expressions

Improve expressions by passing index, lhs and rhs.
This commit is contained in:
2026-11-01 06:03:04 +01:00
parent 3fca91e1ea
commit de783ad7b7
2 changed files with 5 additions and 14 deletions
+3 -3
View File
@@ -29,9 +29,9 @@ struct generic_binary_op {
}
}
template <typename LT, typename R>
constexpr auto operator()(std::size_t index, LT lhs, const R& rhs) const {
return Op{}(lhs, rhs.coeff(index));
template <typename L, typename R>
constexpr auto operator()(std::size_t index, const L& lhs, const R& rhs) const {
return Op{}(lhs.coeff(index), rhs.coeff(index));
}
};