diff --git a/src/lib.rs b/src/lib.rs index dac2e82..9e54976 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,6 @@ extern crate core; pub mod decompose; -pub mod index; mod matrix; mod util; diff --git a/src/index.rs b/src/matrix/index.rs similarity index 100% rename from src/index.rs rename to src/matrix/index.rs diff --git a/src/matrix/mod.rs b/src/matrix/mod.rs index 648bab9..3145b99 100644 --- a/src/matrix/mod.rs +++ b/src/matrix/mod.rs @@ -1,4 +1,4 @@ -use crate::index::Index2D; +use index::Index2D; use num_traits::{NumOps, One, Zero}; use std::fmt::Debug; @@ -7,6 +7,7 @@ use std::iter::{zip, Flatten, Product, Sum}; use std::ops::{Add, AddAssign, Deref, DerefMut, Index, IndexMut, Mul, MulAssign, Neg}; pub mod ops; +mod index; /// A 2D array of values which can be operated upon. ///