@@ -314,7 +314,9 @@ inline void set_zero_adjoint(Output&& output) {
314314 static_assert (
315315 sizeof (std::decay_t <output_i_t >*) == 0 ,
316316 " INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
317- " not able to deduce the actions needed for the given type." );
317+ " not able to deduce the actions needed for the given type. "
318+ " This is an internal error, please report it: "
319+ " https://github.com/stan-dev/math/issues" );
318320 }
319321 },
320322 std::forward<Output>(output));
@@ -359,7 +361,9 @@ inline void collect_adjoints(Output& output, Input&& input) {
359361 static_assert (
360362 sizeof (std::decay_t <output_i_t >*) == 0 ,
361363 " INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
362- " not able to deduce the actions needed for the given type." );
364+ " not able to deduce the actions needed for the given type. "
365+ " This is an internal error, please report it: "
366+ " https://github.com/stan-dev/math/issues" );
363367 }
364368 },
365369 std::forward<Output>(output), std::forward<Input>(input));
@@ -813,7 +817,9 @@ inline void collect_adjoints(Output&& output, Input&& input) {
813817 static_assert (
814818 sizeof (std::decay_t <output_i_t >*) == 0 ,
815819 " INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
816- " not able to deduce the actions needed for the given type." );
820+ " not able to deduce the actions needed for the given type. "
821+ " This is an internal error, please report it: "
822+ " https://github.com/stan-dev/math/issues" );
817823 }
818824 },
819825 std::forward<Output>(output), std::forward<Input>(input));
@@ -863,7 +869,9 @@ inline void copy_compute_s2(Output&& output, Input&& input) {
863869 static_assert (
864870 sizeof (std::decay_t <output_i_t >*) == 0 ,
865871 " INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
866- " not able to deduce the actions needed for the given type." );
872+ " not able to deduce the actions needed for the given type. "
873+ " This is an internal error, please report it: "
874+ " https://github.com/stan-dev/math/issues" );
867875 }
868876 },
869877 std::forward<Output>(output), std::forward<Input>(input));
@@ -920,11 +928,11 @@ template <typename Output, typename Input>
920928inline void collect_adjoints (Output&& output, const vari* ret, Input&& input) {
921929 if constexpr (is_tuple_v<Output>) {
922930 static_assert (sizeof (std::decay_t <Output>*) == 0 ,
923- " INTERNAL ERROR:(laplace_marginal_lpdf)"
931+ " INTERNAL ERROR:(laplace_marginal_lpdf) "
924932 " Accumulate Adjoints called on a tuple, but tuples cannot be "
925- " on the reverse mode stack!"
926- " This is an internal error, please report it to the stan "
927- " github as an issue. " );
933+ " on the reverse mode stack! "
934+ " This is an internal error, please report it: "
935+ " https:// github.com/stan-dev/math/issues " );
928936 } else if constexpr (is_std_vector_v<Output>) {
929937 if constexpr (!is_var_v<value_type_t <Output>>) {
930938 const auto output_size = output.size ();
0 commit comments