Skip to content

Commit 7ca2f6d

Browse files
author
Andre Zapico
committed
perfect forwarding in parallelizing class
1 parent 6837a52 commit 7ca2f6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stan/math/prim/fun/exp.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ class apply_exp {
7777
for (std::size_t i = r.begin(); i != r.end(); ++i) {
7878
a_out[i] = std::exp(a[i]);
7979
}
80-
return a_out;
80+
return a;
8181
}
82-
apply_exp<Container>(Container a) : my_a(a) {}
82+
apply_exp<Container>(Container&& a) : my_a(a) {}
8383
};
8484

8585
/**

0 commit comments

Comments
 (0)