Page 1 of 1

Best way to compute AB^-1

PostPosted: Thu Feb 04, 2016 7:39 am
by kansloos
Dear all,

Given two matrices A,B. I'm trying to compute AB^-1.
On my frist try I explicitly transposed A and used, dgetrf and dgettrs to solve for X in

B*X = A*

And then transposed the result X once more. Which gives the required answer, but feels hopelessly inefficient.
I was wondering whether there's a better way...