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

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] floor with dtype

2017-09-25 Thread Thomas Jollans
get the integers. > > tx. > R. > > > -- > Renato Fabbri > GNU/Linux User #479299 > labmacambira.sourceforge.net <http://labmacambira.sourceforge.net> > > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@python.org > https://mail.python.org/mailman

Re: [Numpy-discussion] np.array, copy=False and memmap

2017-09-06 Thread Thomas Jollans
py is false, if y is a memmap and in that case return a full memmap > object > instead of slicing it? > > Best wishes > Isaia > > P.S. A longer account of the issue may be found on my university blog > http://www.im.ufrj.br/nisoli/blog/?p=131 > > -- > Isaia Nisoli > > > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@python.org > https://mail.python.org/mailman/listinfo/numpy-discussion > -- Thomas Jollans ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Array and string interoperability

2017-06-05 Thread Thomas Jollans
note that another part of the discussion previously suggested that we > have a dtype that wraps a native python string object -- then you'd > get all for free. This is essentially an object array with strings in > it, which you can do now. > > -CHB > > > -- > >

Re: [Numpy-discussion] Array and string interoperability

2017-06-04 Thread Thomas Jollans
On 04/06/17 20:04, Mikhail V wrote: > Initialize array from a string currently looks like: > > s= "012 abc" > A= fromstring(s,"u1") > print A -> > [48 49 50 32 97 98 99] > > Perfect. > Now when writing values it will not work > as IMO it should, namley consider this example: > > B= zeros(7,"u1") >