Skip to content

Commit 11e69a4

Browse files
committed
Fixed cargo fmt errors.
1 parent b80cccf commit 11e69a4

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

lax/src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ pub trait Lapack: Scalar {
135135
a: &mut [Self],
136136
b: &mut [Self],
137137
thresh_opt: Option<Self::Real>,
138-
) -> Result<(Vec<GeneralizedEigenvalue<Self::Complex>>, Vec<Self::Complex>)>;
138+
) -> Result<(
139+
Vec<GeneralizedEigenvalue<Self::Complex>>,
140+
Vec<Self::Complex>,
141+
)>;
139142

140143
/// Compute right eigenvalue and eigenvectors for a symmetric or Hermitian matrix
141144
fn eigh(
@@ -350,7 +353,10 @@ macro_rules! impl_lapack {
350353
a: &mut [Self],
351354
b: &mut [Self],
352355
thresh_opt: Option<Self::Real>,
353-
) -> Result<(Vec<GeneralizedEigenvalue<Self::Complex>>, Vec<Self::Complex>)> {
356+
) -> Result<(
357+
Vec<GeneralizedEigenvalue<Self::Complex>>,
358+
Vec<Self::Complex>,
359+
)> {
354360
use eig_generalized::*;
355361
let work = EigGeneralizedWork::<$s>::new(calc_v, l)?;
356362
let eig_generalized_owned = work.eval(a, b)?;

ndarray-linalg/src/eig.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,13 @@ where
147147
) -> Result<(Self::EigVal, Self::EigVec)> {
148148
let (mut a, mut b) = (self.0.to_owned(), self.1.to_owned());
149149
let layout = a.square_layout()?;
150-
let (s, t) =
151-
A::eig_generalized(true, layout, a.as_allocated_mut()?, b.as_allocated_mut()?, thresh_opt)?;
150+
let (s, t) = A::eig_generalized(
151+
true,
152+
layout,
153+
a.as_allocated_mut()?,
154+
b.as_allocated_mut()?,
155+
thresh_opt,
156+
)?;
152157
let n = layout.len() as usize;
153158
Ok((
154159
ArrayBase::from(s),

0 commit comments

Comments
 (0)