Skip to content

Commit 6eb1d85

Browse files
committed
Avoid calculating eigenvectors unless requested
1 parent 91b2be2 commit 6eb1d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ndarray-linalg/src/eig.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ where
7272

7373
fn eigvals(&self) -> Result<Self::EigVal> {
7474
let mut a = self.to_owned();
75-
let (s, _) = A::eig(true, a.square_layout()?, a.as_allocated_mut()?)?;
75+
let (s, _) = A::eig(false, a.square_layout()?, a.as_allocated_mut()?)?;
7676
Ok(ArrayBase::from(s))
7777
}
7878
}

0 commit comments

Comments
 (0)