Skip to content

Commit 763b428

Browse files
committed
Revise doc test
1 parent 85738df commit 763b428

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mgs.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ impl<A: Scalar> MGS<A> {
7474
/// # use ndarray_linalg::*;
7575
/// let mut mgs = MGS::new(3);
7676
/// let coef = mgs.append(array![0.0, 1.0, 0.0], 1e-9).unwrap();
77-
/// close_l2(&coef, &array![1.0], 1e-9).unwrap();
77+
/// close_l2(&coef, &array![1.0], 1e-9);
7878
///
7979
/// let coef = mgs.append(array![1.0, 1.0, 0.0], 1e-9).unwrap();
80-
/// close_l2(&coef, &array![1.0, 1.0], 1e-9).unwrap();
80+
/// close_l2(&coef, &array![1.0, 1.0], 1e-9);
8181
///
8282
/// assert!(mgs.append(array![1.0, 2.0, 0.0], 1e-9).is_err()); // Fail if the vector is linearly dependend
8383
///
8484
/// if let Err(coef) = mgs.append(array![1.0, 2.0, 0.0], 1e-9) {
85-
/// close_l2(&coef, &array![2.0, 1.0, 0.0], 1e-9).unwrap(); // You can get coefficients of dependent vector
85+
/// close_l2(&coef, &array![2.0, 1.0, 0.0], 1e-9); // You can get coefficients of dependent vector
8686
/// }
8787
/// ```
8888
pub fn append<S>(&mut self, a: ArrayBase<S, Ix1>, rtol: A::Real) -> Result<Array1<A>, Array1<A>>
@@ -120,7 +120,7 @@ pub enum Strategy {
120120
/// Orghotonalize dependent vector without adding to Q,
121121
/// thus R must be non-regular like following:
122122
///
123-
/// ```ignore
123+
/// ```text
124124
/// x x x x x
125125
/// 0 x x x x
126126
/// 0 0 0 x x

0 commit comments

Comments
 (0)