-
Notifications
You must be signed in to change notification settings - Fork 18
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
no method view(Array{Float64,1}) #29
Comments
as of the latest master, you are allowed to write However, using this view is equal to directly using the array in terms of performance. So it is more sensible to simply use the array itself. using |
I was under the impression that the benefit of unsafe_view was that there was no bounds checking. How is it that using the array directly with bounds checking is as efficient? Sent from my iPhone
|
You may now use for i = 1 : n
@inbounds x[i] = a[i] + b[i]
end In this way, the bounds checking will be disabled when evaluating the expression. This is the recommended way. The |
On 30 Jan 2014, at 9:36 am, Dahua Lin notifications@github.com wrote:
|
My code broke under the new NumericExtensions, looks like a missing implementation of view
WARNING: unsafe_view is deprecated, use view instead.
in unsafe_view at deprecated.jl:8
ERROR: no method view(Array{Float64,1})
in unsafe_view at deprecated.jl:10
The text was updated successfully, but these errors were encountered: