Skip to content

Commit

Permalink
Merge pull request #385 from hustf/fixSumsqDepr
Browse files Browse the repository at this point in the history
modified:   src/algorithms.jl:328 sumsq->abs2
  • Loading branch information
timholy committed Oct 15, 2015
2 parents a7452f9 + 97137fb commit 8bdbeed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function imlog(sigma::Number=0.5)
end

# Sum of squared differences and sum of absolute differences
for (f, op) in ((:ssd, :(sumsq(x))), (:sad, :(abs(x))))
for (f, op) in ((:ssd, :(abs2(x))), (:sad, :(abs(x))))
@eval begin
function ($f)(A::AbstractArray, B::AbstractArray)
size(A) == size(B) || throw(DimensionMismatch("A and B must have the same size"))
Expand Down

0 comments on commit 8bdbeed

Please sign in to comment.