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.
norm
p
1 parent 3142a5e commit 507cb3bCopy full SHA for 507cb3b
test/dense.jl
@@ -57,14 +57,14 @@ Random.seed!(1234323)
57
@test cond(Mars, Inf) ≈ 7.1
58
end
59
@testset "Empty matrices" begin
60
- for norm in (1,2,Inf)
+ for p in (1,2,Inf)
61
# zero for square (i.e. 0×0) matrices
62
- @test cond(zeros(Int, 0, 0), norm) === 0.0
63
- @test cond(zeros(0, 0), norm) === 0.0
64
- @test cond(zeros(ComplexF64, 0, 0), norm) === 0.0
+ @test cond(zeros(Int, 0, 0), p) === 0.0
+ @test cond(zeros(0, 0), p) === 0.0
+ @test cond(zeros(ComplexF64, 0, 0), p) === 0.0
65
# error for non-square matrices
66
for size in ((10,0), (0,10))
67
- @test_throws DimensionMismatch cond(zeros(size...), norm)
+ @test_throws DimensionMismatch cond(zeros(size...), p)
68
69
70
0 commit comments