-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug 🐞
In the code:
@inline @generated function __safe_axpy!(α, x, y)
hasmethod(axpy!, Tuple{typeof(α), typeof(x), typeof(y)}) || return :(axpy!(α, x, y))
return :(@. y += α * x)
end, a not ! is missing before hasmethod. This causes the code to never actually go to :(axpy!(α, x, y)) (or only when hasmethod is false, potentially causing an exception) .
Expected behavior
Either change hasmethod to !hasmethodor || to && to get the desired behaviour.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working