@@ -159,7 +159,7 @@ where
159159 A : Scalar ,
160160 S : Data < Elem = A > ,
161161{
162- fn solvec_mut < ' a , Sb > ( & self , b : & ' a mut ArrayBase < Sb , Ix1 > ) -> Result < & ' a mut ArrayBase < Sb , Ix1 > >
162+ fn solvec_inplace < ' a , Sb > ( & self , b : & ' a mut ArrayBase < Sb , Ix1 > ) -> Result < & ' a mut ArrayBase < Sb , Ix1 > >
163163 where
164164 Sb : DataMut < Elem = A > ,
165165 {
@@ -205,7 +205,7 @@ pub trait CholeskyInto {
205205}
206206
207207/// Cholesky decomposition of Hermitian (or real symmetric) positive definite mutable reference of matrix
208- pub trait CholeskyMut {
208+ pub trait CholeskyInplace {
209209 /// Computes the Cholesky decomposition of the Hermitian (or real
210210 /// symmetric) positive definite matrix, writing the result (`L` or `U`
211211 /// according to the argument) to `self` and returning it.
@@ -214,7 +214,7 @@ pub trait CholeskyMut {
214214 /// U^H * U` using the upper triangular portion of `A` and writes `U`.
215215 /// Otherwise, if the argument is `UPLO::Lower`, computes the decomposition
216216 /// `A = L * L^H` using the lower triangular portion of `A` and writes `L`.
217- fn cholesky_mut ( & mut self , UPLO ) -> Result < & mut Self > ;
217+ fn cholesky_inplace ( & mut self , UPLO ) -> Result < & mut Self > ;
218218}
219219
220220impl < A , S > Cholesky for ArrayBase < S , Ix2 >
@@ -238,17 +238,17 @@ where
238238 type Output = Self ;
239239
240240 fn cholesky_into ( mut self , uplo : UPLO ) -> Result < Self > {
241- self . cholesky_mut ( uplo) ?;
241+ self . cholesky_inplace ( uplo) ?;
242242 Ok ( self )
243243 }
244244}
245245
246- impl < A , S > CholeskyMut for ArrayBase < S , Ix2 >
246+ impl < A , S > CholeskyInplace for ArrayBase < S , Ix2 >
247247where
248248 A : Scalar ,
249249 S : DataMut < Elem = A > ,
250250{
251- fn cholesky_mut ( & mut self , uplo : UPLO ) -> Result < & mut Self > {
251+ fn cholesky_inplace ( & mut self , uplo : UPLO ) -> Result < & mut Self > {
252252 unsafe { A :: cholesky ( self . square_layout ( ) ?, uplo, self . as_allocated_mut ( ) ?) ? } ;
253253 Ok ( self . into_triangular ( uplo) )
254254 }
@@ -314,33 +314,33 @@ pub trait CholeskySolve<A: Scalar> {
314314 /// the argument, and `x` is the successful result.
315315 fn solvec < S : Data < Elem = A > > ( & self , b : & ArrayBase < S , Ix1 > ) -> Result < Array1 < A > > {
316316 let mut b = replicate ( b) ;
317- self . solvec_mut ( & mut b) ?;
317+ self . solvec_inplace ( & mut b) ?;
318318 Ok ( b)
319319 }
320320 /// Solves a system of linear equations `A * x = b` with Hermitian (or real
321321 /// symmetric) positive definite matrix `A`, where `A` is `self`, `b` is
322322 /// the argument, and `x` is the successful result.
323323 fn solvec_into < S : DataMut < Elem = A > > ( & self , mut b : ArrayBase < S , Ix1 > ) -> Result < ArrayBase < S , Ix1 > > {
324- self . solvec_mut ( & mut b) ?;
324+ self . solvec_inplace ( & mut b) ?;
325325 Ok ( b)
326326 }
327327 /// Solves a system of linear equations `A * x = b` with Hermitian (or real
328328 /// symmetric) positive definite matrix `A`, where `A` is `self`, `b` is
329329 /// the argument, and `x` is the successful result. The value of `x` is
330330 /// also assigned to the argument.
331- fn solvec_mut < ' a , S : DataMut < Elem = A > > ( & self , & ' a mut ArrayBase < S , Ix1 > ) -> Result < & ' a mut ArrayBase < S , Ix1 > > ;
331+ fn solvec_inplace < ' a , S : DataMut < Elem = A > > ( & self , & ' a mut ArrayBase < S , Ix1 > ) -> Result < & ' a mut ArrayBase < S , Ix1 > > ;
332332}
333333
334334impl < A , S > CholeskySolve < A > for ArrayBase < S , Ix2 >
335335where
336336 A : Scalar ,
337337 S : Data < Elem = A > ,
338338{
339- fn solvec_mut < ' a , Sb > ( & self , b : & ' a mut ArrayBase < Sb , Ix1 > ) -> Result < & ' a mut ArrayBase < Sb , Ix1 > >
339+ fn solvec_inplace < ' a , Sb > ( & self , b : & ' a mut ArrayBase < Sb , Ix1 > ) -> Result < & ' a mut ArrayBase < Sb , Ix1 > >
340340 where
341341 Sb : DataMut < Elem = A > ,
342342 {
343- self . factorizec ( UPLO :: Upper ) ?. solvec_mut ( b)
343+ self . factorizec ( UPLO :: Upper ) ?. solvec_inplace ( b)
344344 }
345345}
346346
0 commit comments