46
46
use ndarray:: * ;
47
47
use num_traits:: Float ;
48
48
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:: * ;
54
54
55
- pub use lapack_traits:: UPLO ;
55
+ pub use crate :: lapack_traits:: UPLO ;
56
56
57
57
/// Cholesky decomposition of Hermitian (or real symmetric) positive definite matrix
58
58
pub struct CholeskyFactorized < S : Data > {
@@ -194,7 +194,7 @@ pub trait Cholesky {
194
194
/// Otherwise, if the argument is `UPLO::Lower`, computes the decomposition
195
195
/// `A = L * L^H` using the lower triangular portion of `A` and returns
196
196
/// `L`.
197
- fn cholesky ( & self , UPLO ) -> Result < Self :: Output > ;
197
+ fn cholesky ( & self , uplo : UPLO ) -> Result < Self :: Output > ;
198
198
}
199
199
200
200
/// Cholesky decomposition of Hermitian (or real symmetric) positive definite matrix
@@ -208,7 +208,7 @@ pub trait CholeskyInto {
208
208
/// Otherwise, if the argument is `UPLO::Lower`, computes the decomposition
209
209
/// `A = L * L^H` using the lower triangular portion of `A` and returns
210
210
/// `L`.
211
- fn cholesky_into ( self , UPLO ) -> Result < Self :: Output > ;
211
+ fn cholesky_into ( self , uplo : UPLO ) -> Result < Self :: Output > ;
212
212
}
213
213
214
214
/// Cholesky decomposition of Hermitian (or real symmetric) positive definite mutable reference of matrix
@@ -221,7 +221,7 @@ pub trait CholeskyInplace {
221
221
/// U^H * U` using the upper triangular portion of `A` and writes `U`.
222
222
/// Otherwise, if the argument is `UPLO::Lower`, computes the decomposition
223
223
/// `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 > ;
225
225
}
226
226
227
227
impl < A , S > Cholesky for ArrayBase < S , Ix2 >
@@ -271,7 +271,7 @@ pub trait FactorizeC<S: Data> {
271
271
/// factorization containing `U`. Otherwise, if the argument is
272
272
/// `UPLO::Lower`, computes the decomposition `A = L * L^H` using the lower
273
273
/// 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 > > ;
275
275
}
276
276
277
277
/// Cholesky decomposition of Hermitian (or real symmetric) positive definite matrix
@@ -284,7 +284,7 @@ pub trait FactorizeCInto<S: Data> {
284
284
/// factorization containing `U`. Otherwise, if the argument is
285
285
/// `UPLO::Lower`, computes the decomposition `A = L * L^H` using the lower
286
286
/// 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 > > ;
288
288
}
289
289
290
290
impl < A , S > FactorizeCInto < S > for ArrayBase < S , Ix2 >
@@ -335,7 +335,10 @@ pub trait SolveC<A: Scalar> {
335
335
/// symmetric) positive definite matrix `A`, where `A` is `self`, `b` is
336
336
/// the argument, and `x` is the successful result. The value of `x` is
337
337
/// 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 > > ;
339
342
}
340
343
341
344
impl < A , S > SolveC < A > for ArrayBase < S , Ix2 >
0 commit comments