We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ece216 commit b44c0d5Copy full SHA for b44c0d5
stdlib/LinearAlgebra/test/dense.jl
@@ -324,7 +324,9 @@ end
324
@test norm(α*A,Inf) ≈ abs(α)*norm(A,Inf)
325
326
# Triangle inequality
327
- @test norm(A + B,1) <= norm(A,1) + norm(B,1)
+ normAplusB = norm(A + B,1)
328
+ normAplusNormB = norm(A,1) + norm(B,1)
329
+ @test normAplusB <= normAplusNormB || normAplusB ≈ normAplusNormB
330
elty <: Union{BigFloat,Complex{BigFloat},BigInt} || @test norm(A + B) <= norm(A) + norm(B) # two is default
331
@test norm(A + B,Inf) <= norm(A,Inf) + norm(B,Inf)
332
0 commit comments