-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to solve Ax=b , where A is a symmetry matrix . #28
Comments
If A is positiv definite use the cholesky factorization (flens::lapack::potrf). Lapack documentation: http://www.netlib.org/lapack/explore-html/d1/d7a/group__double_p_ocomputational_ga2f55f604a6003d03b5cd4a0adcfb74d6.html If A is not positive definite use the Bunch-Kaufman diagonal pivoting method (flens::sy::trf). Lapack documentation: |
Thank you very much. In my problem, I need to solve Ax=b repeatly where the matrix A doesn't change. |
It is already separated. flens::lapack::potrf and flens::sy::trf are computing the factorization. flens::lapack::potrs and flens::sy::trs solve the equation and require that the matrix was previously factorized. Exactly how this is handled by LAPACK with 1) dgepotrf and dgepotrs or 2) dgesytrf and dgesytrs: and and |
Thanks. |
Is this a question or an observation? What type does A have? GeMatrix or SyMatrix? |
I tired to compile the "lapack-potrs.cc", the compiler feedback the following error: /flens/storage/array/arrayview.tcc:202:17: error: cannot convert ‘flens::ArrayView<double, flens::IndexOptions<>, std::allocator >::firstIndex’ from type ‘flens::ArrayView<double, flens::IndexOptions<>, std::allocator >::IndexType (flens::ArrayView<double, flens::IndexOptions<>, std::allocator >::)() const {aka int (flens::ArrayView<double, flens::IndexOptions<>, std::allocator >::)() const}’ to type ‘flens::ArrayView<double, flens::IndexOptions<>, std::allocator >::IndexType {aka int}’ Could you please help me out. |
There seemed to be an issue with gcc 11. After fixing an missing include I can compile lapack-potrs.cc in flens/examples as follows: g++-11 -Wall -std=c++11 -I /Users/lehn/work/FLENS lapack-potrs.cc This is not using an external LAPACK.
|
I compiled it in the KDevelop 4 with cmake, it gives me the above error. I still cann't make it work. I tried to compile it in the terminal wth : |
I am not familiar with KDevelop 4. But I compiling it on the terminal works it is just a matter of configuring the IDE. Most likely you just have to specify the correct compiler flags somewhere. Is there a way to see how KDevelop 4 invokes the compiler? |
Which function should i use.
The text was updated successfully, but these errors were encountered: