1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! Generic real/complex scalar trait wrappers for BLAS and LAPACK routines

pub trait Scalar : Copy{
    type Real;
}

impl Scalar for f32{
    type Real = f32;
}

impl Scalar for f64{
    type Real = f64;
}

impl Scalar for c32{
    type Real = f32;
}

impl Scalar for c64{
    type Real = f64;
}


//#[cfg(not(feature = "simba"))]
//pub use alga::general::{RealField, ComplexField};
//#[cfg(not(feature = "simba"))]
//pub use alga::general::{SubsetOf, SupersetOf};

pub mod simba_feat;

#[cfg(feature = "simba")]
pub use simba_feat::LComplexField;


pub use cblas::Layout as Layout;
pub use cblas::Transpose as Transpose;

pub use num_complex::Complex32 as c32;
pub use num_complex::Complex64 as c64;


pub mod blas;
pub mod lapack;

pub use blas::*;
pub use lapack::*;

#[cfg(test)]
mod tests {
    #[allow(unused_imports)]
    use openblas_src;

    #[test]
    fn link() {
        ()
    }
}