Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Whitelist hypot #442

Closed
ChrisRackauckas opened this issue Oct 7, 2019 · 0 comments · Fixed by JuliaGPU/CUDAnative.jl#571
Closed

Whitelist hypot #442

ChrisRackauckas opened this issue Oct 7, 2019 · 0 comments · Fixed by JuliaGPU/CUDAnative.jl#571
Labels

Comments

@ChrisRackauckas
Copy link
Member

using CuArrays, LinearAlgebra
x = rand(Float32) + rand(Float32)*im
norm.(cu([x])) == norm.([x])
hypot.(cu([real(x)]),cu([imag(x)])) == hypot.([real(x)],[imag(x)])

it warns but isn't necessary. Xref: SciML/DiffEqBase.jl#347

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant