Esempio n. 1
0
 def is_dcp(self):
     return not bu.any(self.cvx_mat & self.conc_mat)
Esempio n. 2
0
 def is_concave(self):
     return not bu.any(self.cvx_mat)
Esempio n. 3
0
 def is_convex(self):
     return not bu.any(self.conc_mat)
Esempio n. 4
0
 def is_affine(self):
     return not bu.any(self.cvx_mat | self.conc_mat)
Esempio n. 5
0
 def is_negative(self):
     return not bu.any(self.pos_mat)
Esempio n. 6
0
 def is_positive(self):
     return not bu.any(self.neg_mat)