[Numpy-discussion] numpy.left_shift with negative x2

2010-02-03 Thread markus . proeller
Hello, the following operation seems strange to me >>> np.left_shift(2,-1) 0 I would have expected a right_shift by one. The documentation on http://docs.scipy.org/doc/numpy/reference/generated/numpy.left_shift.html#numpy.left_shift also says that the operation is equivalent to multiplying x1 b

[Numpy-discussion] Antwort: Re: numpy.left_shift with negative x2

2010-02-03 Thread markus . proeller
>> On Wed, Feb 3, 2010 at 8:43 PM, wrote: >> >> Hello, >> >> the following operation seems strange to me >> >> >>> np.left_shift(2,-1) >> 0 >> >> I would have expected a right_shift by one. > > I wouldn't expect anything, the behavior is simply not defined. But it would prevent a state

[Numpy-discussion] create dll from numpy code

2010-02-16 Thread markus . proeller
Hello, is there a possibility to create a dll from a numpy code? Markus___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Antwort: Re: create dll from numpy code

2010-02-16 Thread markus . proeller
numpy-discussion-boun...@scipy.org schrieb am 17.02.2010 01:43:03: > markus.proel...@ifm.com wrote: > > > > Hello, > > > > is there a possibility to create a dll from a numpy code? > > What do you want to create a dll for ? For distribution purpose, to hide > your code, etc... ? > To replace

Re: [Numpy-discussion] create dll from numpy code

2010-02-18 Thread markus . proeller
numpy-discussion-boun...@scipy.org schrieb am 17.02.2010 01:43:03: > markus.proel...@ifm.com wrote: > > > > Hello, > > > > is there a possibility to create a dll from a numpy code? > > What do you want to create a dll for ? For distribution purpose, to hide > your code, etc... ? To replace a

[Numpy-discussion] Numpy savetxt: change decimal separator

2009-09-24 Thread markus . proeller
Hello everyone, I save data to a file with the following statement: np.savetxt(fileName, transpose((average_dist, std_deviation, maximum_dist, sum_of_dist)), delimiter = ';', fmt='%6.10f') is there a possibility to change the decimal seperator from a point to comma ? And another question I imp

[Numpy-discussion] Antwort: Re: Numpy savetxt: change decimal separator

2009-09-24 Thread markus . proeller
>> I was fiddeling with the same problem here: >> http://thread.gmane.org/gmane.comp.python.numeric.general/23418 >> >> So far, one can only open the file and prepend the header line. >> >> I just files an enhancement request for this: >> proposal: add a header and footer function to numpy.savetxt

[Numpy-discussion] why does binary_repr don't support arrays

2009-10-20 Thread markus . proeller
Hello, I'm always wondering why binary_repr doesn't allow arrays as input values. I always have to use a work around like: import numpy as np def binary_repr(arr, width=None): binary_list = map((lambda foo: np.binary_repr(foo, width)), arr.flatten()) str_len_max = len(np.binary_repr(ar

[Numpy-discussion] Antwort: Re: why does binary_repr don't support arrays

2009-10-22 Thread markus . proeller
numpy-discussion-boun...@scipy.org schrieb am 22.10.2009 12:36:46: > > > > > > On Tue, Oct 20, 2009 at 11:17 AM, wrote: > > > > Hello, > > > > I'm always wondering why binary_repr doesn't allow arrays as input > > values. I always have to use a work around like: > > > > import numpy as np