TensorNetwork icon indicating copy to clipboard operation
TensorNetwork copied to clipboard

lgmres for numpy backend

Open mganahl opened this issue 5 years ago • 3 comments

mganahl avatar Aug 03 '20 19:08 mganahl

It would be super cool if on CPU (or maybe just in NumPy) we could call this code, which is a drop-in replacement to the SciPy version that is apparently 30 times faster: https://github.com/haranjackson/LGMRES. This seems to be possible under the MIT license that it's under, but I'm not sure if it's ok re: Google - we would need to ship the code, and I guess it would need to be compiled.

@Thenerdstation

alewis avatar Aug 07 '20 17:08 alewis

Upon a closer read the code in question only accepts dense matrices (which is weird because the C++ code is actually in terms of a matvec function). So that pretty much sinks that dream.

alewis avatar Aug 07 '20 17:08 alewis

well, we can always write our own extension if we want

mganahl avatar Aug 07 '20 17:08 mganahl