General inverses of matrices