We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58863f3 commit e8a70e5Copy full SHA for e8a70e5
1 file changed
test/StdTest.jl
@@ -288,12 +288,13 @@ end
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
+@testset "to_std_string of jacobian" begin
292
@matrix A
293
- @vector x
+ @vector x y
294
295
@test to_std_string(jacobian(A * x, x)) == "A"
296
@test to_std_string(jacobian(A' * x, x)) == "Aᵀ"
297
+ @test to_std_string(jacobian(sin(A * x + y), x)) == "diag(cos(Ax + y))A"
298
299
300
@testset "to_std_string of derivative {A, A'} * x" begin
0 commit comments