Skip to content

Commit 85738df

Browse files
committed
Rename arnoldi -> mgs
1 parent 3f42447 commit 85738df

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
//! - [Random matrix generators](generate/index.html)
3737
//! - [Scalar trait](types/trait.Scalar.html)
3838
39-
pub mod arnoldi;
4039
pub mod assert;
4140
pub mod cholesky;
4241
pub mod convert;
@@ -47,6 +46,7 @@ pub mod generate;
4746
pub mod inner;
4847
pub mod lapack;
4948
pub mod layout;
49+
pub mod mgs;
5050
pub mod norm;
5151
pub mod operator;
5252
pub mod opnorm;
@@ -66,6 +66,7 @@ pub use eigh::*;
6666
pub use generate::*;
6767
pub use inner::*;
6868
pub use layout::*;
69+
pub use mgs::*;
6970
pub use norm::*;
7071
pub use operator::*;
7172
pub use opnorm::*;

src/arnoldi.rs renamed to src/mgs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl<A: Scalar> MGS<A> {
2121
/// ```rust
2222
/// # use ndarray_linalg::*;
2323
/// const N: usize = 5;
24-
/// let mgs = arnoldi::MGS::<f32>::new(N);
24+
/// let mgs = MGS::<f32>::new(N);
2525
/// assert_eq!(mgs.dim(), N);
2626
/// assert_eq!(mgs.len(), 0);
2727
/// ```
@@ -72,7 +72,7 @@ impl<A: Scalar> MGS<A> {
7272
/// ```rust
7373
/// # use ndarray::*;
7474
/// # use ndarray_linalg::*;
75-
/// let mut mgs = arnoldi::MGS::new(3);
75+
/// let mut mgs = MGS::new(3);
7676
/// let coef = mgs.append(array![0.0, 1.0, 0.0], 1e-9).unwrap();
7777
/// close_l2(&coef, &array![1.0], 1e-9).unwrap();
7878
///

tests/arnoldi.rs renamed to tests/mgs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use ndarray::*;
2-
use ndarray_linalg::{arnoldi::*, *};
2+
use ndarray_linalg::*;
33

44
fn qr_full<A: Scalar + Lapack>() {
55
const N: usize = 5;

0 commit comments

Comments
 (0)