[Numpy-discussion] Recarray attributes writable

2006-06-17 Thread Erin Sheldon
Hi everyone - Recarrays have convenience attributes such that fields may be accessed through "." in additioin to the "field()" method. These attributes are designed for read only; one cannot alter the data through them. Yet they are writeable: >>> tr=numpy.recarray(10, formats='i4,f8,f8', names=

Re: [Numpy-discussion] Recarray attributes writeable

2006-06-17 Thread Francesc Altet
El dv 16 de 06 del 2006 a les 14:46 -0700, en/na Andrew Straw va escriure: > Erin Sheldon wrote: > > >Anyway - Recarrays have convenience attributes such that > >fields may be accessed through "." in additioin to > >the "field()" method. These attributes are designed for > >read only; one cannot

Re: [Numpy-discussion] Array interface updated to Version 3

2006-06-17 Thread Albert Strasheim
Hello all On Fri, 16 Jun 2006, Travis Oliphant wrote: > I just updated the array interface page to emphasize we now have version > 3. NumPy still supports objects that expose (the C-side) of version 2 > of the array interface, though. > Please voice concerns now if you have any. In the d

Re: [Numpy-discussion] Recarray attributes writeable

2006-06-17 Thread Fernando Perez
On 6/17/06, Francesc Altet <[EMAIL PROTECTED]> wrote: > However, I think that this has its utility, specially when accessing to > nested fields (see later). In addition, I'd suggest introducing a > special accessor called, say, 'fields' in order to access the fields > themselves and not the attrib

Re: [Numpy-discussion] Distance Matrix speed

2006-06-17 Thread Alex Cannon
How about this? def d5(): return add.outer(sum(A*A, axis=1), sum(B*B, axis=1)) - \ 2.*dot(A, transpose(B)) ___ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/list

Re: [Numpy-discussion] Distance Matrix speed

2006-06-17 Thread Robert Kern
Alex Cannon wrote: > How about this? > > def d5(): > return add.outer(sum(A*A, axis=1), sum(B*B, axis=1)) - \ > 2.*dot(A, transpose(B)) You might lose some precision with that approach, so the OP should compare results and timings to look at the tradeoffs. -- Rob

Re: [Numpy-discussion] Recarray attributes writeable

2006-06-17 Thread Erin Sheldon
This reply sent 9:36 AM, Jun 17 (because it may not show up for a day or so from my gmail account, if it shows up at all) On 6/17/06, Francesc Altet <[EMAIL PROTECTED]> wrote: > El dv 16 de 06 del 2006 a les 14:46 -0700, en/na Andrew Straw va > escriure: > > Erin Sheldon wrote: > > > > >Anyway - R

Re: [Numpy-discussion] (no subject)

2006-06-17 Thread miku
やっぱり出会うならエッチな人の方がいいよね♪沢山の女の子とハメて気持ちよく春を過ごそう♪ http://love-match.bz/pc/?07 出会いの定番! 無料で女性をご紹介!安心して出会えるチャンス到来!とりあえず出会ってみて下さい♪ http://love-match.bz/pc/?07 広東省茂名市人民大街3-6-4-533 友誼網絡公司 139-3668-7892 ___ Numpy-discussion mailing list Numpy-discussion@lists.s

Re: [Numpy-discussion] (no subject)

2006-06-17 Thread hitomi
:―― INFORMATION ―: 不正・悪質なサイトを一切排除しておりますので 安心してご利用ください。 http://love-match.bz/pc/?09 :――: *・゜゜・*:.。. .。.:*・゜゜・*:.。..。:*・゜゜・*:.。..。:**・゜゜・* お金と時間を持て余している人妻の間で、噂になってるあのサイト   [登録・利用料全て無料] http://love-match.bz/pc/?09 ━