We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 954a857 commit 728d776Copy full SHA for 728d776
1 file changed
test/StdTest.jl
@@ -353,7 +353,7 @@ end
353
@test to_std_string(gradient(sum(x .^ 3), x)) == "3x²"
354
@test to_std_string(gradient(sum(x)^2, x)) == "2sum(xᵀ)vec(1)"
355
@test to_std_string(gradient(sum((x + y) .^ 2), x)) == "2(x + y)"
356
- @test to_std_string(gradient(sum((x .* y) .^ 2), x)) == "2x ⊙ y ⊙ y"
+ @test to_std_string(gradient(sum((x .* y) .^ 2), x)) == "2(x ⊙ y ⊙ y)"
357
@test to_std_string(gradient(sum((A * x - y) .^ 2), x)) == "2Aᵀ(Ax - y)"
358
@test to_std_string(gradient((x' * A * x) ^ (-2), x)) == "(-2)(xᵀAᵀx)⁻³(Aᵀx + Ax)"
359
@test to_std_string(gradient(((A .* B) * C * x)' * x, x)) == "(A ⊙ B)Cx + Cᵀ(Aᵀ ⊙ Bᵀ)x"
0 commit comments