-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stride behaves differently on subarrays and arrays #4412
Comments
Agreed. I'd noticed this myself, but didn't get around to fixing it. Given the impending 0.2 release, I've done this as a PR: #4416. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I encountered this when solving a linear system of equations using LAPACK. Functions like
Base.LinAlg.LAPACK.potrs!
evaluatestride(B,2)
whereB
is the right hand side. IfB
is, say, anArray{Float64,1}, this evaluates to
length(B)but if
Bis a
SubArray{Float64,1}it throws a
BoundsError`.I feel the best thing to do is to change the
stride
method forSubArray
to match the behavior of that forArray
but I guess we could instead change the logic in the LAPACK functions.The text was updated successfully, but these errors were encountered: