summaryrefslogtreecommitdiffstats
path: root/polymatrix/expression/mixins/determinantexprmixin.py
diff options
context:
space:
mode:
Diffstat (limited to 'polymatrix/expression/mixins/determinantexprmixin.py')
-rw-r--r--polymatrix/expression/mixins/determinantexprmixin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/polymatrix/expression/mixins/determinantexprmixin.py b/polymatrix/expression/mixins/determinantexprmixin.py
index 5b69d3f..5436ed6 100644
--- a/polymatrix/expression/mixins/determinantexprmixin.py
+++ b/polymatrix/expression/mixins/determinantexprmixin.py
@@ -26,8 +26,8 @@ class DeterminantExprMixin(ExpressionBaseMixin):
self,
state: ExpressionState,
) -> tuple[ExpressionState, PolyMatrix]:
- if self in state.cached_polymatrix:
- return state, state.cached_polymatrix[self]
+ if self in state.cache:
+ return state, state.cache[self]
state, underlying = self.underlying.apply(state=state)
@@ -110,7 +110,7 @@ class DeterminantExprMixin(ExpressionBaseMixin):
state = dataclasses.replace(
state,
auxillary_equations=state.auxillary_equations | auxillary_equations,
- cached_polymatrix=state.cached_polymatrix | {self: poly_matrix},
+ cache=state.cache | {self: poly_matrix},
)
return state, poly_matrix