We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e48d127 commit ef8482fCopy full SHA for ef8482f
lax/src/solve.rs
@@ -42,6 +42,10 @@ macro_rules! impl_solve {
42
43
fn inv(l: MatrixLayout, a: &mut [Self], ipiv: &Pivot) -> Result<()> {
44
let (n, _) = l.size();
45
+ if n == 0 {
46
+ // Do nothing for empty matrices.
47
+ return Ok(());
48
+ }
49
50
// calc work size
51
let mut info = 0;
0 commit comments