上記の結果より明らかなように,最適化したCに比べても Python の 実行速度のほうがまだ速いという結構驚きな結果が得られました. しかしながら,その Python よりもRのほうがまだ速いという ことも分かりました.特に逆行列の演算に関してはRの圧勝です. 以上の結果のまとめです: 実行速度の速さは R > Python > C の順 CよりPythonの方が15%程度速い しかしながら,特に逆行列の演算に関してはPythonよりRの方が40%程度速い おわりに 以上のベンチマークにより,少なくとも行列演算に関しては CよりもPythonの方が速いということが分かりました. 今回の実験は個人的なプログラム環境の乗り換えのための 判断材料として行なったのですが, 乗り換えに関しては Python の速度性が最大の懸念材料だったので, これで心おきなくCからPythonに乗り換えられます(
What this is and why I built it Wikipedia needs no introductions: it is one of the best - if not the best - encyclopedias, and it's freely available for everyone. Everyone can be a relative term, however... It implies availability of an Internet connection. This is not always the case; for example, many people would love to have Wikipedia on their laptop, since this would allow them to instantly c
試行メモです。 三角形の三辺の長さから角度のタプルを得る関数があると、直感的にできることがあるかもしれないとか思って三角形の三辺の長さから全角度のタプルを得る関数:getAnglesWithTrilateral を書いてみた。あまり意味はないかも。ただ、いい頭の体操になるんで。 import math def getAnglesWithTrilateral(a,b,c): f = lambda a,b,c:math.asin((a**2+c**2-b**2)/(2*a*c)) x,y = f(a,b,c),f(b,a,c) return ((math.pi*0.5)-y,(math.pi*0.5)-x,x+y) def showDegreesWithRadian(radian): print "%3.1f" % (radian*180 / math.pi) >>> import math
目次 dis/inspect モジュールと ceval.c を使った Python のハッキング dis モジュールと python interpreter 関数に属する func_code オブジェクトとco_varnames, co_names, co_consts 属性 python interpreter ceval.c:Python Virtual Machine の C ソース・コード inspect モジュール dis, inspect を使った一行コード python コードの hack x,y = y,x, x,z,y = z,y,x Python オブジェクト 関数 STORE_GLOBAL/STORE_NAME inspect 経由による クラスの disassemble LOAD_ATTRI リスト hash generator thread decorator 構
ドメインウェブの設定が見つかりません 考えられる原因 ドメインウェブの設定がまだ行われていない。 ドメインウェブの設定がまだ反映されていない。(反映には数時間~24時間かかることがあります) ドメインウェブ・DNSの設定が誤っている。 アカウントが存在しない、契約が終了している、削除されている。
In this interactive tutorial, we'll cover many essential Python idioms and techniques in depth, adding immediately useful tools to your belt. There are 3 versions of this presentation: S5 presentation Plain HTML handout reStructuredText source ©2006-2008, licensed under a Creative Commons Attribution/Share-Alike (BY-SA) license. My credentials: I am a resident of Montreal, father of two great kids
python のデコレーター構文 @decorate 解り難い @decorate 構文 Python のデコレーターは理解するのが厄介です。Python のデコレーターは syntax sugar の機能と closure の機能の二つを使って関数オブジェクトを修飾する構文です。でも closure の概念がない C/C++ や Java などの 言語から python も使うようになった者に、三重にネストした関数と @decorator 構文を組み合わせたコード例を使って解説されたのでは脳みそが沸騰するだけです。 私は @decorator を使ったコード例の python virturla machine コードを追跡することで、やっとこさデコレーターを理解しました。私の味わされた苦労を軽減してもらうため、この web page をまとめてみます。 デコレーターを理解した後で考え直し
This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
先週の土曜日、Python Workshop the Edge 2007 に登壇してきました。お題に選んだのは Mac と Python と PyObjC と Skype.framework を使って「Skypebot をつくってみよう」という、どうにもマニアックなネタだったと思うのですが、果してウケたのかどうか。 それはともかく、当日利用した資料を置いておきますのでよろしければどうぞです。 python workshop the edge 2007 presentation Mac OS X には、Python などのいわゆる Lightweight Language が標準でインストールされています。ターミナルでシェルも動くし、emacs も vi も使えるということで、UNIX 野郎にはとても便利な OS ですね。この Python で、Mac OS X の Cocoa framew
Babel¶ Babel is an integrated collection of utilities that assist in internationalizing and localizing Python applications, with an emphasis on web-based applications. User Documentation¶ The user documentation explains some core concept of the library and gives some information about how it can be used.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く