We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10d7b55 commit d7e5672Copy full SHA for d7e5672
ndarray-linalg/src/eigh.rs
@@ -111,7 +111,17 @@ where
111
{
112
type EigVal = Array1<A::Real>;
113
114
+ /// Solves the generalized eigenvalue problem.
115
+ ///
116
+ /// # Panics
117
118
+ /// Panics if the shapes of the matrices are different.
119
fn eigh_inplace(&mut self, uplo: UPLO) -> Result<(Self::EigVal, &mut Self)> {
120
+ assert_eq!(
121
+ self.0.shape(),
122
+ self.1.shape(),
123
+ "The shapes of the matrices must be identical.",
124
+ );
125
let layout = self.0.square_layout()?;
126
// XXX Force layout to be Fortran (see #146)
127
match layout {
0 commit comments