invert -> inplace_inverse to avoid name clash with iterators.