### Best way to compute AB^-1

Posted:

**Thu Feb 04, 2016 7:39 am**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...

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...