We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 728d776 commit 6f6996fCopy full SHA for 6f6996f
1 file changed
test/StdTest.jl
@@ -352,6 +352,7 @@ end
352
@test to_std_string(gradient(sum(x .^ 2), x)) == "2x"
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 .^ 2)^2, x)) == "2sum(xᵀ²)2x"
356
@test to_std_string(gradient(sum((x + y) .^ 2), x)) == "2(x + y)"
357
@test to_std_string(gradient(sum((x .* y) .^ 2), x)) == "2(x ⊙ y ⊙ y)"
358
@test to_std_string(gradient(sum((A * x - y) .^ 2), x)) == "2Aᵀ(Ax - y)"
0 commit comments