mrcdr / pylanczos Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for Lambda Lanczos
License: MIT License
Python wrapper for Lambda Lanczos
License: MIT License
Hello, when running
pip install pylanczos, I get the following error message :
'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
I am using python 3.9.13. Do I need to have lambda-lanczos installed for pylanczos ?
Thank you for your sharing! But I have a problem during installation: when I download the file and run "python setup.py install " , it comes out an error that: 'pylanczos-master\cpp\pylanczos.hpp(6): fatal error C1083: Unable to open including file: “lambda_lanczos.hpp”: No such file or directory' . Do you have any advice for me to fix it?
I am having trouble with the custom matrix-vector multiplication function, would you please help?
I am trying to adjust your example "sample3_custom.py" to include a "standard" matrix-vector multiplication, with a 2D matrix and a 1D vector, rather than a high-dimensional tensor. Eventually I would like to have a custom function for this, but for now I am just trying to verify that I can make the program work with a minimal example. For this, I have tried to solve the same problem as in your implementation of "sample3_custom.py", using
mat=np.zeros(16,dtype=np.float64).reshape(4,4)
mat[0,0]=1
mat[0,3]=1
mat[1,2]=1
mat[1,3]=1
mat[2,1]=1
mat[2,3]=1
mat[3,0]=1
mat[3,1]=1
mat[3,2]=1
def mv_mul(v_in, v_out):
v_out = np.dot(mat,v_in)
However, this gives an eigenvalue of 0.0, which is not the same as the eigenvalue returned by your tensor-based implementation. I also found eigenvalues of 0.0 for a variety of other problems using a similar approach. Would you please help?
Does this Python interface support the Exponentiator from Lambda Lanczos? Thank you in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.