File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,15 +55,15 @@ using LinearAlgebra: diagm, I
5555 end
5656
5757 @testset " jacobian of sin(A * x + y)" begin
58- jgrad = eval (to_std (jacobian (sin (A * x + y), x); format = dc. Julia ()))
58+ jjac = eval (to_std (jacobian (sin (A * x + y), x); format = dc. Julia ()))
5959
60- @test jgrad (Â, x̂, ŷ) ≈ ForwardDiff. jacobian (x -> sin .(Â * x + ŷ), x̂)
60+ @test jjac (Â, x̂, ŷ) ≈ ForwardDiff. jacobian (x -> sin .(Â * x + ŷ), x̂)
6161 end
6262
6363 @testset " jacobian of (A .* B) * C * x)' * x * x" begin
64- jgrad = eval (to_std (jacobian (((A .* B) * C * x)' * x * x, x); format = dc. Julia ()))
64+ jjac = eval (to_std (jacobian (((A .* B) * C * x)' * x * x, x); format = dc. Julia ()))
6565
66- @test jgrad (x̂, Ĉ, Â, B̂) ≈
66+ @test jjac (x̂, Ĉ, Â, B̂) ≈
6767 ForwardDiff. jacobian (x -> ((Â .* B̂) * Ĉ * x)' * x * x, x̂)
6868 end
6969end
You can’t perform that action at this time.
0 commit comments