Groups
Groups
Sign in
Groups
Groups
Science with Python
Conversations
Labels
About
Send feedback
Help
PythonからFortranコードを呼ぶ方法
545 views
Skip to first unread message
ignis
unread,
Oct 17, 2012, 12:41:17 AM
10/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to science-w...@googlegroups.com
@ignis_fatuusです
PythonからFortranを呼びたいことって、私は結構あるのですが、
(日本語では) f2pyを使った記事がほとんどのようなので
ちょっと調べて標準ライブラリのみでFortranを呼び出す方法についてブログに載せてみました。
http://d.hatena.ne.jp/ignisan/20121017
後半でnumpyを利用する例も載せてますので、似た境遇にいる方の参考になればと思います。
改良点があればぜひコメントをよろしくおねがいします。
HW as a Pythonista
unread,
Oct 17, 2012, 1:28:21 PM
10/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to science-w...@googlegroups.com
@ignis_fatuus様
PythonからFortranを呼ぶ解説ありがとうございます。
素晴らしいです。私もFortranユーザーですので、助かります。
私も第一感では、cのラッパーを書かなればいけないのかと思ったのですが、
ctypesやnumpyのctypeslib使って直接呼び出せるわけですね。
これは他に助かる人も多いと思います。
はい、みんなでScience with Pythonしましょう。
2012年10月17日水曜日 13時41分17秒 UTC+9 ignis:
Reply all
Reply to author
Forward
0 new messages