AtheMathmo / rulinalg

A linear algebra library written in Rust

Home Page:https://crates.io/crates/rulinalg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a new `is_data_contiguous` function

AtheMathmo opened this issue · comments

We have discussed around this before - it was most recently suggested in #86 .

I think this is a useful utility function that we could have on the BaseMatrix trait. The default implementation would check that the row stride and column count are the same (I think?). We would override the function for Matrix to always return true.

We could then use this check to improve our iterators and perhaps also a few other areas of code.