diff --git a/src/linalg/inverse.rs b/src/linalg/inverse.rs index f07be14a..ad6f96b4 100644 --- a/src/linalg/inverse.rs +++ b/src/linalg/inverse.rs @@ -9,6 +9,10 @@ use crate::linalg::lu; impl> SquareMatrix { /// Attempts to invert this matrix. + /// + /// # Panics + /// + /// It's unable to invert a non-square matrix so it panics in such case. #[inline] #[must_use = "Did you mean to use try_inverse_mut()?"] pub fn try_inverse(self) -> Option> @@ -27,6 +31,10 @@ impl> SquareMatrix { impl> SquareMatrix { /// Attempts to invert this matrix in-place. Returns `false` and leaves `self` untouched if /// inversion fails. + /// + /// # Panics + /// + /// It's unable to invert a non-square matrix so it panics in such case. #[inline] pub fn try_inverse_mut(&mut self) -> bool where