| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
LGTM.
Maybe we should start suggesting/requiring range-based loops where possible instead to avoid this?
Sorry, something went wrong.
|
That would be nice where it's possible. I wonder if there is a linter rule we could turn on, because enforcing it manually seems impossible to do consistently. |
Sorry, something went wrong.
|
Thank you for the fast fix! |
Sorry, something went wrong.
Jenkins Console Log Machine information No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal CPU: G++: Clang: |
Sorry, something went wrong.
|
Thank you for the fast fix on this issue, @WardBrian. Do you know when these changes are expected to be released in an upcoming cmdstan version? cc @skiptoniam |
Sorry, something went wrong.
|
@tillahoffmann the next release is scheduled for October 7th |
Sorry, something went wrong.
|
Great, thank you! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Reported by @tillahoffmann on the forums: https://discourse.mc-stan.org/t/debugging-gp-matern32-cov/35502.
One of the overloads of gp_matern32_cov was using x_size to index over a variable that actually had length l_size. Presumably a copy/paste error.
Tests
I added a minified version of their reproducer. The behavior is undefined in the bug case, so unfortunately the test is not guaranteed to fail on all systems if the bug is re-introduced.
Side Effects
None
Release notes
Fixed an indexing bug inside gp_matern32_cov
Checklist
Copyright holder: Simons Foundation
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
the basic tests are passing
the code is written in idiomatic C++ and changes are documented in the doxygen
the new changes are tested