コード例 #1
0
ファイル: curvature.py プロジェクト: Russell91/cvxpy
 def is_dcp(self):
     return not bu.any(self.cvx_mat & self.conc_mat)
コード例 #2
0
ファイル: curvature.py プロジェクト: Russell91/cvxpy
 def is_concave(self):
     return not bu.any(self.cvx_mat)
コード例 #3
0
ファイル: curvature.py プロジェクト: Russell91/cvxpy
 def is_convex(self):
     return not bu.any(self.conc_mat)
コード例 #4
0
ファイル: curvature.py プロジェクト: Russell91/cvxpy
 def is_affine(self):
     return not bu.any(self.cvx_mat | self.conc_mat)
コード例 #5
0
ファイル: sign.py プロジェクト: Russell91/cvxpy
 def is_negative(self):
     return not bu.any(self.pos_mat)
コード例 #6
0
ファイル: sign.py プロジェクト: Russell91/cvxpy
 def is_positive(self):
     return not bu.any(self.neg_mat)