10
10
#![ allow(
11
11
clippy:: many_single_char_names,
12
12
clippy:: deref_addrof,
13
- clippy:: unreadable_literal,
13
+ clippy:: unreadable_literal
14
14
) ]
15
15
16
16
//! The `ndarray` crate provides an *n*-dimensional container for general elements
106
106
//!
107
107
//! If you are looking to generate random arrays instead, check out [`ndarray-rand`](https://crates.io/crates/ndarray-rand).
108
108
//!
109
- //! For conversion between `ndarray`, [`nalgebra`](https://crates.io/crates/nalgebra) and
109
+ //! For conversion between `ndarray`, [`nalgebra`](https://crates.io/crates/nalgebra) and
110
110
//! [`image`](https://crates.io/crates/image) check out [`nshare`](https://crates.io/crates/nshare).
111
111
112
112
#[ cfg( feature = "blas" ) ]
@@ -133,12 +133,14 @@ use crate::iterators::Baseiter;
133
133
use crate :: iterators:: { ElementsBase , ElementsBaseMut , Iter , IterMut , Lanes , LanesMut } ;
134
134
135
135
pub 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 ;
137
139
138
140
pub use crate :: stacking:: { concatenate, stack, stack_new_axis} ;
139
141
140
142
pub use crate :: impl_views:: IndexLonger ;
141
- pub use crate :: shape_builder:: { Shape , StrideShape , ShapeBuilder } ;
143
+ pub use crate :: shape_builder:: { Shape , ShapeBuilder , StrideShape } ;
142
144
143
145
#[ macro_use]
144
146
mod macro_utils;
@@ -147,16 +149,16 @@ mod private;
147
149
mod aliases;
148
150
#[ macro_use]
149
151
mod itertools;
152
+ mod argument_traits;
150
153
#[ cfg( feature = "approx" ) ]
151
154
mod array_approx;
152
155
#[ cfg( feature = "serde" ) ]
153
156
mod array_serde;
154
157
mod arrayformat;
155
158
mod arraytraits;
156
- mod argument_traits;
157
159
pub use crate :: argument_traits:: AssignElem ;
158
- mod data_traits;
159
160
mod data_repr;
161
+ mod data_traits;
160
162
161
163
pub use crate :: aliases:: * ;
162
164
@@ -1599,4 +1601,3 @@ mod impl_cow;
1599
1601
pub ( crate ) fn is_aligned < T > ( ptr : * const T ) -> bool {
1600
1602
( ptr as usize ) % :: std:: mem:: align_of :: < T > ( ) == 0
1601
1603
}
1602
-
0 commit comments