We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72b39f6 commit a764b96Copy full SHA for a764b96
test/diff.jl
@@ -483,3 +483,18 @@ let
483
@test collect(Symbolics.sparsehessian(ex, [a[1]])) == [2;;]
484
@test collect(Symbolics.sparsehessian(ex, a)) == fill(2, 2, 2)
485
end
486
+
487
+# issue #847
488
+let
489
+ @variables x[1:2] y[1:2]
490
+ x = Symbolics.scalarize(x)
491
+ y = Symbolics.scalarize(y)
492
493
+ z = (x[1] + x[2]) * (y[1] + y[2])
494
+ @test Symbolics.islinear(z, x)
495
+ @test Symbolics.isaffine(z, x)
496
497
+ z = (x[1] + x[2])
498
499
500
+end
0 commit comments