4646use ndarray:: * ;
4747use num_traits:: Float ;
4848
49- use super :: convert:: * ;
50- use super :: error:: * ;
51- use super :: layout:: * ;
52- use super :: triangular:: IntoTriangular ;
53- use super :: types:: * ;
49+ use crate :: convert:: * ;
50+ use crate :: error:: * ;
51+ use crate :: layout:: * ;
52+ use crate :: triangular:: IntoTriangular ;
53+ use crate :: types:: * ;
5454
55- pub use lapack_traits:: UPLO ;
55+ pub use crate :: lapack_traits:: UPLO ;
5656
5757/// Cholesky decomposition of Hermitian (or real symmetric) positive definite matrix
5858pub struct CholeskyFactorized < S : Data > {
@@ -194,7 +194,7 @@ pub trait Cholesky {
194194 /// Otherwise, if the argument is `UPLO::Lower`, computes the decomposition
195195 /// `A = L * L^H` using the lower triangular portion of `A` and returns
196196 /// `L`.
197- fn cholesky ( & self , UPLO ) -> Result < Self :: Output > ;
197+ fn cholesky ( & self , uplo : UPLO ) -> Result < Self :: Output > ;
198198}
199199
200200/// Cholesky decomposition of Hermitian (or real symmetric) positive definite matrix
@@ -208,7 +208,7 @@ pub trait CholeskyInto {
208208 /// Otherwise, if the argument is `UPLO::Lower`, computes the decomposition
209209 /// `A = L * L^H` using the lower triangular portion of `A` and returns
210210 /// `L`.
211- fn cholesky_into ( self , UPLO ) -> Result < Self :: Output > ;
211+ fn cholesky_into ( self , uplo : UPLO ) -> Result < Self :: Output > ;
212212}
213213
214214/// Cholesky decomposition of Hermitian (or real symmetric) positive definite mutable reference of matrix
@@ -221,7 +221,7 @@ pub trait CholeskyInplace {
221221 /// U^H * U` using the upper triangular portion of `A` and writes `U`.
222222 /// Otherwise, if the argument is `UPLO::Lower`, computes the decomposition
223223 /// `A = L * L^H` using the lower triangular portion of `A` and writes `L`.
224- fn cholesky_inplace ( & mut self , UPLO ) -> Result < & mut Self > ;
224+ fn cholesky_inplace ( & mut self , uplo : UPLO ) -> Result < & mut Self > ;
225225}
226226
227227impl < A , S > Cholesky for ArrayBase < S , Ix2 >
@@ -271,7 +271,7 @@ pub trait FactorizeC<S: Data> {
271271 /// factorization containing `U`. Otherwise, if the argument is
272272 /// `UPLO::Lower`, computes the decomposition `A = L * L^H` using the lower
273273 /// triangular portion of `A` and returns the factorization containing `L`.
274- fn factorizec ( & self , UPLO ) -> Result < CholeskyFactorized < S > > ;
274+ fn factorizec ( & self , uplo : UPLO ) -> Result < CholeskyFactorized < S > > ;
275275}
276276
277277/// Cholesky decomposition of Hermitian (or real symmetric) positive definite matrix
@@ -284,7 +284,7 @@ pub trait FactorizeCInto<S: Data> {
284284 /// factorization containing `U`. Otherwise, if the argument is
285285 /// `UPLO::Lower`, computes the decomposition `A = L * L^H` using the lower
286286 /// triangular portion of `A` and returns the factorization containing `L`.
287- fn factorizec_into ( self , UPLO ) -> Result < CholeskyFactorized < S > > ;
287+ fn factorizec_into ( self , uplo : UPLO ) -> Result < CholeskyFactorized < S > > ;
288288}
289289
290290impl < A , S > FactorizeCInto < S > for ArrayBase < S , Ix2 >
@@ -335,7 +335,10 @@ pub trait SolveC<A: Scalar> {
335335 /// symmetric) positive definite matrix `A`, where `A` is `self`, `b` is
336336 /// the argument, and `x` is the successful result. The value of `x` is
337337 /// also assigned to the argument.
338- fn solvec_inplace < ' a , S : DataMut < Elem = A > > ( & self , & ' a mut ArrayBase < S , Ix1 > ) -> Result < & ' a mut ArrayBase < S , Ix1 > > ;
338+ fn solvec_inplace < ' a , S : DataMut < Elem = A > > (
339+ & self ,
340+ b : & ' a mut ArrayBase < S , Ix1 > ,
341+ ) -> Result < & ' a mut ArrayBase < S , Ix1 > > ;
339342}
340343
341344impl < A , S > SolveC < A > for ArrayBase < S , Ix2 >
0 commit comments