Skip to content

Commit 065e601

Browse files
committed
Fix norm
1 parent c9857f2 commit 065e601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/linearalgebra/support.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function LinearAlgebra.norm(v::Array{DoubleFloat{T},N}, p::Real=2.0) where {N, T
1616
elseif p==2
1717
return vp = sqrt(sum(v .* v))
1818
else
19-
vp = sum((v).^(p))
19+
vp = sum(abs.(v).^(p))
2020
r = inv(DoubleFloat{T}(p))
2121
return vp^r
2222
end

0 commit comments

Comments
 (0)