Application of the decomposition method to inversion of matrices