From 7f779277c794723e4b4fdac39f176e0169acf359 Mon Sep 17 00:00:00 2001 From: Daniel Karrasch Date: Wed, 4 May 2022 17:40:52 +0200 Subject: [PATCH] fix tests?? --- test/uniformscalingmap.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/uniformscalingmap.jl b/test/uniformscalingmap.jl index b1084a2c..3a0f177a 100644 --- a/test/uniformscalingmap.jl +++ b/test/uniformscalingmap.jl @@ -21,9 +21,9 @@ using Test, LinearMaps, LinearAlgebra @test @inferred isposdef(Id) @test Id * v == v @test (2 * M' + 3 * I) * v == 2 * A'v + 3v - @test (3 * I + 2 * M') * v == 3v + 2 * A'v + @test (3 * I + 2 * M') * v ≈ 3v + 2 * A'v rtol=2eps() @test (2 * M' - 3 * I) * v == 2 * A'v - 3v - @test (3 * I - 2 * M') * v == 3v - 2 * A'v + @test (3 * I - 2 * M') * v ≈ 3v - 2 * A'v rtol=2eps() @test transpose(LinearMap(2 * M' + 3 * I)) * v ≈ transpose(2 * A' + 3 * I) * v @test LinearMap(2 * M' + 0I)' * v ≈ (2 * A')' * v for λ in (0, 1, rand()), α in (0, 1, rand()), β in (0, 1, rand()), sz in (m, (m,5))