Skip to content

Commit

Permalink
Remove gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
lostella authored Dec 29, 2023
1 parent 4c4866b commit 18d139d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ProximalCore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ struct Zero end

(::Zero)(x) = real(eltype(x))(0)

function gradient!(y, f::Zero, x)
y .= eltype(x)(0)
return f(x)
end

function prox!(y, ::Zero, x, gamma)
y .= x
return real(eltype(y))(0)
Expand Down

0 comments on commit 18d139d

Please sign in to comment.