summaryrefslogtreecommitdiffstats
path: root/sumofsquares/mixins/sosexprmixin.py
diff options
context:
space:
mode:
Diffstat (limited to 'sumofsquares/mixins/sosexprmixin.py')
-rw-r--r--sumofsquares/mixins/sosexprmixin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sumofsquares/mixins/sosexprmixin.py b/sumofsquares/mixins/sosexprmixin.py
index d0c0d17..f3d4dc9 100644
--- a/sumofsquares/mixins/sosexprmixin.py
+++ b/sumofsquares/mixins/sosexprmixin.py
@@ -30,6 +30,10 @@ class SOSExprMixin(GetSOSConstraintMixin, abc.ABC):
return self.underlying.sos_matrix
@property
+ def sos_matrix_vec(self) -> polymatrix.Expression:
+ return self.underlying.sos_matrix_as_vector
+
+ @property
def sos_constraints(self) -> tuple[SOSConstraint]:
return (init_sos_constraint(
dependence=self.dependence,