Skip to content

Commit

Permalink
s/factorization/decomposition/g
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Sep 8, 2022
1 parent 7432f02 commit 4fe45f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! -------------------------------
//!
//! This crates provides LAPACK wrapper as `impl` of traits to base scalar types.
//! For example, LU factorization to double-precision matrix is provided like:
//! For example, LU decomposition to double-precision matrix is provided like:
//!
//! ```ignore
//! impl Solve_ for f64 {
Expand Down Expand Up @@ -46,7 +46,7 @@
//! Linear equation, Inverse matrix, Condition number
//! --------------------------------------------------
//!
//! According to the property input metrix, several types of triangular factorization are used:
//! According to the property input metrix, several types of triangular decomposition are used:
//!
//! - [Solve_] trait provides methods for LU-decomposition for general matrix.
//! - [Solveh_] triat provides methods for Bunch-Kaufman diagonal pivoting method for symmetric/hermite indefinite matrix.
Expand Down
8 changes: 4 additions & 4 deletions lax/src/solve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use num_traits::{ToPrimitive, Zero};
#[cfg_attr(doc, katexit::katexit)]
/// Solve linear equations using LU-decomposition
///
/// For a given matrix $A$, LU decomposition is described as $PA = LU$ where
/// For a given matrix $A$, LU decomposition is described as $A = PLU$ where:
///
/// - $L$ is lower matrix
/// - $U$ is upper matrix
Expand All @@ -15,15 +15,15 @@ use num_traits::{ToPrimitive, Zero};
///
/// 1. Factorize input matrix $A$ into $L$, $U$, and $P$.
/// 2. Solve linear equation $Ax = b$ or compute inverse matrix $A^{-1}$
/// using the output of LU factorization.
/// using the output of LU decomposition.
///
pub trait Solve_: Scalar + Sized {
/// Computes the LU factorization of a general $m \times n$ matrix
/// Computes the LU decomposition of a general $m \times n$ matrix
/// with partial pivoting with row interchanges.
///
/// Output
/// -------
/// - $U$ and $L$ are stored in `a` after LU factorization has succeeded.
/// - $U$ and $L$ are stored in `a` after LU decomposition has succeeded.
/// - $P$ is returned as [Pivot]
///
/// Error
Expand Down

0 comments on commit 4fe45f9

Please sign in to comment.