Wrong answers from dot
with a SubArray
that reverts the order of elements on Julia v1.6 and before
#48661
Labels
linear algebra
Linear algebra
Milestone
I am surprised by some wrong answers from
dot
that are illustrated below:The
7.0
returned above seems like coming from a bug that computes what I would expect fordot([1.0, 2.0], view(v1, 3:-1:2))
.Such behavior is not present if the parent vector contains integers:
I noticed the above unexpected results when I was trying to figure out why the CI for a package fails on Julia v1.6 for all platforms. It seems that the above behavior happens on Julia v1.6.7 and older versions but not v1.7 or later.
I am posting my local version info here but I don't think this is platform-specific:
The text was updated successfully, but these errors were encountered: