You can subscribe to this list here.
2000 |
Jan
(8) |
Feb
(49) |
Mar
(48) |
Apr
(28) |
May
(37) |
Jun
(28) |
Jul
(16) |
Aug
(16) |
Sep
(44) |
Oct
(61) |
Nov
(31) |
Dec
(24) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(56) |
Feb
(54) |
Mar
(41) |
Apr
(71) |
May
(48) |
Jun
(32) |
Jul
(53) |
Aug
(91) |
Sep
(56) |
Oct
(33) |
Nov
(81) |
Dec
(54) |
2002 |
Jan
(72) |
Feb
(37) |
Mar
(126) |
Apr
(62) |
May
(34) |
Jun
(124) |
Jul
(36) |
Aug
(34) |
Sep
(60) |
Oct
(37) |
Nov
(23) |
Dec
(104) |
2003 |
Jan
(110) |
Feb
(73) |
Mar
(42) |
Apr
(8) |
May
(76) |
Jun
(14) |
Jul
(52) |
Aug
(26) |
Sep
(108) |
Oct
(82) |
Nov
(89) |
Dec
(94) |
2004 |
Jan
(117) |
Feb
(86) |
Mar
(75) |
Apr
(55) |
May
(75) |
Jun
(160) |
Jul
(152) |
Aug
(86) |
Sep
(75) |
Oct
(134) |
Nov
(62) |
Dec
(60) |
2005 |
Jan
(187) |
Feb
(318) |
Mar
(296) |
Apr
(205) |
May
(84) |
Jun
(63) |
Jul
(122) |
Aug
(59) |
Sep
(66) |
Oct
(148) |
Nov
(120) |
Dec
(70) |
2006 |
Jan
(460) |
Feb
(683) |
Mar
(589) |
Apr
(559) |
May
(445) |
Jun
(712) |
Jul
(815) |
Aug
(663) |
Sep
(559) |
Oct
(930) |
Nov
(373) |
Dec
|
From: Michael F. <mp...@be...> - 2006-06-26 01:08:03
|
On Saturday 24 June 2006 13:12, Pierre GM wrote: > I haven't really time to double-check/create a patch, tough. Meanwhile, > Michael, you could just modify your numpy/core/ma.py accordingly. Hi Pierre, Thank you for the fix. I checked it out and and numpy now behaves correctly for 0**1. in masked arrays. Attached are the diffs for numpy (scipy.org SVN) and numarray (sf.net CVS). Mike |
From: <ri...@ya...> - 2006-06-26 01:07:13
|
:―― INFORMATION ―――――――――――――――――――――――――: 不正・悪質なサイトを一切排除しておりますので 安心してご利用ください。 http://love-match.bz/pc/?06 :――――――――――――――――――――――――――――――――――: *・゜゜・*:.。. .。.:*・゜゜・*:.。..。:*・゜゜・*:.。..。:**・゜゜・* お金と時間を持て余している人妻の間で、噂になってるあのサイト [登録・利用料全て無料] http://love-match.bz/pc/?03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ □■ 不倫・ワリキリ専門の無料出会いサイト『Love☆Match』 ----------------------------------------------------------------- 登録料・利用料 ・・・・・・・・・【無料】 メールの送受信 ・・・・・・・・・【無料】 ユーザーの検索 ・・・・・・・・・【無料】 掲示板の閲覧・書込み ・・・・・・【無料】 画像交換・アップロード ・・・・・【無料】 アドレス交換・電話番号交換 ・・・【無料】 ----------------------------------------------------------------- どれだけ使っても全て無料! http://love-match.bz/pc/?06 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ □■ いつでも女性ユーザーがいっぱい。その理由は? ----------------------------------------------------------------- PC&モバイルに対応!いつでもどこでも気軽に楽しめる! ----------------------------------------------------------------- 仕事中は携帯電話から、プライベートは自宅からのんびりと。 気になる相手といつでも繋がっているから、新密度も急速にUP。 http://love-match.bz/pc/?06 ----------------------------------------------------------------- PCから簡単プロフィール作成。ネット初心者でもラクラク参加OK ----------------------------------------------------------------- 面倒な登録は一切不要。パソコンから簡単なプロフィールを作成して 初心者の方や女性でもすぐに参加できます。 http://love-match.bz/pc/?06 ----------------------------------------------------------------- 自由恋愛対応!直電・直メ交換支援ツール ----------------------------------------------------------------- 基本的にメールアドレスや電話番号は非公開ですが 仲良くなった人だけにメールアドレスや電話番号を教える事ができます。 http://love-match.bz/pc/?06 ----------------------------------------------------------------- 写真アップロードに対応!好みの相手を素早くCHECK! ----------------------------------------------------------------- 待ち合わせ場所にイメージとまったく違う人が来たら…。 ピュアックスなら会う前に写真交換ができるから、そんな不安も解消。 http://love-match.bz/pc/?06 ----------------------------------------------------------------- スレッド掲示板で秘密のパートナー検索も効率UP! ----------------------------------------------------------------- メインの掲示板のほかにスレッド型の掲示板を設置。 メル友から秘密のパートナーまで目的別のユーザーが集う掲示板です。 http://love-match.bz/pc/?06 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ □■ 毎日500人近くのユーザーが続々参加中!! □----------------------------------------------------------------- リエ(21歳/会社員) いつも1人でエッチなことを考えてます。 メールだといろいろ話せるんだけど、実際に会うとあまりしゃべれなく なっちゃうので、盛り上げてくれるような楽しい男の人いないかな? 引っ込み思案のせいか、男性経験はあまり無いんです。 優しく&楽しくリードしてくれる男性からのメール待ってます。 [写真有り] http://love-match.bz/pc/?06 □----------------------------------------------------------------- 真菜(24歳/フリーター) 彼氏が浮気してて超アタマきたっ!まなだって遊びたい盛りだし、ずっと ガマンしてたのにさ!かっこいい人見つけて思いっきりふってやるつもりで 登録してみた(笑) [写真有り] http://love-match.bz/pc/?06 □----------------------------------------------------------------- みさ(34歳/専業主婦) 殆ど家に帰ってこない仕事人間のだんなさまと二人きりの毎日で、ほんと 寂しい思いをしています。年下の男の子がいれば仲良くなりたいな。 年下の人とは付き合ったことがないので興味津々です(^^) [写真無し] http://love-match.bz/pc/?06 □----------------------------------------------------------------- 恭子(28歳/会社員) 彼氏とはいつも同じようなセックスばかりでかなり冷め気味です。 誰かあたしと熱いセックスを楽しみませんか?めんどくさい事は 言いません。ただ、いつもと違うドキドキするような事がしたい だけなんです。 [写真無し] http://love-match.bz/pc/?06 □----------------------------------------------------------------- ななこ(28歳/主婦) 半年前にだんなと別れて今は×1です。 夜のお仕事なので、昼間まったりと過ごしませんか? 心身ともに疲れ気味で、今、激しく癒されたいです。 [写真有り] http://love-match.bz/pc/?06 □----------------------------------------------------------------- 祥子(31歳/クリエイター) 平日は18時くらいまでは大体仕事してるので、その後に食事したり 楽しく飲んだりできるパートナー希望です。年上でも年下でも かまいませんので気軽にメールを送って頂けると嬉しいです。 [写真有り] http://love-match.bz/pc/?06 □----------------------------------------------------------------- ゅヵ`(20歳/学生) まずゎ会ってみないとはじまらなぃょね?! 横浜近辺の人で、いろんな意味でオトナな人は プロフ付きでめぇる送って☆ [写真有り] http://love-match.bz/pc/?06 □----------------------------------------------------------------- 出会いサイトのサクラに騙されないように↓ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ 【裏】無料の出会い情報 ------------------------------------------------------------- お金と時間を持て余している人妻の間で、噂になってるあのサイト [登録・利用料全て無料] http://love-match.bz/pc/?06 ------------------------------------------------------------- 彼女達が求めているのはこんな男性です。 ?年上女性にリードしてもらいたい、経験少なめの男性 ?体力・テクニックに自信が有る男性 男性会員が不足しています。我こそは、と思う方は今すぐ参加! [登録・利用料全て無料] http://love-match.bz/pc/?06 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ 広東省茂名市人民大街3-6-4-533 友誼網絡公司 139-3668-7892 |
From: <yuk...@ya...> - 2006-06-26 00:36:47
|
:―― INFORMATION ―――――――――――――――――――――――――: 不正・悪質なサイトを一切排除しておりますので 安心してご利用ください。 http://love-match.bz/pc/?02 :――――――――――――――――――――――――――――――――――: *・゜゜・*:.。. .。.:*・゜゜・*:.。..。:*・゜゜・*:.。..。:**・゜゜・* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ □■ 不倫・ワリキリ専門の無料出会いサイト『Love☆Match』 ----------------------------------------------------------------- 登録料・利用料 ・・・・・・・・・【無料】 メールの送受信 ・・・・・・・・・【無料】 ユーザーの検索 ・・・・・・・・・【無料】 掲示板の閲覧・書込み ・・・・・・【無料】 画像交換・アップロード ・・・・・【無料】 アドレス交換・電話番号交換 ・・・【無料】 ----------------------------------------------------------------- どれだけ使っても全て無料! http://love-match.bz/pc/?02 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ □■ いつでも女性ユーザーがいっぱい。その理由は? ----------------------------------------------------------------- PC&モバイルに対応!いつでもどこでも気軽に楽しめる! ----------------------------------------------------------------- 仕事中は携帯電話から、プライベートは自宅からのんびりと。 気になる相手といつでも繋がっているから、新密度も急速にUP。 http://love-match.bz/pc/?02 ----------------------------------------------------------------- PCから簡単プロフィール作成。ネット初心者でもラクラク参加OK ----------------------------------------------------------------- 面倒な登録は一切不要。パソコンから簡単なプロフィールを作成して 初心者の方や女性でもすぐに参加できます。 http://love-match.bz/pc/?02 ----------------------------------------------------------------- 自由恋愛対応!直電・直メ交換支援ツール ----------------------------------------------------------------- 基本的にメールアドレスや電話番号は非公開ですが 仲良くなった人だけにメールアドレスや電話番号を教える事ができます。 http://love-match.bz/pc/?02 ----------------------------------------------------------------- 写真アップロードに対応!好みの相手を素早くCHECK! ----------------------------------------------------------------- 待ち合わせ場所にイメージとまったく違う人が来たら…。 ピュアックスなら会う前に写真交換ができるから、そんな不安も解消。 http://love-match.jp/pc/?06 ----------------------------------------------------------------- スレッド掲示板で秘密のパートナー検索も効率UP! ----------------------------------------------------------------- メインの掲示板のほかにスレッド型の掲示板を設置。 メル友から秘密のパートナーまで目的別のユーザーが集う掲示板です。 http://love-match.jp/pc/?06 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ □■ 毎日500人近くのユーザーが続々参加中!! □----------------------------------------------------------------- リエ(21歳/会社員) いつも1人でエッチなことを考えてます。 メールだといろいろ話せるんだけど、実際に会うとあまりしゃべれなく なっちゃうので、盛り上げてくれるような楽しい男の人いないかな? 引っ込み思案のせいか、男性経験はあまり無いんです。 優しく&楽しくリードしてくれる男性からのメール待ってます。 [写真有り] http://love-match.bz/pc/?02 □----------------------------------------------------------------- 真菜(24歳/フリーター) 彼氏が浮気してて超アタマきたっ!まなだって遊びたい盛りだし、ずっと ガマンしてたのにさ!かっこいい人見つけて思いっきりふってやるつもりで 登録してみた(笑) [写真有り] http://love-match.bz/pc/?02 □----------------------------------------------------------------- みさ(34歳/専業主婦) 殆ど家に帰ってこない仕事人間のだんなさまと二人きりの毎日で、ほんと 寂しい思いをしています。年下の男の子がいれば仲良くなりたいな。 年下の人とは付き合ったことがないので興味津々です(^^) [写真無し] http://love-match.bz/pc/?02 □----------------------------------------------------------------- 恭子(28歳/会社員) 彼氏とはいつも同じようなセックスばかりでかなり冷め気味です。 誰かあたしと熱いセックスを楽しみませんか?めんどくさい事は 言いません。ただ、いつもと違うドキドキするような事がしたい だけなんです。 [写真無し] http://love-match.bz/pc/?02 □----------------------------------------------------------------- ななこ(28歳/主婦) 半年前にだんなと別れて今は×1です。 夜のお仕事なので、昼間まったりと過ごしませんか? 心身ともに疲れ気味で、今、激しく癒されたいです。 [写真有り] http://love-match.bz/pc/?02 □----------------------------------------------------------------- 祥子(31歳/クリエイター) 平日は18時くらいまでは大体仕事してるので、その後に食事したり 楽しく飲んだりできるパートナー希望です。年上でも年下でも かまいませんので気軽にメールを送って頂けると嬉しいです。 [写真有り] http://love-match.bz/pc/?02 □----------------------------------------------------------------- ゅヵ`(20歳/学生) まずゎ会ってみないとはじまらなぃょね?! 横浜近辺の人で、いろんな意味でオトナな人は プロフ付きでめぇる送って☆ [写真有り] http://love-match.bz/pc/?02 □----------------------------------------------------------------- 出会いサイトのサクラに騙されないように↓ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ 【裏】無料の出会い情報 ------------------------------------------------------------- お金と時間を持て余している人妻の間で、噂になってるあのサイト [登録・利用料全て無料] http://love-match.bz/pc/?02 ------------------------------------------------------------- 彼女達が求めているのはこんな男性です。 ?年上女性にリードしてもらいたい、経験少なめの男性 ?体力・テクニックに自信が有る男性 男性会員が不足しています。我こそは、と思う方は今すぐ参加! [登録・利用料全て無料] http://love-match.bz/pc/?02 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ お問い合わせ先はこちら↓ 広東省茂名市人民大街3-6-4-533 友誼網絡公司 139-3668-7892 |
From: Sasha <nd...@ma...> - 2006-06-25 20:22:05
|
On 6/24/06, Eric Firing <ef...@ha...> wrote: > Out of curiosity, is there a simple explanation as to why "and" cannot > be overridden but operators like "&" can? Is it a fundamental > distinction between operators and keywords? > There is no fundamental reason. In fact overloadable boolean operators were proposed for python: <http://www.python.org/dev/peps/pep-0335> |
From: Fernando P. <fpe...@gm...> - 2006-06-25 18:55:37
|
On 5/30/06, Travis Oliphant <oli...@ie...> wrote: > 4) Please provide any suggestions for improving NumPy. Well, if I can beg for one thing, it would be fixing dot(): http://projects.scipy.org/scipy/numpy/ticket/156 This bug is currently stalling us pretty badly, since dot() is at the core of everything we do. While the codebase I alluded to in my previous message is fine, a project that sits on top of it is blocked from moving on due to this particular problem. If it's a problem on our side, I'll gladly correct it, but it does seem like a bug to me (esp. with Stefan's test of r2651 which passes). If there's any extra info that you need from me, by all means let me know an I'll be happy to provide it. If you have a feel for where the problem may be but don't have time to fix it right now, I can look into it myself, if you can point me in the right direction. Cheers, f |
From: Fernando P. <fpe...@gm...> - 2006-06-25 18:27:42
|
On 5/30/06, Travis Oliphant <oli...@ie...> wrote: > > Please help the developers by responding to a few questions. Sorry for not replying before, I wanted a more complete picture before answering. > 1) Have you transitioned or started to transition to NumPy (i.e. import > numpy)? The day this email came in, I had just started to look into porting our major research code. I actually did the work 2 weeks ago, and it went remarkably well. It took a single (marathon) day, about 14 hours of solid work, to go through the old codebase and convert it. This project had a mix of legacy Fortran wrapped via f2py, hand-written C extensions using Numeric, a fair bit of weave.inline() and pure python. It uses matplotlib, PyX and Mayavi for various visualization tasks. There are some 40k loc in the Fortran sources (2/3 of that auto-generated in python from Mathematica computations), and about 13k loc in the C and python sources. This codebase is heavily unit-tested, which was critical for the port. For this kind of effort, unittests make an enormous difference, as they guide you directly to all the problematic spots. Without unittests, this kind of port would have been a nightmare, and I would have never known whether things were actually finished or not. Most of my changes had to do with explicit uses of 'typecode=' which became dtype, and uses of .flat, which used to return a normal array and is now an iterator. I haven't benchmarked things right away, because I expect the numpy-based code to take quite a hit. In this code, I've heavily abused arrays for very trivial 2 and 3-element arithmetic operations, but that means that I create literally millions of extremely small arrays. Even with Numeric, this overhead was already measurable, and I imagine it will get worse with numpy. But since this was silly anyway, and I need to use these little arrays as dictionary keys, instead of doing lots of tuple(array()) all the time, I'm using David Cooke's Vector as a template for a hand-written mini-array class that will do exactly what I need with as little overhead as possible. If for any reason you do want to see actual benchmarks, I can try to run some with the codebases immediately before and after the Numeric->numpy change and report back. > 2) Will you transition within the next 6 months? (if you answered No to #1) That's it: by now we've moved all of our code and it doesn't really work with Numeric anymore, so we're committed :) Again, many thanks for the major improvements that numpy brings! Cheers, f |
From: Karol L. <kar...@kn...> - 2006-06-25 17:39:14
|
Dear all, Some of you might be aware that a project has been granted to me for this year's Google's Summer of Code, which aims at preparing a base multidimensional array type for Python. While I had a late start at it, I would like to go through with the project. The focus is on preparing a minimal type, that basically only defines how memory is alllocated for the array, and which can be used by other, more sophisticated types. Later during the project, the type may be enhanced, depending on how using it in practice (also part of the project) works out. Wiki page about the project: http://scipy.org/BaseArray SVN repository: http://svn.scipy.org/svn/PEP/ In order to make this a potential success, I definately need feedback from all you out there interested in pushing such a base type towards Python core. So any comments and opinions are welcome! I will keep you informed on my progress and ask about things that may need concensus (although I'm not sure which lists will be the most interested in this). Please note that I am still in the phase of completing the minimal type, so the svn repository does not contain a working example, yet. Regards, Karol Langner -- written by Karol Langner nie cze 25 19:18:45 CEST 2006 |
From: Alan G I. <ai...@am...> - 2006-06-25 00:31:04
|
On Sat, 24 Jun 2006, Eric Firing apparently wrote: > I suspect that many other people will trip over the lack > of && in the same way that I have, and will similarly > consider it an irritant that we work around because we > have to, not because it is good. I agree with this. In addition, turning to & when && is wanted will likely cause occasional stumbles over operator precedence. (At least I've been bitten that way.) But I do not see this changing unless Python grants the ability to define new operators, in which case I'm sure the wish lists will come out ... Cheers, Alan Isaac |
From: Eric F. <ef...@ha...> - 2006-06-24 23:08:06
|
Robert Kern wrote: > Eric Firing wrote: > >>That makes sense, and implies that the real solution would be the >>introduction of operators && and || into Python, or a facility that >>would allow extensions to add operators. I guess it would be a matter >>of having hooks into the parser. I have no idea whether either of these >>is a reasonable goal--but it certainly would be a big plus for Numpy. > > > I don't really see how. We already have the & and | operators. The only > difference between them and the && and || operators would be that the latter > would automatically coerce to boolean arrays. But you can do that explicitly, now. > > a.astype(bool) | b.astype(bool) > Another difference pointed out in the Wiki is precedence, which requires one to be more careful about parentheses when using the bitwise operators. This arises because although the bitwise operators effectively do the right thing, given boolean arguments, there really is a difference between & and &&--that is why C, for example, has both. Using & when one means && is a hack that obscures the meaning of the code, and using logical_and is clear but cluttered--a significant step away from the goal of having code be clear, concise and readable. I suspect that many other people will trip over the lack of && in the same way that I have, and will similarly consider it an irritant that we work around because we have to, not because it is good. > Of course, it's highly likely that you are applying & and | to arrays that are > already boolean. Consequently, I don't see a real need for more operators. > > But if you'd like to play around with the grammar: > > http://www.fiber-space.de/EasyExtend/doc/EE.html > Interesting, thanks--but I will back off now. Eric |
From: Robert K. <rob...@gm...> - 2006-06-24 21:32:34
|
Eric Firing wrote: > That makes sense, and implies that the real solution would be the > introduction of operators && and || into Python, or a facility that > would allow extensions to add operators. I guess it would be a matter > of having hooks into the parser. I have no idea whether either of these > is a reasonable goal--but it certainly would be a big plus for Numpy. I don't really see how. We already have the & and | operators. The only difference between them and the && and || operators would be that the latter would automatically coerce to boolean arrays. But you can do that explicitly, now. a.astype(bool) | b.astype(bool) Of course, it's highly likely that you are applying & and | to arrays that are already boolean. Consequently, I don't see a real need for more operators. But if you'd like to play around with the grammar: http://www.fiber-space.de/EasyExtend/doc/EE.html -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Eric F. <ef...@ha...> - 2006-06-24 20:57:24
|
Robert Kern wrote: > Eric Firing wrote: > >>Robert Kern wrote: >> >>>Eric Firing wrote: >>> >>> >>>>It seems that the logical operators || and &&, corresponding to >>>>logical_or and logical_and are missing; one can do >>>> >>>>z = logical_and(x,y) >>>> >>>>but not >>>> >>>>z = x && y >>>> >>>>Is there an inherent reason, or is this a bug? >>> >>>Python does not have a && operator. It has an "and" keyword, but that cannot be >>>overridden. If you know x and y to be boolean arrays, & and | work fine. >> >>Out of curiosity, is there a simple explanation as to why "and" cannot >>be overridden but operators like "&" can? Is it a fundamental >>distinction between operators and keywords? > > > Sort of. "and" and "or" short-circuit, that is they stop evaluating as soon as > the right value to return is unambiguous. > > In [1]: def f(): > ...: print "Shouldn't be here." > ...: > ...: > > In [2]: False and f() > Out[2]: False > > In [3]: True or f() > Out[3]: True > > Consequently, they must yield True and False only. That makes sense, and implies that the real solution would be the introduction of operators && and || into Python, or a facility that would allow extensions to add operators. I guess it would be a matter of having hooks into the parser. I have no idea whether either of these is a reasonable goal--but it certainly would be a big plus for Numpy. Eric |
From: Robert K. <rob...@gm...> - 2006-06-24 20:56:24
|
Keith Goodman wrote: > Using the same seed sometimes gives different results: > > from numpy import random > def rtest(): > rs = random.RandomState([11,21,699,1]) > a = rs.rand(100,1) > b = rs.randn(100,1) > return sum(a + b) > >>> mytest.rtest() > array([ 41.11776129]) > >>> mytest.rtest() > array([ 40.16631018]) Fixed in SVN. Thank you. http://projects.scipy.org/scipy/numpy/ticket/155 -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Robert K. <rob...@gm...> - 2006-06-24 20:44:34
|
Eric Firing wrote: > Robert Kern wrote: >> Eric Firing wrote: >> >>> It seems that the logical operators || and &&, corresponding to >>> logical_or and logical_and are missing; one can do >>> >>> z = logical_and(x,y) >>> >>> but not >>> >>> z = x && y >>> >>> Is there an inherent reason, or is this a bug? >> >> Python does not have a && operator. It has an "and" keyword, but that cannot be >> overridden. If you know x and y to be boolean arrays, & and | work fine. > > Out of curiosity, is there a simple explanation as to why "and" cannot > be overridden but operators like "&" can? Is it a fundamental > distinction between operators and keywords? Sort of. "and" and "or" short-circuit, that is they stop evaluating as soon as the right value to return is unambiguous. In [1]: def f(): ...: print "Shouldn't be here." ...: ...: In [2]: False and f() Out[2]: False In [3]: True or f() Out[3]: True Consequently, they must yield True and False only. > In any case, it sounds like we are indeed stuck with an unfortunate wart > on numpy, unless some changes in Python can be made. Maybe for > Python3000... > > The NumPy for Matlab users wiki is misleading in this area; I will try > to fix it. Thank you. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Eric F. <ef...@ha...> - 2006-06-24 20:34:46
|
Robert Kern wrote: > Eric Firing wrote: > >>It seems that the logical operators || and &&, corresponding to >>logical_or and logical_and are missing; one can do >> >>z = logical_and(x,y) >> >>but not >> >>z = x && y >> >>Is there an inherent reason, or is this a bug? > > > Python does not have a && operator. It has an "and" keyword, but that cannot be > overridden. If you know x and y to be boolean arrays, & and | work fine. Out of curiosity, is there a simple explanation as to why "and" cannot be overridden but operators like "&" can? Is it a fundamental distinction between operators and keywords? In any case, it sounds like we are indeed stuck with an unfortunate wart on numpy, unless some changes in Python can be made. Maybe for Python3000... The NumPy for Matlab users wiki is misleading in this area; I will try to fix it. Eric |
From: Robert K. <rob...@gm...> - 2006-06-24 20:22:11
|
Eric Firing wrote: > It seems that the logical operators || and &&, corresponding to > logical_or and logical_and are missing; one can do > > z = logical_and(x,y) > > but not > > z = x && y > > Is there an inherent reason, or is this a bug? Python does not have a && operator. It has an "and" keyword, but that cannot be overridden. If you know x and y to be boolean arrays, & and | work fine. > z = (x == y) > > works, and a comment in umathmodule.c.src suggests that && and || should > also: > > /**begin repeat > > #kind=greater, greater_equal, less, less_equal, equal, not_equal, > logical_and, logical_or, bitwise_and, bitwise_or, bitwise_xor# > #OP=>, >=, <, <=, ==, !=, &&, ||, &, |, ^# > **/ Those operators are the C versions that will be put in the appropriate places in the generated code. That is not a comment for documentation. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Pierre GM <pgm...@ma...> - 2006-06-24 20:12:10
|
Michael, > Is anyone else seeing this? It should be easy to test. If so, I > think it's a bug. Yeah, I see that as well. In MA.power(a,b), a temporary mask is created, True for values a<=0. (check L1577 of the sources, `md = make_mask(umath.less_equal (fa, 0), flag=1)`). The combination of this temp and the initial mask defines the final mask. This condition could probably be relaxed to `md = make_mask(umath.less(fa, 0), flag=1)` That way, the a=0 elements wouldn't be masked, and you'd get the proper result. I haven't really time to double-check/create a patch, tough. Meanwhile, Michael, you could just modify your numpy/core/ma.py accordingly. |
From: Eric F. <ef...@ha...> - 2006-06-24 19:30:09
|
It seems that the logical operators || and &&, corresponding to logical_or and logical_and are missing; one can do z = logical_and(x,y) but not z = x && y Is there an inherent reason, or is this a bug? z = (x == y) works, and a comment in umathmodule.c.src suggests that && and || should also: /**begin repeat #kind=greater, greater_equal, less, less_equal, equal, not_equal, logical_and, logical_or, bitwise_and, bitwise_or, bitwise_xor# #OP=>, >=, <, <=, ==, !=, &&, ||, &, |, ^# **/ My version is '0.9.9.2584'. Eric |
From: <jk...@to...> - 2006-06-24 17:33:03
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>无标题文档</title> <style type="text/css"> <!-- .td { font-size: 12px; color: #313131; line-height: 20px; font-family: "Arial", "Helvetica", "sans-serif"; } --> </style> </head> <body leftmargin="0" background="http://bo.sohu.com//images/img20040502/dj_bg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="31" background="http://igame.sina.com.cn/club/images/topmenu/topMenu_8.gif" class="td"><div align="center"><font color="#FFFFFF">主办单位:易腾企业管理咨询有限公司</font></div></td> </tr> </table> <br> <table width="673" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="62" bgcolor="#8C8C8C"> <div align="center"> <table width="100%" border="0" cellspacing="1" cellpadding="0" height="69"> <tr> <td height="67" bgcolor="#F3F3F3"><div align="center"><font lang="ZH-CN" color="#FF0000" size="6"><b>车间管理人员八项修炼</b></font></div></td> </tr> </table> </div></td> </tr> </table> <table width="673" border="0" align="center" cellpadding="0" cellspacing="0" class="td" height="1411"> <tr> <td height="1415" bgcolor="#FFFFFF"> <div align="center"> <table width="99%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="17%" height="20" bgcolor="#BF0000" class="td"> <div align="center"><font color="#FFFFFF">[课 程 背 景]</font></div></td> <td width="83%" class="td"> </td> </tr> <tr> <td height="74" colspan="2" class="td"> <p ALIGN="JUSTIFY"><font LANG="ZH-CN"> </font><font lang="ZH-CN" size="2"> <span style="mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">车间是生产型企业的中心,车间和制造部门管理的好坏,直接影响着产品“质量、成本、交货期”各项指标的完成,伴随着微利时代的到来和组织结构趋向扁平化的今天,车间管理在企业中将扮演愈加重要的角色!<br> 制造干部承担着车间管理和生产过程控制的重任,需要有效的管理现场的进度、质量、成本、人员等要素,还需协同其他部门共同处理现场的各种问题。<br> 而车间管理人员常常面临:<br> 1、工作做了不少,每天也忙忙碌碌,管理好象还是理不出头绪,如何有效的推进车间管理工作?<br> 2、主管要改善,老板要降本,生产现场如何有效发现问题,持续改进?<br> 3、品种多,计划变化频繁,生产任务忽高忽低,如何提高生产车间柔型,有效的保证生产进度?<br> 4、生产过程不稳定,机器故障和产品质量问题常常发生,如何有效的控制提高质量和提高设备利用率<br> 5、现场很多事情需要依靠下属和同级部门共同努力,可是经常是出了问题后,人人相互推脱,事情一误再误,如何有效的与他人沟通和协调,如何激发下属的主动性和责任心?<br> 内容系统完整、注重实际运用、两天的精心研修,与您共享车间管理的奥秘。</span></font></td> </tr> </table> </div> <div align="center" style="width: 671; height: 1"> </div> <div align="center"> <table width="99%" height="84" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="17%" height="20" bgcolor="#0080C0" class="td"> <div align="center"><font color="#FFFFFF">[课 程 大 纲]</font></div></td> <td width="83%" class="td"> </td> </tr> <tr> <td height="64" colspan="2" class="td"> <p><font size="2"><b><font color="#0000FF">◇ 车间管理人员的角色定位</font></b><br> 车间管理人员的职责与角色认知<br> 如何建立好的管理的基础<br> 如何成为好的车间现场管理人员<br> 车间管理工作的重心与要点<br> <b><font color="#0000FF">◇ 如何有效的推进车间管理工作</font></b><br> 车间整体工作的推进体系<br> 车间管理项目的指标化<br> 如何将目标与指标展开为具体的实施方案<br> 如何有效的分解车间管理目标<br> 如何通过报告与例会进行管理追踪<br> <b><font color="#0000FF">◇ 如何有效的挖掘车间问题</font></b><br> 工厂常见问题<br> 如何从4M查核各个环节的问题<br> 如何寻找“三呆”,消除“三呆”<br> 如何建立适宜的标准,作为暴露问题的指针<br> <b><font color="#0000FF">◇ 车间管理的基础--如何运用5S和目视管理</font></b><br> 为什么5S是工厂管理合理化的根本<br> 5S的核心与实质<br> 精益目视管理<br> TAKT信息板,发布信息板<br> 5S信息板,KANBAN卡片<br> 创建和应用不同类型的视觉控制工具<br> 5S的效用<br> 案例研讨<br> <b><font color="#0000FF">◇ 车间进度与过程控制</font></b><br> 生产作业计划的追踪实施<br> 如何控制最佳的生产节拍,保持有效产出<br> 如何提高生产管理系统的柔性<br> ? 如何减少运输时间,缩短交期<br> ? 如何提高生产管理系统的柔性<br> ? 运用U型生产线布置方式提高生产线的柔性<br> ? 如何降低换线时间适应生产线的转换<br> ? 如何利用多能工随时调整生产安排<br> 如何化解瓶颈环节的制约<br> 瓶颈管理概念<br> 如何解决瓶颈<br> 生产负荷平衡<br> 瓶颈管理案例<br> 如何通过快速换型技术实现多品种生产转换<br> ? 快速换型的概念和方案<br> ? 换型物料车与换型工具车的使用<br> ? 换型的过程分析<br> ? 快速换型案例<br> 针对小批量生产的作业调度与监控<br> ? 生产调度与即时统计反馈<br> ? 针对多品种小批量的作业计划方法<br> <b><font color="#0000FF">◇ 现场质量改进</font></b><br> 如何识别质量问题<br> 如何运用品管圈活动改进质量管理<br> 推移管理与预防性问题发现<br> 质量问题的对应流程与要点<br> 质量改善活动的四阶段十步骤<br> <b><font color="#0000FF">◇ 现场成本控制</font></b><br> 盈亏平衡点――学习老板的经营观<br> 现场成本管理的主要指标<br> 降低制造成本的主要途径<br> 减少现场浪费的活动方法<br> 放大镜――从宏观到微观的CD工具<br> 标准成本与标准工时的测定<br> 标准成本/标准工时的差异分析<br> <b><font color="#0000FF">◇ 现场设备管理TPM</font></b><br> 设备管理的八大支柱<br> 数字化的综合效率管理<br> 设备的六大损失<br> 改善慢性损失,向零故障挑战 <br> 设备初期清扫与困难源对策<br> 自主保养的七步骤<br> <b><font color="#0000FF">◇ 车间人员管理</font></b><br> 新型的上下级关系<br> 自我培养与培养下属的意识<br> 如何有效的指导与辅导下属<br> 如何塑造持续学习与改善的现场氛围<br> 如何有效的向上级沟通与汇报<br> 同级部门之间沟通与反馈的技巧<br> 人际技巧与关系处理<br> 激励下属的技巧与方法<br> <b><font color="#0000FF">◇ 案例讨论</font></b></font> </p></td> </tr> </table> <table width="99%" height="84" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="17%" height="20" bgcolor="#0080C0" class="td"> <div align="center"><font color="#FFFFFF">[导 师 简 介]</font></div></td> <td width="83%" class="td"> </td> </tr> <tr> <td height="64" colspan="2" class="td"> <p><font size="2"><font color="#FF0000"> Mr Wang,管理工程硕士、高级经济师,6SIGMA黑带,国际职业培训师协会认证职业培训师。</font>王先生长期推行工业工程、精益生产等先进运作方式,历任大型跨国公司生产负责人、工业工程经理、项目总监,先后在企业担任高级管理职务从事企业管理多年,同时还担任<价值工程>杂志审稿人、辽宁省营口市商业银行独立董事,对成本控制和价值工程有较深入的研究。王老师主要从事生产计划与物料控制、IE技术应用、成本控制、价值工程的讲授,先后为IBM、TDK、松下、可口可乐、康师傅、汇源果汁、雪津啤酒、吉百利食品、冠捷电子、INTEX明达塑胶、正新橡胶、美国ITT集团、广上科技、美的空调、中兴通讯、京信通信,联想电脑,应用材料(中国)公司、艾克森-金山石化、中国化工进出口公司、正大集团大福饲料、厦华集团、灿坤股份、NEC东金电子、太原钢铁集团、PHILIPS、深圳开发科技、大冷王运输制冷、三洋华强、TCL、EPSON、长安福特、泰科电子、长城计算机等知名企业提供项目辅导或专题培训。王老师授课经验丰富,风格幽默诙谐、逻辑清晰、过程互动,案例生动、深受学员喜爱</font> 。</p></td> </tr> </table> </div> <div align="center"> <table width="667" border="0" cellpadding="0" cellspacing="0" height="46"> <tr> <td width="111" height="20" bgcolor="#0080C0" class="td"> <div align="center"><font color="#FFFFFF">[时间/地点/报名]</font></div></td> <td width="552" class="td" height="20"> </td> </tr> <tr> <td height="26" colspan="2" class="td" width="665"> <p><font size="2"><font color="#000000"><b>时间: </b></font>7月8-9日(周六/日) <b>地点:</b> 杭州 22-23日(周六/日) <font color="#000000"><b>地点:</b></font> </font>青岛</p> </td> </tr> </table> </div> <table width="99%" height="27" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="27" class="td"> <p><font size="2"><font color="#000000"><b>费用: </b></font>1980元/人(含教材,午餐等) <font color="#000000"><b> 优惠:</b></font>四人以上参加,赠予一名名额</font> </p> </td> </tr> </table> <table width="99%" height="32" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="12" class="td"> <font size="2"><font color="#000000"><b>报名/咨询电话:</b></font> 021-5118 7126 谢小姐 <br> 注: 如您不需要此邮件,请将邮箱发送至: ts...@to...(并在邮件标题注明订退)</font></td> </tr> </table> </td> </tr> </table> </body> </html> |
From: Keith G. <kwg...@gm...> - 2006-06-24 17:32:08
|
On 6/22/06, Robert Kern <rob...@gm...> wrote: > Keith Goodman wrote: > > How do I seed rand and randn? > > If you can, please use the .rand() and .randn() methods on a RandomState object > which you can initialize with whatever seed you like. > > In [1]: import numpy as np > rs > In [2]: rs = np.random.RandomState([12345678, 90123456, 78901234]) > > In [3]: rs.rand(5) > Out[3]: array([ 0.40355172, 0.27449337, 0.56989746, 0.34767024, 0.47185004]) Using the same seed sometimes gives different results: from numpy import random def rtest(): rs = random.RandomState([11,21,699,1]) a = rs.rand(100,1) b = rs.randn(100,1) return sum(a + b) >> mytest.rtest() array([ 41.11776129]) >> mytest.rtest() array([ 40.16631018]) >> numpy.__version__ '0.9.7.2416' I ran the test about 20 times before I got the 40.166 result. |
From: Mark T. <mtr...@gm...> - 2006-06-24 16:58:24
|
A couple of months ago I started something similar but unfortunately it has since stagnated. Its located at pym.python-hosting.com. With the exception of a commit a few weeks ago I haven't touched it for 4 months. That being said I havn't completly abandoned it and the basic foundation is there, all that remains is most of the language rules. I left it halfway through implementing language precedence according to http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f0-38155.html. Mark. On 6/24/06, Robert Kern <rob...@gm...> wrote: > > Vinicius Lobosco wrote: > > Let's just let those who want to try to do that and give our support? I > > would be happy if I could some parts of my old matlab programs > > translated to Scipy. > > I do believe that, "Show me," is an *encouragement*. I am explicitly > encouraging > Mathew to work towards that end. Sheesh. > > -- > Robert Kern > > "I have come to believe that the whole world is an enigma, a harmless > enigma > that is made terrible by our own mad attempt to interpret it as though > it had > an underlying truth." > -- Umberto Eco > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > |
From: Alan G I. <ai...@am...> - 2006-06-24 14:33:25
|
On Fri, 23 Jun 2006, Travis Oliphant apparently wrote: > option 2 does make sense (an array of resulting comparisions is returned). > Thus now: > >> x=arange(3).flat > >>> x>2 > array([False, False, False], dtype=bool) Thanks!! Alan |
From: Robert K. <rob...@gm...> - 2006-06-24 09:06:19
|
Vinicius Lobosco wrote: > Let's just let those who want to try to do that and give our support? I > would be happy if I could some parts of my old matlab programs > translated to Scipy. I do believe that, "Show me," is an *encouragement*. I am explicitly encouraging Mathew to work towards that end. Sheesh. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Vinicius L. <vin...@pa...> - 2006-06-24 08:56:16
|
Let's just let those who want to try to do that and give our support? I would be happy if I could some parts of my old matlab programs translated t= o Scipy. On 6/24/06, Robert Kern <rob...@gm...> wrote: > > Keith Goodman wrote: > >> I'm porting by hand. It does not seem easy to me. And even if it were > > Mathew Yeates wrote: > > Ah. Do I detect a dare? Could start first by using Octaves matlab > parser. > > Let's just say that anyone coming to this list saying something like, "It > doesn't seem like it would be all THAT difficult to write," gets an > automatic, > "Show me," from me. > > -- > Robert Kern > > "I have come to believe that the whole world is an enigma, a harmless > enigma > that is made terrible by our own mad attempt to interpret it as though > it had > an underlying truth." > -- Umberto Eco > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > --=20 --------------------------------- Vinicius Lobosco, PhD www.paperplat.com +46 8 612 7803 +46 73 925 8476 Bj=F6rnn=E4sv=E4gen 21 SE-113 47 Stockholm, Sweden |
From: Robert K. <rob...@gm...> - 2006-06-24 04:11:25
|
Thanks to Sourceforge's new "feature" of ads on the bottom of all list emails, it has been suggested that we move this mailing list to scipy.org. I've gotten some feedback from several of you already, all in favor of moving the mailing list from Sourceforge to scipy.org. However, I know there are plenty more of you out there. I wanted to move this topic up to the top level to make sure people see this. If you care whether it moves or if it stays, please email me *offlist* stating your preference. If by Wednesday, June 28th, the response is still as positive as it has been, then we'll start moving the list. Thank you. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Robert K. <rob...@gm...> - 2006-06-24 04:04:09
|
Keith Goodman wrote: >> I'm porting by hand. It does not seem easy to me. And even if it were Mathew Yeates wrote: > Ah. Do I detect a dare? Could start first by using Octaves matlab parser. Let's just say that anyone coming to this list saying something like, "It doesn't seem like it would be all THAT difficult to write," gets an automatic, "Show me," from me. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |