Skip to content

Commit 5ea9cb0

Browse files
author
Ian
committed
adjusted nalgebra and ndarray imports to fit in with feature declaration
1 parent c85764f commit 5ea9cb0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/traits/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
#[cfg(feature = "convert")]
12
use nalgebra::{Dim, Dyn, U1};
3+
#[cfg(feature = "convert")]
24
use ndarray::ShapeBuilder;
35
use num_traits::float::FloatCore;
46
use num_traits::{Bounded, FromPrimitive, NumCast, One, ToPrimitive, Unsigned, Zero};
@@ -204,6 +206,7 @@ impl<'a, N: Scalar, R: Dim, RStride: Dim, CStride: Dim> IntoNdarray1
204206
}
205207
}
206208

209+
#[cfg(feature = "convert")]
207210
impl<'a, N: Scalar, R: Dim, C: Dim, RStride: Dim, CStride: Dim> IntoNdarray2
208211
for nalgebra::Matrix<N, R, C, nalgebra::ViewStorage<'a, N, R, C, RStride, CStride>>
209212
{

0 commit comments

Comments
 (0)