Skip to content

Commit a699e4c

Browse files
committed
Add impls meta module
1 parent 7710322 commit a699e4c

File tree

14 files changed

+26
-24
lines changed

14 files changed

+26
-24
lines changed

src/hermite.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
use ndarray::{Ix2, Array, RcArray};
44
use lapack::c::Layout;
55

6-
use matrix::{Matrix, MFloat};
7-
use square::SquareMatrix;
8-
use error::LinalgError;
9-
use eigh::ImplEigh;
10-
use cholesky::ImplCholesky;
6+
use super::matrix::{Matrix, MFloat};
7+
use super::square::SquareMatrix;
8+
use super::error::LinalgError;
9+
use super::impls::eigh::ImplEigh;
10+
use super::impls::cholesky::ImplCholesky;
1111

1212
pub trait HMFloat: ImplEigh + ImplCholesky + MFloat {}
1313
impl<A: ImplEigh + ImplCholesky + MFloat> HMFloat for A {}
File renamed without changes.
File renamed without changes.

src/impls/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
pub mod outer;
3+
pub mod qr;
4+
pub mod svd;
5+
pub mod eigh;
6+
pub mod opnorm;
7+
pub mod solve;
8+
pub mod cholesky;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/lib.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,14 @@ extern crate num_traits;
3737
#[macro_use(s)]
3838
extern crate ndarray;
3939

40-
pub mod prelude;
40+
pub mod impls;
4141
pub mod error;
42+
4243
pub mod vector;
4344
pub mod matrix;
4445
pub mod square;
4546
pub mod hermite;
4647
pub mod triangular;
4748

48-
pub mod outer;
49-
pub mod qr;
50-
pub mod svd;
51-
pub mod eigh;
52-
pub mod opnorm;
53-
pub mod solve;
54-
pub mod cholesky;
55-
5649
pub mod util;
50+
pub mod prelude;

0 commit comments

Comments
 (0)