File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -343,12 +343,12 @@ end
343343 @test to_std_string (gradient (x' * sin (y) * a, x)) == " asin(y)"
344344 @test to_std_string (gradient (y' * sin (x) * a, x)) == " a(cos(x) ⊙ y)"
345345 @test to_std_string (gradient (sum (x), x)) == " vec(1)"
346- @test_broken to_std_string (gradient (2 * sum (x), x)) == " 2(vec(1) )"
347- @test_broken to_std_string (gradient (sum (2 * x), x)) == " 2(vec(1) )"
346+ @test to_std_string (gradient (2 * sum (x), x)) == " 2vec(1 )"
347+ @test to_std_string (gradient (sum (2 * x), x)) == " 2vec(1 )"
348348 @test to_std_string (gradient (sum (x .^ 2 ), x)) == " 2x"
349349 @test to_std_string (gradient (sum (x .^ 3 ), x)) == " 3x²"
350350 @test to_std_string (gradient (sum ((x + y) .^ 2 ), x)) == " 2(x + y)"
351- @test_broken to_std_string (gradient (sum ((x .* y) .^ 2 ), x)) == " 2(x ⊙ y ⊙ y) "
351+ @test to_std_string (gradient (sum ((x .* y) .^ 2 ), x)) == " 2x ⊙ y ⊙ y"
352352 @test to_std_string (gradient (sum ((A * x - y) .^ 2 ), x)) == " 2Aᵀ(Ax - y)"
353353 @test to_std_string (gradient ((x' * A * x) .^ (- 2 ), x)) == " (-2)(xᵀAᵀx)⁻³(Aᵀx + Ax)"
354354 @test to_std_string (gradient (((A .* B) * C * x)' * x, x)) == " (A ⊙ B)Cx + Cᵀ(Aᵀ ⊙ Bᵀ)x"
You can’t perform that action at this time.
0 commit comments