From 5080cd568433410460e46e6f0e08e742f01b61db Mon Sep 17 00:00:00 2001 From: Alexander Jaffray Date: Tue, 30 Jan 2024 13:22:13 -0800 Subject: [PATCH] add test for nodes to gradients and convers --- test/testMRIGradients.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/testMRIGradients.jl b/test/testMRIGradients.jl index 12b9fd6..5ebae47 100644 --- a/test/testMRIGradients.jl +++ b/test/testMRIGradients.jl @@ -15,6 +15,12 @@ function test_grads() @test abs.(correctedGradients[end] - -0.0258168) < 1e-6 + nodes = gradients_to_nodes(ones(2,1) .* correctedGradients') + + gradients = nodes_to_gradients(nodes) + + @test sqrt.(sum(abs2,ones(2,1).*correctedGradients' - gradients)) < 1e-9 + end function test_display_girf()