Code Monkey home page Code Monkey logo

pylanczos's Issues

problem with custom matrix-vector multiplication

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?

cl.exe failed with exit code 2 during installation

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 ?

Problem in installation

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?
微信截图_20220723181759

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.