Skip to content

Commit 1d4016b

Browse files
committed
remove geenerate_laplace_options from the expression tests
1 parent 07a2fd6 commit 1d4016b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

stan/math/prim/fun/generate_laplace_options.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include <stan/math/prim/fun/Eigen.hpp>
55
#include <stan/math/prim/meta.hpp>
6+
#include <stan/math/prim/fun/eval.hpp>
67
#include <tuple>
78
#include <utility>
89

@@ -41,7 +42,7 @@ inline auto generate_laplace_options(int theta_0_size) {
4142
template <typename ThetaVec, require_eigen_t<ThetaVec>* = nullptr>
4243
inline auto generate_laplace_options(ThetaVec&& theta_0) {
4344
return std::make_tuple(
44-
std::forward<ThetaVec>(theta_0), internal::laplace_default_tolerance,
45+
stan::math::eval(std::forward<ThetaVec>(theta_0)), internal::laplace_default_tolerance,
4546
internal::laplace_default_max_num_steps, internal::laplace_default_solver,
4647
internal::laplace_default_max_steps_line_search,
4748
internal::laplace_default_allow_fallthrough);

test/sig_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def get_cpp_type(stan_type):
156156
"std_normal_qf", # synonym for inv_Phi
157157
"if_else",
158158
"hypergeometric_3F2", # requires arguments of specific lengths
159+
"generate_laplace_options",
159160
]
160161

161162
# these are all slight renames compared to stan math

0 commit comments

Comments
 (0)