Skip to content

Commit

Permalink
Include (semi-)definite in the description
Browse files Browse the repository at this point in the history
Modifies the docstring to include the (semi-). Otherwise it sounds as though Cholesky is only picked for positive and negative definite operators.
  • Loading branch information
johannahaffner authored and patrick-kidger committed Feb 15, 2025
1 parent fa6c777 commit 52f9d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lineax/_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ class AutoLinearSolver(AbstractLinearSolver[_AutoLinearSolverState], strict=True
- If the operator is diagonal, then use [`lineax.Diagonal`][].
- If the operator is tridiagonal, then use [`lineax.Tridiagonal`][].
- If the operator is triangular, then use [`lineax.Triangular`][].
- If the matrix is positive or negative definite, then use
- If the matrix is positive or negative (semi-)definite, then use
[`lineax.Cholesky`][].
- Else use [`lineax.LU`][].
Expand All @@ -553,7 +553,7 @@ class AutoLinearSolver(AbstractLinearSolver[_AutoLinearSolverState], strict=True
- If the operator is diagonal, then use [`lineax.Diagonal`][].
- If the operator is tridiagonal, then use [`lineax.Tridiagonal`][].
- If the operator is triangular, then use [`lineax.Triangular`][].
- If the matrix is positive or negative definite, then use
- If the matrix is positive or negative (semi-)definite, then use
[`lineax.Cholesky`][].
- Else, use [`lineax.LU`][].
Expand Down

0 comments on commit 52f9d3f

Please sign in to comment.