We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0eeee3 commit dfba2d2Copy full SHA for dfba2d2
1 file changed
test/StdTest.jl
@@ -285,6 +285,7 @@ end
285
@test to_std_string(gradient(sum(x .^ 3), x)) == "3x²"
286
@test to_std_string(gradient(sum((x + y) .^ 2), x)) == "2(x + y)"
287
@test to_std_string(gradient(sum((x .* y) .^ 2), x)) == "2(x ⊙ y ⊙ y)"
288
+ @test to_std_string(gradient(sum((A * x - y) .^ 2), x)) == "2Aᵀ(Ax - y)"
289
end
290
291
@testset "to_std_string of jacobian {A, A'} * x" begin
0 commit comments