Skip to content

Commit

Permalink
Fix 0-sized case
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Sep 29, 2022
1 parent 842ad79 commit db39505
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lax/src/solve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ macro_rules! impl_inv_work {
}

fn calc(&mut self, a: &mut [Self::Elem], ipiv: &Pivot) -> Result<()> {
if self.layout.len() == 0 {
return Ok(());
}
let lwork = self.work.len().to_i32().unwrap();
let mut info = 0;
unsafe {
Expand Down

0 comments on commit db39505

Please sign in to comment.