MCPcopy Create free account
hub / github.com/cvxpy/cvxpy / _supports_cpp

Method _supports_cpp

cvxpy/problems/problem.py:309–313  ·  view source on GitHub ↗

Returns True if all the arguments in the problem support cpp backend.

(self)

Source from the content-addressed store, hash-verified

307
308 @perf.compute_once
309 def _supports_cpp(self) -> bool:
310 """
311 Returns True if all the arguments in the problem support cpp backend.
312 """
313 return all(expr._all_support_cpp() for expr in self.constraints + [self.objective.expr])
314
315 @perf.compute_once
316 def is_dgp(self, dpp: bool = False) -> bool:

Callers 3

_aggregate_metricsMethod · 0.95
get_canon_backendFunction · 0.45

Calls 2

allFunction · 0.85
_all_support_cppMethod · 0.80