0

I am trying to compute the eigenvalues for the Hamiltonian for the 1D Ising Model in a Transverse Field using C in VS Studio. However, I need to use the lapack library and I am struggling with CMAKE to install this. Could anyone help me in how to install this package in VS Studio? Thanks!

I am expecting to be able to use lapack library in my computations.

2
  • Note that "Visual Studio" and "Visual Studio Code" are two totally different tools. So the answer to the question would also be different. Choose the one you are actually using. Commented Aug 13, 2024 at 20:39
  • I am currently using Visual Studio Code Commented Aug 13, 2024 at 20:54

1 Answer 1

1

I was going to post this as a comment, but I don't have enough reputation to so I'll post it as an answer. Feel free to remove it.

CMake isn't a package installer. Looking at your post history, it seems that you might be used to Python and its package installer pip and might be confusing CMake as an analogue. CMake is for building your code: you tell it where you installed packages and how you want things compiled, so you can just run a CMake script to compile your code instead of going command-by-command into the terminal compiling.

You would be better helped if you provided your operating system. I know on Mac you can easily install LAPACK through Homebrew or on Linux through apt-get. Windows is more difficult, and I can't help you with that unless you have an Intel CPU and choose to install Intel's MKL since this is the only way I have ever installed LAPACK on Windows.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.