1010#![ allow(
1111 clippy:: many_single_char_names,
1212 clippy:: deref_addrof,
13- clippy:: unreadable_literal,
13+ clippy:: unreadable_literal
1414) ]
1515
1616//! The `ndarray` crate provides an *n*-dimensional container for general elements
106106//!
107107//! If you are looking to generate random arrays instead, check out [`ndarray-rand`](https://crates.io/crates/ndarray-rand).
108108//!
109- //! For conversion between `ndarray`, [`nalgebra`](https://crates.io/crates/nalgebra) and
109+ //! For conversion between `ndarray`, [`nalgebra`](https://crates.io/crates/nalgebra) and
110110//! [`image`](https://crates.io/crates/image) check out [`nshare`](https://crates.io/crates/nshare).
111111
112112#[ cfg( feature = "blas" ) ]
@@ -133,12 +133,14 @@ use crate::iterators::Baseiter;
133133use crate :: iterators:: { ElementsBase , ElementsBaseMut , Iter , IterMut , Lanes , LanesMut } ;
134134
135135pub use crate :: arraytraits:: AsArray ;
136- pub use crate :: linalg_traits:: { LinalgScalar , NdFloat } ;
136+ #[ cfg( feature = "std" ) ]
137+ pub use crate :: linalg_traits:: NdFloat ;
138+ pub use crate :: linalg_traits:: LinalgScalar ;
137139
138140pub use crate :: stacking:: { concatenate, stack, stack_new_axis} ;
139141
140142pub use crate :: impl_views:: IndexLonger ;
141- pub use crate :: shape_builder:: { Shape , StrideShape , ShapeBuilder } ;
143+ pub use crate :: shape_builder:: { Shape , ShapeBuilder , StrideShape } ;
142144
143145#[ macro_use]
144146mod macro_utils;
@@ -147,16 +149,16 @@ mod private;
147149mod aliases;
148150#[ macro_use]
149151mod itertools;
152+ mod argument_traits;
150153#[ cfg( feature = "approx" ) ]
151154mod array_approx;
152155#[ cfg( feature = "serde" ) ]
153156mod array_serde;
154157mod arrayformat;
155158mod arraytraits;
156- mod argument_traits;
157159pub use crate :: argument_traits:: AssignElem ;
158- mod data_traits;
159160mod data_repr;
161+ mod data_traits;
160162
161163pub use crate :: aliases:: * ;
162164
@@ -1599,4 +1601,3 @@ mod impl_cow;
15991601pub ( crate ) fn is_aligned < T > ( ptr : * const T ) -> bool {
16001602 ( ptr as usize ) % :: std:: mem:: align_of :: < T > ( ) == 0
16011603}
1602-
0 commit comments