|
32 | 32 | tmp = Matrix{Float64}(undef, 10, 10)
|
33 | 33 |
|
34 | 34 | for kernel in (kernel1, kernel2)
|
35 |
| - @test kernelmatrix(kernel, X) == trueX |
36 |
| - @test kernelmatrix(kernel, X'; obsdim = 1) == trueX |
| 35 | + @test kernelmatrix(kernel, X) ≈ trueX |
| 36 | + @test kernelmatrix(kernel, X'; obsdim = 1) ≈ trueX |
37 | 37 |
|
38 |
| - @test kernelmatrix(kernel, X, Y) == trueXY |
39 |
| - @test kernelmatrix(kernel, X', Y'; obsdim = 1) == trueXY |
| 38 | + @test kernelmatrix(kernel, X, Y) ≈ trueXY |
| 39 | + @test kernelmatrix(kernel, X', Y'; obsdim = 1) ≈ trueXY |
40 | 40 |
|
41 | 41 | fill!(tmp, 0)
|
42 | 42 | kernelmatrix!(tmp, kernel, X)
|
43 |
| - @test tmp == trueX |
| 43 | + @test tmp ≈ trueX |
44 | 44 |
|
45 | 45 | fill!(tmp, 0)
|
46 | 46 | kernelmatrix!(tmp, kernel, X'; obsdim = 1)
|
47 |
| - @test tmp == trueX |
| 47 | + @test tmp ≈ trueX |
48 | 48 |
|
49 | 49 | fill!(tmp, 0)
|
50 | 50 | kernelmatrix!(tmp, kernel, X, Y)
|
51 |
| - @test tmp == trueXY |
| 51 | + @test tmp ≈ trueXY |
52 | 52 |
|
53 | 53 | fill!(tmp, 0)
|
54 | 54 | kernelmatrix!(tmp, kernel, X', Y'; obsdim = 1)
|
55 |
| - @test tmp == trueXY |
| 55 | + @test tmp ≈ trueXY |
56 | 56 | end
|
57 | 57 | end
|
58 | 58 |
|
|
96 | 96 | tmp = Matrix{Float64}(undef, 10, 10)
|
97 | 97 |
|
98 | 98 | @test kernelmatrix(kernel, X) == trueX
|
99 |
| - @test kernelmatrix(kernel, X'; obsdim = 1) == trueX |
| 99 | + @test kernelmatrix(kernel, X'; obsdim = 1) ≈ trueX |
100 | 100 |
|
101 |
| - @test kernelmatrix(kernel, X, Y) == trueXY |
102 |
| - @test kernelmatrix(kernel, X', Y'; obsdim = 1) == trueXY |
| 101 | + @test kernelmatrix(kernel, X, Y) ≈ trueXY |
| 102 | + @test kernelmatrix(kernel, X', Y'; obsdim = 1) ≈ trueXY |
103 | 103 |
|
104 | 104 | fill!(tmp, 0)
|
105 | 105 | kernelmatrix!(tmp, kernel, X)
|
|
0 commit comments