We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f586ba3 commit f9ac9d4Copy full SHA for f9ac9d4
tests/par_rayon.rs
@@ -73,7 +73,9 @@ fn test_axis_chunks_iter() {
73
}
74
75
#[test]
76
+#[cfg(feature = "approx")]
77
fn test_axis_chunks_iter_mut() {
78
+ use approx::assert_abs_diff_eq;
79
let mut a = Array::linspace(0., 1.0f64, M * N)
80
.into_shape((M, N))
81
.unwrap();
@@ -82,5 +84,5 @@ fn test_axis_chunks_iter_mut() {
82
84
.into_par_iter()
83
85
.for_each(|mut v| v.mapv_inplace(|x| x.exp()));
86
println!("{:?}", a.slice(s![..10, ..5]));
- assert!(a.all_close(&b, 0.001));
87
+ assert_abs_diff_eq!(a, b, epsilon = 0.001);
88
0 commit comments