File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -177,23 +177,13 @@ where
177
177
pub trait InverseH {
178
178
type Output ;
179
179
/// Computes the inverse of the Hermitian (or real symmetric) matrix.
180
- ///
181
- /// **Warning: The inverse is stored only in the upper triangular portion
182
- /// of the result matrix!** If you want the lower triangular portion to be
183
- /// correct, you must fill it in according to the results in the upper
184
- /// triangular portion.
185
180
fn invh ( & self ) -> Result < Self :: Output > ;
186
181
}
187
182
188
183
/// An interface for inverting Hermitian (or real symmetric) matrices.
189
184
pub trait InverseHInto {
190
185
type Output ;
191
186
/// Computes the inverse of the Hermitian (or real symmetric) matrix.
192
- ///
193
- /// **Warning: The inverse is stored only in the upper triangular portion
194
- /// of the result matrix!** If you want the lower triangular portion to be
195
- /// correct, you must fill it in according to the results in the upper
196
- /// triangular portion.
197
187
fn invh_into ( self ) -> Result < Self :: Output > ;
198
188
}
199
189
@@ -213,6 +203,7 @@ where
213
203
& self . ipiv ,
214
204
) ?
215
205
} ;
206
+ triangular_fill_hermitian ( & mut self . a , UPLO :: Upper ) ;
216
207
Ok ( self . a )
217
208
}
218
209
}
You can’t perform that action at this time.
0 commit comments