File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ use eigh::ImplEigh;
10
10
use cholesky:: ImplCholesky ;
11
11
12
12
pub trait HMFloat : ImplEigh + ImplCholesky + MFloat { }
13
- impl HMFloat for f32 { }
14
- impl HMFloat for f64 { }
13
+ impl < A : ImplEigh + ImplCholesky + MFloat > HMFloat for A { }
15
14
16
15
/// Methods for Hermite matrix
17
16
pub trait HermiteMatrix : SquareMatrix + Matrix {
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ use norm::ImplNorm;
11
11
use solve:: ImplSolve ;
12
12
13
13
pub trait MFloat : ImplQR + ImplSVD + ImplNorm + ImplSolve + NdFloat { }
14
- impl MFloat for f32 { }
15
- impl MFloat for f64 { }
14
+ impl < A : ImplQR + ImplSVD + ImplNorm + ImplSolve + NdFloat > MFloat for A { }
16
15
17
16
/// Methods for general matrices
18
17
pub trait Matrix : Sized {
You can’t perform that action at this time.
0 commit comments