We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1da6ee0 commit a333bf2Copy full SHA for a333bf2
1 file changed
test/StdTest.jl
@@ -268,7 +268,7 @@ end
268
@test to_std_string(gradient((x + y)' * x, x)) == "2x + y"
269
@test to_std_string(gradient((x - y)' * x, x)) == "2x - y"
270
@test to_std_string(gradient(sin(tr(x * x')), x)) == "2cos(xᵀx)x"
271
- @test to_std_string(gradient(cos(tr(x * x')), x)) == "2sin(xᵀx)(-1)x"
+ @test to_std_string(gradient(cos(tr(x * x')), x)) == "(-2)sin(xᵀx)x"
272
@test to_std_string(gradient(tr(A), x)) == "vec(0)"
273
@test to_std_string(gradient(x' * B' * A * A * x, x)) == "AᵀAᵀBx + BᵀAAx"
274
@test to_std_string(gradient((A' * B * x)' * A * x, x)) == "AᵀAᵀBx + BᵀAAx"
0 commit comments