# Mathematica, <s>27</s> 30 bytes Any matrix has a [pseudoinverse](https://en.wikipedia.org/wiki/Moore%E2%80%93Penrose_pseudoinverse), and the pseudoinverse is equal to the inverse when the matrix is invertible. Thread[Det@#*PseudoInverse@#]&