Skip to content

Commit 4661c41

Browse files
committed
Add new derivative test
1 parent a333bf2 commit 4661c41

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/StdTest.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ end
296296
@test to_std_string(jacobian(A' * x, x)) == "Aᵀ"
297297
end
298298

299+
@testset "to_std_string of derivative {A, A'} * x" begin
300+
@matrix X
301+
@vector x y z
302+
303+
@test to_std_string(derivative(sum(-y .* (X*z)), X)) == "(-1)zyᵀ"
304+
end
305+
299306
@testset "to_std_string of hessian" begin
300307
@matrix A
301308
@vector x

0 commit comments

Comments
 (0)