Skip to content

Commit 3464fe0

Browse files
committed
Fix indices in docs for Solve_::lu()
1 parent 31c7d4f commit 3464fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lapack_traits/solve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ pub trait Solve_: Sized {
1414
/// partial pivoting with row interchanges.
1515
///
1616
/// If the result matches `Err(LinalgError::Lapack(LapackError {
17-
/// return_code )) if return_code > 0`, then `U[(return_code,
18-
/// return_code)]` is exactly zero. The factorization has been completed,
17+
/// return_code )) if return_code > 0`, then `U[(return_code-1,
18+
/// return_code-1)]` is exactly zero. The factorization has been completed,
1919
/// but the factor `U` is exactly singular, and division by zero will occur
2020
/// if it is used to solve a system of equations.
2121
unsafe fn lu(MatrixLayout, a: &mut [Self]) -> Result<Pivot>;

0 commit comments

Comments
 (0)