From 0113dee933cf9ef58b0993197b2d769676cdbb53 Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Sun, 29 Jan 2023 17:34:52 +0100 Subject: [PATCH] Fix misleading documentation about tridiagonal matrices --- lax/src/tridiagonal/matrix.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lax/src/tridiagonal/matrix.rs b/lax/src/tridiagonal/matrix.rs index 47401430..3e64bdd6 100644 --- a/lax/src/tridiagonal/matrix.rs +++ b/lax/src/tridiagonal/matrix.rs @@ -5,11 +5,11 @@ use std::ops::{Index, IndexMut}; /// Represents a tridiagonal matrix as 3 one-dimensional vectors. /// /// ```text -/// [d0, u1, 0, ..., 0, -/// l1, d1, u2, ..., -/// 0, l2, d2, -/// ... ..., u{n-1}, -/// 0, ..., l{n-1}, d{n-1},] +/// [ d[0], du[0], 0 , ..., 0, +/// dl[0], d[1], du[1], ..., +/// 0 , dl[1], d[2], +/// ... ..., du[n-2], +/// 0 , ..., ..., dl[n-2], d[n-1]] /// ``` #[derive(Clone, PartialEq, Eq)] pub struct Tridiagonal {