Skip to content

Commit 5e3d735

Browse files
committed
Activate verified jacobian test
1 parent eaf55d7 commit 5e3d735

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/StdTest.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,8 @@ end
371371
@test to_std(jacobian(A * x, x)) == "A"
372372
@test to_std(jacobian(A' * x, x)) == "Aᵀ"
373373
@test to_std(jacobian(sin(A * x + y), x)) == "diag(cos(Ax + y))A"
374-
# TODO: check correctness @test to_std(jacobian(((A .* B) * C * x)' * x * x, x)) == "xᵀCᵀ(Aᵀ ⊙ Bᵀ)xI + x(xᵀCᵀ(Aᵀ ⊙ Bᵀ) + xᵀ(A ⊙ B)C)"
374+
@test to_std(jacobian(((A .* B) * C * x)' * x * x, x)) ==
375+
"xᵀCᵀ(Aᵀ ⊙ Bᵀ)xI + x(xᵀCᵀ(Aᵀ ⊙ Bᵀ) + xᵀ(A ⊙ B)C)"
375376
end
376377

377378
@testset "to_std of derivative {A, A'} * x" begin

0 commit comments

Comments
 (0)