We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d072154 + 8b96752 commit 07797aaCopy full SHA for 07797aa
cvx/cla/cla.py
@@ -22,6 +22,7 @@
22
23
import logging
24
from dataclasses import dataclass, field
25
+from functools import cached_property
26
from typing import List, Optional
27
28
import numpy as np
@@ -66,7 +67,7 @@ class CLA:
66
67
tol: float = 1e-5
68
logger: logging.Logger = logging.getLogger(__name__)
69
- @property
70
+ @cached_property
71
def P(self):
72
"""
73
Construct the projection matrix used in computing Lagrange multipliers.
@@ -80,7 +81,7 @@ def P(self):
80
81
82
return np.block([self.covariance, self.A.T])
83
84
85
def M(self):
86
87
Construct the Karush-Kuhn-Tucker (KKT) system matrix.
0 commit comments