double m20 = this.m20, m21 = this.m21;
// compute the determinant, storing the subdeterminants for later use
double det = m00*m11 - m10*m01;
if (Math.abs(det) == 0f) {
// determinant is zero; matrix is not invertible
throw new SingularMatrixException(this.toString());
}
double rdet = 1f / det;
return result.set(+m11 * rdet,
-m10 * rdet,
+(m10*m21 - m20*m11) * rdet,