|
| 1 | +//! The library facilitates static linking with the [Basic Linear Algebra |
| 2 | +//! Subprograms][1]. |
| 3 | +//! |
| 4 | +//! [1]: http://www.netlib.org/blas/ |
| 5 | +
|
| 6 | +extern crate libc; |
| 7 | + |
| 8 | +use libc::{c_char, c_double, c_int}; |
| 9 | + |
| 10 | +pub use dgemm_ as dgemm; |
| 11 | +pub use dgemv_ as dgemv; |
| 12 | + |
| 13 | +#[link(name = "gfortran")] |
| 14 | +extern { |
| 15 | + /// http://www.netlib.org/lapack/explore-html/dc/da8/dgemv_8f.html |
| 16 | + fn dgemv_(trans: *const c_char, m: *const c_int, n: *const c_int, |
| 17 | + alpha: *const c_double, a: *const c_double, lda: *const c_int, |
| 18 | + x: *const c_double, incx: *const c_int, beta: *const c_double, |
| 19 | + y: *mut c_double, incy: *const c_int); |
| 20 | + |
| 21 | + /// http://www.netlib.org/lapack/explore-html/d7/d2b/dgemm_8f.html |
| 22 | + fn dgemm_(transa: *const c_char, transb: *const c_char, m: *const c_int, |
| 23 | + n: *const c_int, k: *const c_int, alpha: *const c_double, |
| 24 | + a: *const c_double, lda: *const c_int, b: *const c_double, |
| 25 | + ldb: *const c_int, beta: *const c_double, c: *mut c_double, |
| 26 | + ldc: *const c_int); |
| 27 | +} |
0 commit comments