Skip to content

Commit c73b899

Browse files
committed
include require for exp2 for eigen var types
1 parent 6c16889 commit c73b899

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stan/math/rev/fun/exp2.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ inline var exp2(const var& a) {
4141
});
4242
}
4343

44-
template <typename T>
44+
template <typename T, require_eigen_t<T>* = nullptr>
4545
inline auto exp2(const var_value<T>& a) {
4646
return make_callback_var(
4747
a.val().unaryExpr([](auto&& x) { return std::exp2(x); }),

0 commit comments

Comments
 (0)