scipy/scipy — pull request #3620 by andycasey (2014-05-06 20:41:27+00:00)
Title: Include need_contiguous argument in LinearNDInterpolator class

This is a very minor change that permits the use of large, memory-mapped (`np.memmap`) arrays as `points` or `values` in the `LinearNDInterpolator`.

If `need_contiguous` gets passed as `False` to `NDInterpolatorBase` (which is the default behaviour) then any memory-mapped array gets copied-on-read, so any arrays that are larger than the available RAM will raise `MemoryError` exceptions. Allowing `need_contiguous` to be passed as `True` permits memory-mapped arrays to be used correctly in `LinearNDInterpolator` without them needing to be copied on read.