Skip to content

Commit 5f7da15

Browse files
committed
fix reduce_sum_static
1 parent f2c7505 commit 5f7da15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stan/math/prim/functor/reduce_sum_static.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ auto reduce_sum_static(Vec&& vmapped, int grainsize, std::ostream* msgs,
5858
return return_type(0);
5959
}
6060

61-
return ReduceFunction()(0, vmapped.size() - 1, std::forward<Vec>(vmapped),
61+
return ReduceFunction()(std::forward<Vec>(vmapped), 0, vmapped.size() - 1,
6262
msgs, std::forward<Args>(args)...);
6363
#endif
6464
}

0 commit comments

Comments
 (0)