From 34f11815bb860c0344b974eefa95a15f2b4939fa Mon Sep 17 00:00:00 2001
From: Johan Gronqvist <johan.gronqvist@control.lth.se>
Date: Tue, 30 Apr 2024 03:16:02 +0200
Subject: [PATCH] Fix bug for elementwise bounds of full matrices

---
 src/Gradients.jl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gradients.jl b/src/Gradients.jl
index f1c31ee..e87e3fc 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
-- 
GitLab