From bc1b3f199dd7e120e0671142a3533c1d904935aa Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Sun, 21 May 2023 01:43:25 -0700 Subject: [PATCH] Move `Index2D` trait to the matrix module --- src/lib.rs | 1 - src/{ => matrix}/index.rs | 0 src/matrix/mod.rs | 3 ++- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{ => matrix}/index.rs (100%) 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. ///