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 a72b719 commit 1030fc2Copy full SHA for 1030fc2
examples/column_standardize.rs
@@ -1,5 +1,6 @@
1
use ndarray::prelude::*;
2
3
+#[cfg(feature = "std")]
4
fn main() {
5
// This example recreates the following from python/numpy
6
// counts -= np.mean(counts, axis=0)
@@ -19,3 +20,6 @@ fn main() {
19
20
println!("New mean:\n{:8.4}", data.mean_axis(Axis(0)).unwrap());
21
println!("New std: \n{:8.4}", data.std_axis(Axis(0), 0.));
22
}
23
+
24
+#[cfg(not(feature = "std"))]
25
+fn main() {}
0 commit comments