arpack-sys 0.0.2

FFI bindings to ARPACK-NG (system-linked via pkg-config)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Confirms that the bindings actually resolve at link time. We do not
// drive a real eigenvalue problem here; just take the address of one
// of the C-callable wrappers so the linker has to find the symbol.
// Reading the address through `core::hint::black_box` keeps the
// optimizer from eliding the reference entirely.

use arpack_sys::dsaupd_c;
use core::hint::black_box;

#[test]
fn dsaupd_c_symbol_is_linkable() {
    let addr = dsaupd_c as *const () as usize;
    let _ = black_box(addr);
}