Skip to content

Commit db39505

Browse files
committed
Fix 0-sized case
1 parent 842ad79 commit db39505

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lax/src/solve.rs

+3
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ macro_rules! impl_inv_work {
176176
}
177177

178178
fn calc(&mut self, a: &mut [Self::Elem], ipiv: &Pivot) -> Result<()> {
179+
if self.layout.len() == 0 {
180+
return Ok(());
181+
}
179182
let lwork = self.work.len().to_i32().unwrap();
180183
let mut info = 0;
181184
unsafe {

0 commit comments

Comments
 (0)