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

Method _max_ndim

cvxpy/problems/problem.py:302–306  ·  view source on GitHub ↗

Returns the maximum number of dimensions of any argument in the problem.

(self)

Source from the content-addressed store, hash-verified

300
301 @perf.compute_once
302 def _max_ndim(self) -> int:
303 """
304 Returns the maximum number of dimensions of any argument in the problem.
305 """
306 return max(expr._max_ndim() for expr in self.constraints + [self.objective.expr])
307
308 @perf.compute_once
309 def _supports_cpp(self) -> bool:

Callers 3

_aggregate_metricsMethod · 0.45
get_canon_backendFunction · 0.45

Calls 1

maxClass · 0.50

Tested by 1