Add more to the binary operators.

This commit is contained in:
laurent
2023-06-20 09:49:40 +01:00
parent 7a31ba93e4
commit 786544292d
4 changed files with 129 additions and 14 deletions

View File

@ -144,6 +144,7 @@ impl Shape {
pub(crate) fn stride_contiguous(&self) -> Vec<usize> {
self.0
.iter()
.rev()
.scan(1, |prod, u| {
let prod_pre_mult = *prod;
*prod *= u;