Copy docstring from affine_transform to speedup dynamically.