Skip to content

Commit

Permalink
Replace generic-array with a regular array based on min-const-generics.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Jan 3, 2021
1 parent b695aaa commit 2e47518
Show file tree
Hide file tree
Showing 33 changed files with 371 additions and 633 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ libm-force = [ "simba/libm_force" ]

[dependencies]
typenum = "1.12"
generic-array = "0.14"
rand = { version = "0.7", default-features = false }
num-traits = { version = "0.2", default-features = false }
num-complex = { version = "0.3", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions examples/reshaping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

extern crate nalgebra as na;

use na::{DMatrix, Dynamic, Matrix2x3, Matrix3x2, U2, U3};
use na::{DMatrix, Dynamic, Matrix2x3, Matrix3x2, Const};

fn main() {
// Matrices can be reshaped in-place without moving or copying values.
Expand All @@ -16,7 +16,7 @@ fn main() {
1.2, 2.3
);

let m3 = m1.reshape_generic(U3, U2);
let m3 = m1.reshape_generic(Const::<3>, Const::<2>);
assert_eq!(m3, m2);

// Note that, for statically sized matrices, invalid reshapes will not compile:
Expand Down
Loading

0 comments on commit 2e47518

Please sign in to comment.