Brian Ward
Brian Ward
@SteveBronder similar to the last PR, the tests for math are passing, the failure is just because the compiler update needs to be merged simultaneously. So this is ready to...
@SteveBronder https://github.com/stan-dev/stanc3/pull/1523 still needs to be reviewed as well so they can be merged together
@SteveBronder I agree with your major comments. I've removed the indexing shorthand and swiched to `{}` for construction and I agree it reads better than before.
Rendered: https://github.com/stan-dev/design-docs/blob/0035-pre-model-gqs/designs/0035-pre-model-gqs.md
> The intention of the function is to add two containers a and b using the log-sum-exp thing and returning again a container, right? Correct, that is what @spinkney requested...
I think the only requirement should be that the containers passed must be the same size, but if one is a row vector and the other is a column vector...
I think the most useful thing would probably be to work over arbitrary containers of the same size. I think the apply_scalar_binary helpers may automate that
I may be misunderstanding, but I think if both arguments are matricies I think it is correct to require them to be the same size. We don’t generally do any...
I believe check_matching_dims does what we’d want it to do for that purpose
@andrjohns the existing function returns a scalar, the feature request was for something that worked element wise and returned a container