简体   繁体   中英

Lapack to solve A*X=B'

I would like to solve a linear system of the form A*X=B' , where B' is the transpose of B . A is a square matrix N-by-N and B is N-by-M . In lapack/lapacke, the function LAPACKE_dgesv (see an example here ) is used to solve systems of the form A*X=B , where B is treated as multiple right-hand side vectors. Is it possible to solve a system of the form A*X=B' without having to create a copy of B as Z=B' by re-ordering its values and then solve A*X=Z ?

To the very best of my knowledge, LAPACK offers no such functionality. You have to perform the transpose of B outside the calls to LAPACK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM