Re: [Numpy-discussion] converting list of int16 values to bitmask and back to bitmask and back to list of int32\float values

2017-10-08 Thread Thomas Jollans
On 08/10/17 22:50, Thomas Jollans wrote: > On 08/10/17 09:12, Nissim Derdiger wrote: >> Hi again, >> I realize that my question was not clear enough, so I've refined it into one >> runnable function (attached below) >> My question is basically - is there a way to perform the same operation, but >

Re: [Numpy-discussion] converting list of int16 values to bitmask and back to bitmask and back to list of int32\float values

2017-10-08 Thread Thomas Jollans
On 08/10/17 09:12, Nissim Derdiger wrote: > Hi again, > I realize that my question was not clear enough, so I've refined it into one > runnable function (attached below) > My question is basically - is there a way to perform the same operation, but > faster using NumPy (or even just by using Pyth

Re: [Numpy-discussion] List comprehension and loops performances with NumPy arrays

2017-10-08 Thread Andrea Gavana
On Sat, 7 Oct 2017 at 16.59, Nicholas Nadeau wrote: > Hi Andrea! > > Checkout the following SO answers for similar contexts: > - > https://stackoverflow.com/questions/22108488/are-list-comprehensions-and-functional-functions-faster-than-for-loops > - > https://stackoverflow.com/questions/30245397

Re: [Numpy-discussion] converting list of int16 values to bitmask and back to bitmask and back to list of int32\float values

2017-10-08 Thread Nissim Derdiger
Hi again, I realize that my question was not clear enough, so I've refined it into one runnable function (attached below) My question is basically - is there a way to perform the same operation, but faster using NumPy (or even just by using Python better..) Thanks again and sorry for the unclearn