Skip to content

Commit

Permalink
Merge pull request #1877 from andreasnoackjensen/fixintnorm
Browse files Browse the repository at this point in the history
Fix lp-norm for integer vectors
  • Loading branch information
ViralBShah committed Jan 2, 2013
2 parents 58d72f0 + 3464dfb commit cccc489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function norm{T}(x::AbstractVector{T}, p::Number)
end
end
end

norm{T<:Integer}(x::AbstractVector{T}, p::Number) = norm(float(x), p)
norm(x::AbstractVector) = norm(x, 2)

function norm(A::AbstractMatrix, p)
Expand Down

0 comments on commit cccc489

Please sign in to comment.