Conversation
Jenkins Console Log Machine informationNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focalCPU: G++: Clang: |
SteveBronder
left a comment
There was a problem hiding this comment.
Quick Q but looks good
| inline auto read_constrain_sum_to_zero(LP& lp, size_t size) { | ||
| stan::math::check_positive("read_sum_to_zero", "size", size); | ||
| return stan::math::sum_to_zero_constrain<Jacobian>( | ||
| this->read<Ret>(size - 1), lp); |
There was a problem hiding this comment.
Should size - 1 be done at the compiler level? Since we would expect size + 1 to be returned
There was a problem hiding this comment.
I was just going off of what simplex does in the same case (line 547), which does the -1
Jenkins Console Log Machine informationNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focalCPU: G++: Clang: |
Jenkins Console Log Machine informationNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focalCPU: G++: Clang: |
Submission Checklist
./runTests.py src/test/unitmake cpplintSummary
Serializer/deserializer for stan-dev/math#3099
The implementation in the math library is still being discussed, so this should not be merged yet. The main purpose is to let me continue building the end-to-end implementation including the compiler
Intended Effect
How to Verify
Side Effects
Documentation
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Simons Foundation
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: