Skip to content

Commit ac8c116

Browse files
committed
Fix naming in cholesky module
1 parent d6fd932 commit ac8c116

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/cholesky.rs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ where
9494
}
9595
}
9696

97-
impl<A, S> CholeskyDeterminant for CholeskyFactorized<S>
97+
impl<A, S> DeterminantC for CholeskyFactorized<S>
9898
where
9999
A: Absolute,
100100
S: Data<Elem = A>,
@@ -111,7 +111,7 @@ where
111111
}
112112
}
113113

114-
impl<A, S> CholeskyDeterminantInto for CholeskyFactorized<S>
114+
impl<A, S> DeterminantCInto for CholeskyFactorized<S>
115115
where
116116
A: Absolute,
117117
S: Data<Elem = A>,
@@ -123,7 +123,7 @@ where
123123
}
124124
}
125125

126-
impl<A, S> CholeskyInverse for CholeskyFactorized<S>
126+
impl<A, S> InverseC for CholeskyFactorized<S>
127127
where
128128
A: Scalar,
129129
S: Data<Elem = A>,
@@ -139,7 +139,7 @@ where
139139
}
140140
}
141141

142-
impl<A, S> CholeskyInverseInto for CholeskyFactorized<S>
142+
impl<A, S> InverseCInto for CholeskyFactorized<S>
143143
where
144144
A: Scalar,
145145
S: DataMut<Elem = A>,
@@ -154,7 +154,7 @@ where
154154
}
155155
}
156156

157-
impl<A, S> CholeskySolve<A> for CholeskyFactorized<S>
157+
impl<A, S> SolveC<A> for CholeskyFactorized<S>
158158
where
159159
A: Scalar,
160160
S: Data<Elem = A>,
@@ -255,7 +255,7 @@ where
255255
}
256256

257257
/// Cholesky decomposition of Hermitian (or real symmetric) positive definite matrix reference
258-
pub trait CholeskyFactorize<S: Data> {
258+
pub trait FactorizeC<S: Data> {
259259
/// Computes the Cholesky decomposition of the Hermitian (or real
260260
/// symmetric) positive definite matrix.
261261
///
@@ -268,7 +268,7 @@ pub trait CholeskyFactorize<S: Data> {
268268
}
269269

270270
/// Cholesky decomposition of Hermitian (or real symmetric) positive definite matrix
271-
pub trait CholeskyFactorizeInto<S: Data> {
271+
pub trait FactorizeCInto<S: Data> {
272272
/// Computes the Cholesky decomposition of the Hermitian (or real
273273
/// symmetric) positive definite matrix.
274274
///
@@ -280,7 +280,7 @@ pub trait CholeskyFactorizeInto<S: Data> {
280280
fn factorizec_into(self, UPLO) -> Result<CholeskyFactorized<S>>;
281281
}
282282

283-
impl<A, S> CholeskyFactorizeInto<S> for ArrayBase<S, Ix2>
283+
impl<A, S> FactorizeCInto<S> for ArrayBase<S, Ix2>
284284
where
285285
A: Scalar,
286286
S: DataMut<Elem = A>,
@@ -293,7 +293,7 @@ where
293293
}
294294
}
295295

296-
impl<A, Si> CholeskyFactorize<OwnedRepr<A>> for ArrayBase<Si, Ix2>
296+
impl<A, Si> FactorizeC<OwnedRepr<A>> for ArrayBase<Si, Ix2>
297297
where
298298
A: Scalar,
299299
Si: Data<Elem = A>,
@@ -308,7 +308,7 @@ where
308308

309309
/// Solve systems of linear equations with Hermitian (or real symmetric)
310310
/// positive definite coefficient matrices
311-
pub trait CholeskySolve<A: Scalar> {
311+
pub trait SolveC<A: Scalar> {
312312
/// Solves a system of linear equations `A * x = b` with Hermitian (or real
313313
/// symmetric) positive definite matrix `A`, where `A` is `self`, `b` is
314314
/// the argument, and `x` is the successful result.
@@ -331,7 +331,7 @@ pub trait CholeskySolve<A: Scalar> {
331331
fn solvec_inplace<'a, S: DataMut<Elem = A>>(&self, &'a mut ArrayBase<S, Ix1>) -> Result<&'a mut ArrayBase<S, Ix1>>;
332332
}
333333

334-
impl<A, S> CholeskySolve<A> for ArrayBase<S, Ix2>
334+
impl<A, S> SolveC<A> for ArrayBase<S, Ix2>
335335
where
336336
A: Scalar,
337337
S: Data<Elem = A>,
@@ -345,22 +345,22 @@ where
345345
}
346346

347347
/// Inverse of Hermitian (or real symmetric) positive definite matrix ref
348-
pub trait CholeskyInverse {
348+
pub trait InverseC {
349349
type Output;
350350
/// Computes the inverse of the Hermitian (or real symmetric) positive
351351
/// definite matrix.
352352
fn invc(&self) -> Result<Self::Output>;
353353
}
354354

355355
/// Inverse of Hermitian (or real symmetric) positive definite matrix
356-
pub trait CholeskyInverseInto {
356+
pub trait InverseCInto {
357357
type Output;
358358
/// Computes the inverse of the Hermitian (or real symmetric) positive
359359
/// definite matrix.
360360
fn invc_into(self) -> Result<Self::Output>;
361361
}
362362

363-
impl<A, S> CholeskyInverse for ArrayBase<S, Ix2>
363+
impl<A, S> InverseC for ArrayBase<S, Ix2>
364364
where
365365
A: Scalar,
366366
S: Data<Elem = A>,
@@ -372,7 +372,7 @@ where
372372
}
373373
}
374374

375-
impl<A, S> CholeskyInverseInto for ArrayBase<S, Ix2>
375+
impl<A, S> InverseCInto for ArrayBase<S, Ix2>
376376
where
377377
A: Scalar,
378378
S: DataMut<Elem = A>,
@@ -385,7 +385,7 @@ where
385385
}
386386

387387
/// Determinant of Hermitian (or real symmetric) positive definite matrix ref
388-
pub trait CholeskyDeterminant {
388+
pub trait DeterminantC {
389389
type Output;
390390

391391
/// Computes the determinant of the Hermitian (or real symmetric) positive
@@ -395,15 +395,15 @@ pub trait CholeskyDeterminant {
395395

396396

397397
/// Determinant of Hermitian (or real symmetric) positive definite matrix
398-
pub trait CholeskyDeterminantInto {
398+
pub trait DeterminantCInto {
399399
type Output;
400400

401401
/// Computes the determinant of the Hermitian (or real symmetric) positive
402402
/// definite matrix.
403403
fn detc_into(self) -> Self::Output;
404404
}
405405

406-
impl<A, S> CholeskyDeterminant for ArrayBase<S, Ix2>
406+
impl<A, S> DeterminantC for ArrayBase<S, Ix2>
407407
where
408408
A: Scalar,
409409
S: Data<Elem = A>,
@@ -415,7 +415,7 @@ where
415415
}
416416
}
417417

418-
impl<A, S> CholeskyDeterminantInto for ArrayBase<S, Ix2>
418+
impl<A, S> DeterminantCInto for ArrayBase<S, Ix2>
419419
where
420420
A: Scalar,
421421
S: DataMut<Elem = A>,

0 commit comments

Comments
 (0)