Re: [Numpy-discussion] Array blitting (pasting one array into another)

2017-06-30 Thread Joseph Fox-Rabinovitz
If you are serious about adding this to numpy, an even better option might be to create a pull request with the implementation and solicit comments on that. The problem lends itself to an easy solution in pure Python, so this should not be too hard to do. -Joe On Fri, Jun 30, 2017 at 4:08 PM

Re: [Numpy-discussion] Array blitting (pasting one array into another)

2017-06-30 Thread Mikhail V
On 30 June 2017 at 03:34, Joseph Fox-Rabinovitz wrote: > This is a useful idea certainly. I would recommended extending it to an > arbitrary number of axes. You could either raise an error if the ndim of the > two arrays are unequal, or allow a broadcast of a lesser ndimmed src array. > Now I am

Re: [Numpy-discussion] Array blitting (pasting one array into another)

2017-06-29 Thread Sebastian Berg
On Fri, 2017-06-30 at 02:16 +0200, Mikhail V wrote: > Hello all > > I often need to copy one array into another array, given an offset. > This is how the "blit" function can be understood, i.e. in > every graphical lib there is such a function. > The common definition is like: > blit ( dest, src,

Re: [Numpy-discussion] Array blitting (pasting one array into another)

2017-06-29 Thread Joseph Fox-Rabinovitz
This is a useful idea certainly. I would recommended extending it to an arbitrary number of axes. You could either raise an error if the ndim of the two arrays are unequal, or allow a broadcast of a lesser ndimmed src array. - Joe On Jun 29, 2017 20:17, "Mikhail V" wrote: > Hello all > > I ofte

[Numpy-discussion] Array blitting (pasting one array into another)

2017-06-29 Thread Mikhail V
Hello all I often need to copy one array into another array, given an offset. This is how the "blit" function can be understood, i.e. in every graphical lib there is such a function. The common definition is like: blit ( dest, src, offset ): where dest is destination array, src is source array and