From 5cdebc8eaf90726fafcd6069f29b8a2074d51b79 Mon Sep 17 00:00:00 2001
From: Johan Gronqvist <johan.gronqvist@control.lth.se>
Date: Tue, 30 Apr 2024 03:15:39 +0200
Subject: [PATCH] Add implmentation of elementwise bounds of full matrices

---
 src/Gradients.jl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Gradients.jl b/src/Gradients.jl
index a896aab..f1c31ee 100644
--- a/src/Gradients.jl
+++ b/src/Gradients.jl
@@ -284,6 +284,9 @@ function compute_standard_form(sys :: StaticSystem, ps; margin, debug = false, t
                             end
                             Abc.b[S_ixs[(k, :bound, bound_ix)]] += sign*value
                         end
+                        (value, Elementwise(), Full(nr,nc)) => begin
+                            [ set_bound(sign, k, bound_ix, value, r, c) for r in 1:nr for c in 1:nc ]
+                        end
                         (_, _, Full(nr, nc)) => @error "Full matrix not yet implemented"
                             
                         (_, _, _) => begin
-- 
GitLab