@@ -22,21 +22,21 @@ fn svd_decompose_4x4(bh: &mut criterion::Criterion) {
22
22
}
23
23
24
24
fn svd_decompose_10x10 ( bh : & mut criterion:: Criterion ) {
25
- let m = crate :: reproductible_dmatrix ( 10 , 10 ) ;
25
+ let m = crate :: reproducible_dmatrix ( 10 , 10 ) ;
26
26
bh. bench_function ( "svd_decompose_10x10" , move |bh| {
27
27
bh. iter ( || std:: hint:: black_box ( SVD :: new ( m. clone ( ) , true , true ) ) )
28
28
} ) ;
29
29
}
30
30
31
31
fn svd_decompose_100x100 ( bh : & mut criterion:: Criterion ) {
32
- let m = crate :: reproductible_dmatrix ( 100 , 100 ) ;
32
+ let m = crate :: reproducible_dmatrix ( 100 , 100 ) ;
33
33
bh. bench_function ( "svd_decompose_100x100" , move |bh| {
34
34
bh. iter ( || std:: hint:: black_box ( SVD :: new ( m. clone ( ) , true , true ) ) )
35
35
} ) ;
36
36
}
37
37
38
38
fn svd_decompose_200x200 ( bh : & mut criterion:: Criterion ) {
39
- let m = crate :: reproductible_dmatrix ( 200 , 200 ) ;
39
+ let m = crate :: reproducible_dmatrix ( 200 , 200 ) ;
40
40
bh. bench_function ( "svd_decompose_200x200" , move |bh| {
41
41
bh. iter ( || std:: hint:: black_box ( SVD :: new ( m. clone ( ) , true , true ) ) )
42
42
} ) ;
@@ -50,21 +50,21 @@ fn rank_4x4(bh: &mut criterion::Criterion) {
50
50
}
51
51
52
52
fn rank_10x10 ( bh : & mut criterion:: Criterion ) {
53
- let m = crate :: reproductible_dmatrix ( 10 , 10 ) ;
53
+ let m = crate :: reproducible_dmatrix ( 10 , 10 ) ;
54
54
bh. bench_function ( "rank_10x10" , move |bh| {
55
55
bh. iter ( || std:: hint:: black_box ( m. rank ( 1.0e-10 ) ) )
56
56
} ) ;
57
57
}
58
58
59
59
fn rank_100x100 ( bh : & mut criterion:: Criterion ) {
60
- let m = crate :: reproductible_dmatrix ( 100 , 100 ) ;
60
+ let m = crate :: reproducible_dmatrix ( 100 , 100 ) ;
61
61
bh. bench_function ( "rank_100x100" , move |bh| {
62
62
bh. iter ( || std:: hint:: black_box ( m. rank ( 1.0e-10 ) ) )
63
63
} ) ;
64
64
}
65
65
66
66
fn rank_200x200 ( bh : & mut criterion:: Criterion ) {
67
- let m = crate :: reproductible_dmatrix ( 200 , 200 ) ;
67
+ let m = crate :: reproducible_dmatrix ( 200 , 200 ) ;
68
68
bh. bench_function ( "rank_200x200" , move |bh| {
69
69
bh. iter ( || std:: hint:: black_box ( m. rank ( 1.0e-10 ) ) )
70
70
} ) ;
@@ -78,21 +78,21 @@ fn singular_values_4x4(bh: &mut criterion::Criterion) {
78
78
}
79
79
80
80
fn singular_values_10x10 ( bh : & mut criterion:: Criterion ) {
81
- let m = crate :: reproductible_dmatrix ( 10 , 10 ) ;
81
+ let m = crate :: reproducible_dmatrix ( 10 , 10 ) ;
82
82
bh. bench_function ( "singular_values_10x10" , move |bh| {
83
83
bh. iter ( || std:: hint:: black_box ( m. singular_values ( ) ) )
84
84
} ) ;
85
85
}
86
86
87
87
fn singular_values_100x100 ( bh : & mut criterion:: Criterion ) {
88
- let m = crate :: reproductible_dmatrix ( 100 , 100 ) ;
88
+ let m = crate :: reproducible_dmatrix ( 100 , 100 ) ;
89
89
bh. bench_function ( "singular_values_100x100" , move |bh| {
90
90
bh. iter ( || std:: hint:: black_box ( m. singular_values ( ) ) )
91
91
} ) ;
92
92
}
93
93
94
94
fn singular_values_200x200 ( bh : & mut criterion:: Criterion ) {
95
- let m = crate :: reproductible_dmatrix ( 200 , 200 ) ;
95
+ let m = crate :: reproducible_dmatrix ( 200 , 200 ) ;
96
96
bh. bench_function ( "singular_values_200x200" , move |bh| {
97
97
bh. iter ( || std:: hint:: black_box ( m. singular_values ( ) ) )
98
98
} ) ;
@@ -106,21 +106,21 @@ fn pseudo_inverse_4x4(bh: &mut criterion::Criterion) {
106
106
}
107
107
108
108
fn pseudo_inverse_10x10 ( bh : & mut criterion:: Criterion ) {
109
- let m = crate :: reproductible_dmatrix ( 10 , 10 ) ;
109
+ let m = crate :: reproducible_dmatrix ( 10 , 10 ) ;
110
110
bh. bench_function ( "pseudo_inverse_10x10" , move |bh| {
111
111
bh. iter ( || std:: hint:: black_box ( m. clone ( ) . pseudo_inverse ( 1.0e-10 ) ) )
112
112
} ) ;
113
113
}
114
114
115
115
fn pseudo_inverse_100x100 ( bh : & mut criterion:: Criterion ) {
116
- let m = crate :: reproductible_dmatrix ( 100 , 100 ) ;
116
+ let m = crate :: reproducible_dmatrix ( 100 , 100 ) ;
117
117
bh. bench_function ( "pseudo_inverse_100x100" , move |bh| {
118
118
bh. iter ( || std:: hint:: black_box ( m. clone ( ) . pseudo_inverse ( 1.0e-10 ) ) )
119
119
} ) ;
120
120
}
121
121
122
122
fn pseudo_inverse_200x200 ( bh : & mut criterion:: Criterion ) {
123
- let m = crate :: reproductible_dmatrix ( 200 , 200 ) ;
123
+ let m = crate :: reproducible_dmatrix ( 200 , 200 ) ;
124
124
bh. bench_function ( "pseudo_inverse_200x200" , move |bh| {
125
125
bh. iter ( || std:: hint:: black_box ( m. clone ( ) . pseudo_inverse ( 1.0e-10 ) ) )
126
126
} ) ;
0 commit comments