Skip to content

Commit

Permalink
Fix reshaping test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Oct 25, 2020
1 parent ce7d767 commit 8e483a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions examples/reshaping.rs
Expand Up @@ -37,8 +37,12 @@ fn main() {
6,
2,
&[
1.0, 0.0, 0.0, 0.0, 0.0, 1.0,
0.0, 0.0, 0.0, 0.0, 1.0, 0.0
1.0, 0.0,
0.0, 1.0,
0.0, 0.0,
0.0, 1.0,
0.0, 0.0,
0.0, 0.0,
],
);

Expand Down
8 changes: 6 additions & 2 deletions src/base/edition.rs
Expand Up @@ -861,8 +861,12 @@ where
/// 6,
/// 2,
/// &[
/// 1.0, 0.0, 0.0, 0.0, 0.0, 1.0,
/// 0.0, 0.0, 0.0, 0.0, 1.0, 0.0
/// 1.0, 0.0,
/// 0.0, 1.0,
/// 0.0, 0.0,
/// 0.0, 1.0,
/// 0.0, 0.0,
/// 0.0, 0.0,
/// ],
/// );
/// let reshaped = dm1.reshape_generic(Dynamic::new(6), Dynamic::new(2));
Expand Down

0 comments on commit 8e483a5

Please sign in to comment.