Open max-hillsidetec opened 4 months ago
Hi Max!
We are not always able to work directly with "views", which necessitates us to copy arrays for sgesv
/ dgesv
. The copying does not involve the entire original matrix but only the part indicated by the strides.
Nonetheless, I will take a closer look at this area to see if there's potential for performance improvement.
Hi Pavel,
Thanks very much for taking a look! It looks like if an NDArray is consistent, then deep copy may not be necessary.
Hi guys,
I saw functions in NativeLinAlgEx in multi-openblas deep copy the input arrays. Some of the examples are shown below.
I wonder whether deep copy is in fact needed. In our use cases, we slice a matrix many times and pass the sub-matrices to the solver. Deep copying them is suboptimal.
Thanks in advance for your help!
Best, Max