refactor(math): improve expressions
Improve expressions by passing index, lhs and rhs.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user