We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am not sure whether this is a bug or if it works as intended, but I stumbled upon it when I wanted to rid my code of allocations:
f(x, y) = x * y a = SVector(1., 1.) b = (1., 1.) map(f, a, b)
Since this creates a Vector{Float64} instead of an SVector{2, Float64}, it allocates, while f.(a, b) does not.
Vector{Float64}
SVector{2, Float64}
f.(a, b)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am not sure whether this is a bug or if it works as intended, but I stumbled upon it when I wanted to rid my code of allocations:
Since this creates a
Vector{Float64}
instead of anSVector{2, Float64}
, it allocates, whilef.(a, b)
does not.The text was updated successfully, but these errors were encountered: