removed return statements

This commit is contained in:
Marc Haubenstock 2022-05-02 22:49:07 +02:00
parent 9f8cfa207a
commit 71ef287fea

View File

@ -308,7 +308,7 @@ where
res[i] = Complex::new(wr[i].clone(), wi[i].clone()); res[i] = Complex::new(wr[i].clone(), wi[i].clone());
} }
return (res, Some(vl), Some(vr)) (res, Some(vl), Some(vr))
} }
(true, false) => { (true, false) => {
// TODO: avoid the initialization? // TODO: avoid the initialization?
@ -338,7 +338,7 @@ where
res[i] = Complex::new(wr[i].clone(), wi[i].clone()); res[i] = Complex::new(wr[i].clone(), wi[i].clone());
} }
return (res, Some(vl), None) (res, Some(vl), None)
} }
(false, true) => { (false, true) => {
// TODO: avoid the initialization? // TODO: avoid the initialization?
@ -368,7 +368,7 @@ where
res[i] = Complex::new(wr[i].clone(), wi[i].clone()); res[i] = Complex::new(wr[i].clone(), wi[i].clone());
} }
return (res, None, Some(vr)) (res, None, Some(vr))
} }
(false, false) => { (false, false) => {
T::xgeev( T::xgeev(
@ -395,7 +395,7 @@ where
res[i] = Complex::new(wr[i].clone(), wi[i].clone()); res[i] = Complex::new(wr[i].clone(), wi[i].clone());
} }
return (res, None, None) (res, None, None)
} }
} }