Skip to content

Commit bda6dde

Browse files
committed
Unite extern crate statement for lapack
1 parent cba5bda commit bda6dde

File tree

6 files changed

+6
-15
lines changed

6 files changed

+6
-15
lines changed

src/eigh.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! Implement eigenvalue decomposition of Hermite matrix
22
3-
extern crate lapack;
4-
5-
use self::lapack::fortran::*;
3+
use lapack::fortran::*;
64
use num_traits::Zero;
75

86
use error::LapackError;

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
//! - [symmetric square root](hermite/trait.HermiteMatrix.html#tymethod.ssqrt)
2525
//! - [WIP] Cholesky factorization
2626
27+
extern crate lapack;
2728
extern crate ndarray;
2829
extern crate num_traits;
2930

src/norm.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! Implement Norms for matrices
22
3-
extern crate lapack;
4-
5-
use self::lapack::fortran::*;
3+
use lapack::fortran::*;
64
use num_traits::Zero;
75

86
pub trait ImplNorm: Sized {

src/qr.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
//! Implement QR decomposition
22
3-
extern crate lapack;
4-
53
use std::cmp::min;
6-
use self::lapack::fortran::*;
4+
use lapack::fortran::*;
75
use num_traits::Zero;
86

97
use error::LapackError;

src/solve.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! Implement linear solver and inverse matrix
22
3-
extern crate lapack;
4-
5-
use self::lapack::fortran::*;
3+
use lapack::fortran::*;
64
use num_traits::Zero;
75

86
use error::LapackError;

src/svd.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! Implement SVD
22
3-
extern crate lapack;
4-
5-
use self::lapack::fortran::*;
3+
use lapack::fortran::*;
64
use num_traits::Zero;
75

86
use error::LapackError;

0 commit comments

Comments
 (0)