Andrew Johnson

Results 456 comments of Andrew Johnson

@WardBrian would it be alright for this to go in?

Mostly convenience, since the majority of use-cases with a univariate outcome would be a single set of predictors (e.g., pointwise log-likelihood), so a `real y` and `row_vector x` combo would...

> it is unclear whether or not the user providing external C++ would desire SoA or AoS inputs. Actually, I might reopen sorry. I think that concern is only relevant...

Ahhh that makes sense, fair enough

An issue is going to be that the `relative_tolerance` argument is last and optional, so we wouldn't know if the user's last argument was a tolerance or not. We might...

Thanks Bob, that makes sense to me! In that case it could work to have stanc3 conditionally transpile to `if_else()` when any inputs are containers, otherwise default to the c++...

@WardBrian So the variadic signatures would be: ```stan real integrate_1d (function integrand, real a, real b, ...) real integrate_1d_tol (function integrand, real a, real b, ..., real relative_tolerance) ``` Do...

An alternative would be for the `_tol` signature to have the tolerance argument before the function arguments: ```stan real integrate_1d_tol (function integrand, real a, real b, real relative_tolerance, ...) ```...

This is great! Looking forward to this!