The displace_coordinates function has an efficient method for 2-dimensions, but for >2-dimensions a naive approach that while correct will not scale at all well with increasing dimensions.
There do seem to be some potential options for modifying the approach if needed, and these look like helpful places to start:
The
displace_coordinatesfunction has an efficient method for 2-dimensions, but for >2-dimensions a naive approach that while correct will not scale at all well with increasing dimensions.There do seem to be some potential options for modifying the approach if needed, and these look like helpful places to start: