You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered this when solving a linear system of equations using LAPACK. Functions like Base.LinAlg.LAPACK.potrs! evaluate stride(B,2) where B is the right hand side. If B is, say, an Array{Float64,1}, this evaluates tolength(B)but ifBis aSubArray{Float64,1}it throws aBoundsError`.
I feel the best thing to do is to change the stride method for SubArray to match the behavior of that for Array but I guess we could instead change the logic in the LAPACK functions.
The text was updated successfully, but these errors were encountered:
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: