Interpolations.jl icon indicating copy to clipboard operation
Interpolations.jl copied to clipboard

Export `getindex!`

Open matthieugomez opened this issue 10 years ago • 2 comments

Would it be possible to export getindex! defined here? It's very useful.

matthieugomez avatar Oct 22 '15 18:10 matthieugomez

I suppose we could, but it feels like a function that we maybe should have imported from base, had it existed there. It doesn't (yet), though...

@timholy, what do you say to this?

tomasaschan avatar Oct 22 '15 20:10 tomasaschan

I've often wanted this from Base. But we can export it even if Base doesn't. The biggest argument against it is that you can do this with copy!(dest, sub(src, indexes...)), except that SubArrays don't take fractional indexes.

timholy avatar Oct 22 '15 21:10 timholy