Skip to content

Commit 37cf919

Browse files
committed
FIX: Remove internal .inner_rows() which is the same as .rows()
1 parent 113f56c commit 37cf919

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

src/arraytraits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ where
252252
if let Some(self_s) = self.as_slice() {
253253
hash::Hash::hash_slice(self_s, state);
254254
} else {
255-
for row in self.inner_rows() {
255+
for row in self.rows() {
256256
if let Some(row_s) = row.as_slice() {
257257
hash::Hash::hash_slice(row_s, state);
258258
} else {

src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub use crate::slice::{
147147
};
148148

149149
use crate::iterators::Baseiter;
150-
use crate::iterators::{ElementsBase, ElementsBaseMut, Iter, IterMut, Lanes};
150+
use crate::iterators::{ElementsBase, ElementsBaseMut, Iter, IterMut};
151151

152152
pub use crate::arraytraits::AsArray;
153153
#[cfg(feature = "std")]
@@ -1588,12 +1588,6 @@ where
15881588
self.with_strides_dim(s, d)
15891589
}
15901590
}
1591-
1592-
/// n-d generalization of rows, just like inner iter
1593-
fn inner_rows(&self) -> iterators::Lanes<'_, A, D::Smaller> {
1594-
let n = self.ndim();
1595-
Lanes::new(self.view(), Axis(n.saturating_sub(1)))
1596-
}
15971591
}
15981592

15991593
// parallel methods

src/numeric/impl_numeric.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ where
3838
return numeric_util::unrolled_fold(slc, A::zero, A::add);
3939
}
4040
let mut sum = A::zero();
41-
for row in self.inner_rows() {
41+
for row in self.rows() {
4242
if let Some(slc) = row.as_slice() {
4343
sum = sum + numeric_util::unrolled_fold(slc, A::zero, A::add);
4444
} else {
@@ -103,7 +103,7 @@ where
103103
return numeric_util::unrolled_fold(slc, A::one, A::mul);
104104
}
105105
let mut sum = A::one();
106-
for row in self.inner_rows() {
106+
for row in self.rows() {
107107
if let Some(slc) = row.as_slice() {
108108
sum = sum * numeric_util::unrolled_fold(slc, A::one, A::mul);
109109
} else {

0 commit comments

Comments
 (0)