forked from M-Labs/nalgebra
22 lines
509 B
Rust
22 lines
509 B
Rust
|
#![macro_use]
|
||
|
|
||
|
macro_rules! lapack_check(
|
||
|
($info: expr) => (
|
||
|
// FIXME: return a richer error.
|
||
|
if $info != 0 {
|
||
|
return None;
|
||
|
}
|
||
|
// if $info < 0 {
|
||
|
// return Err(Error::from(ErrorKind::LapackIllegalArgument(-$info)));
|
||
|
// } else if $info > 0 {
|
||
|
// return Err(Error::from(ErrorKind::LapackFailure($info)));
|
||
|
// }
|
||
|
);
|
||
|
);
|
||
|
|
||
|
macro_rules! lapack_panic(
|
||
|
($info: expr) => (
|
||
|
assert!($info == 0, "Lapack error.");
|
||
|
);
|
||
|
);
|