bluss / matrixmultiply

General matrix multiplication of f32 and f64 matrices in Rust. Supports matrices with general strides.
https://docs.rs/matrixmultiply/
Apache License 2.0
213 stars 25 forks source link

Relax debug assertion on strides of C matrix #20

Closed jturner314 closed 6 years ago

jturner314 commented 6 years ago

A stride is irrelevant if the length of its axis is ≤ 1 or if the length of the other axis is 0, since its value is never used in an offset. (There may be an offset of 0 * stride if the length of the axis is 1, but 0 times anything is zero, so the stride is irrelevant.)

bluss commented 6 years ago

Thanks!

jturner314 commented 6 years ago

I rebased off of master, resolved the merge conflicts, and pushed the new version. (The diff is the same.)