Closed nhuurre closed 1 year ago
Merging #1332 (1a77d77) into master (5ae292a) will decrease coverage by
0.04%
. The diff coverage is83.33%
.
@@ Coverage Diff @@
## master #1332 +/- ##
==========================================
- Coverage 88.80% 88.76% -0.04%
==========================================
Files 64 64
Lines 9860 9865 +5
==========================================
+ Hits 8756 8757 +1
- Misses 1104 1108 +4
Impacted Files | Coverage Δ | |
---|---|---|
src/middle/Stan_math_signatures.ml | 98.04% <ø> (-0.02%) |
:arrow_down: |
src/frontend/Semantic_error.ml | 92.74% <75.00%> (-0.77%) |
:arrow_down: |
src/frontend/Typechecker.ml | 89.69% <87.50%> (-0.19%) |
:arrow_down: |
Submission Checklist
reduce_sum
documentation says the array being sliced can contain any type but that's not really true. If you try to use complex number you get a convoluted error.Despite the error saying that only
array[] real
is allowed,reduce_sum
does work with arrays of vectors and matrices as well; it's only the complex number types that are not supported in the math library.This PR adds a new error case that explains the limitations more precisely.
Copyright and Licensing
Copyright holder: Niko Huurre By submitting this pull request, the copyright holder is agreeing to license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)