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.
1 parent 44b36a6 commit d8fb574Copy full SHA for d8fb574
pytensor/tensor/slinalg.py
@@ -911,7 +911,14 @@ def solve_discrete_lyapunov(
911
A = as_tensor_variable(A)
912
Q = as_tensor_variable(Q)
913
914
- return cast(TensorVariable, _solve_bilinear_direct_lyapunov(A, Q))
+ if method == "direct":
915
+ return _direct_solve_discrete_lyapunov(A, Q)
916
+
917
+ elif method == "bilinear":
918
+ return cast(TensorVariable, _solve_bilinear_direct_lyapunov(A, Q))
919
920
+ else:
921
+ raise ValueError(f"Unknown method {method}")
922
923
924
def solve_continuous_lyapunov(A: TensorVariable, Q: TensorVariable) -> TensorVariable:
0 commit comments