diff --git a/src/Gradients.jl b/src/Gradients.jl index f1c31eeab6287780706e1d816145208222ab4733..e87e3fca118416a571347cc0c5e5d622e94e1936 100644 --- a/src/Gradients.jl +++ b/src/Gradients.jl @@ -509,7 +509,7 @@ function gradient(sys :: StaticSystem, ps; margin = 1e-3, reltol = 1e-4, abstol (Lower(), Elementwise(), Symm(n)) || (Upper(), Elementwise(), Symm(n)) => scalar_nonneg_s([(k, :bound, bound_ix, r, c) for r in 1:n, c in 1:n if r>=c ]...) (Equal(), Elementwise(), Symm(n)) => scalar_vanishing_s([(k, :bound, bound_ix, r, c) for r in 1:n, c in 1:n if r>=c]...) - (Lower(), Elementwise(), Full(nr, nc)) => scalar_nonneg_prefix_s([(k, :bound, bound_ix, r, c) for r in 1:nr, c in 1:nc]...) + (Lower(), Elementwise(), Full(nr, nc)) => scalar_nonneg_s([(k, :bound, bound_ix, r, c) for r in 1:nr, c in 1:nc]...) (Equal(), Elementwise(), Full(nr, nc)) => scalar_vanishing_s([(k, :bound, bound_ix, r, c) for r in 1:nr, c in 1:nc ]...) (_, _, _) => begin @show bound.dir bound.kind v.shape