Re: [Numpy-discussion] Large numbers into float128

2011-10-30 Thread Berthold Höllmann
Matthew Brett writes: > Hi, > > Can anyone think of a good way to set a float128 value to an > arbitrarily large number? > > As in > > v = int_to_float128(some_value) > > ? > > I'm trying things like > > v = np.float128(2**64+2) > > but, because (in other threads) the float128 seems to be going t

Re: [Numpy-discussion] Array of Arrays

2007-03-23 Thread Berthold Höllmann
"Alexander Michael" <[EMAIL PROTECTED]> writes: > How can I do something like the following? > > a = empty((5,7), dtype=<4 element array of floats>) > > c = a[:,-1] # last column of 4 element arrays > > a[0,0] = 2.0 > print a[0,0] > [2. 2. 2. 2.] > > a[1,0] = 3.0 > a[0,1] = a[0,0] * a[1,0] > > pri

Re: [Numpy-discussion] Conservative order in .argsort

2007-03-09 Thread Berthold Höllmann
Robert Kern <[EMAIL PROTECTED]> writes: > Berthold Höllmann wrote: > >> My question is, is "kind='merge'" sorting garanteed to be conservative? > > Yes, such a sort is called "stable" (at least in US computer science) and is > documente

[Numpy-discussion] Conservative order in .argsort

2007-03-09 Thread Berthold Höllmann
85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]) My question is, is "kind='merge'" sorting garanteed to be conservative? Kind regards Berthold Höllmann -- Germanischer Lloyd AG CAE Development Vorsetzen 35 20459 Hamburg Phone: +49(0)40 36149-7374 Fax: +49(0