Ignore lchoose in expression tests#2607
Conversation
WardBrian
left a comment
There was a problem hiding this comment.
LGTM
Why did this pass tests before? Lchoose was still around before the change
|
Because expression templating is used with Eigen inputs (vectors, row vectors, matrices) and signatures without those inputs do not require testing expressions (previously it was only scalars I believe?) |
|
That makes sense. I wonder if this is why the signature was left un vectorized, the tests failed and they just changed it back to scalars only |
|
I doubt it, expressions have been live for 2 release cycles so the expressions testing was added then as well and I dont remember seeing a lchoose PR and I have been following them quite closely in the last year or so. Always an option I missed stuff though :) |
|
Running the full tests on this seems rather unnecessary, doesn't it? |
|
Yeah, probably true, though The bigger issue is #2324 (comment) Given that expressions tests passed we can go ahead and merge it though. |
Summary
stan-dev/stanc3#1010 will add lchoose for vectors, row vectors and arrays. Because lchoose is generated as binomial_coefficient_log in stanc3 we need to add an exception to the expressions tests.
Tests
/
Side Effects
/
Checklist