divrot in an infinitesimal box

Julia, python, algorithmのメモです

2016-01-08から1日間の記事一覧

Julia - 内挿 (Interpolations)

InterpolationはInterpolations moduleを用いることで可能。 Interpolationは頻繁に使うので最下部にGist例を示しておく。 特に間違いやすいのが、 Interpolations.interpolate((t,) ... の、このtupleの部分 (t,)と書くというところである。

Julia - moduleを使う

moduleを使用するための幾つか pathを設定する module hoge を作成し、そのmoduleを他のjuliaファイルやjuliaのコンソールなどから 呼び出したいとき、見つからないと怒られる。これはjuliaがmoduleを探すpathを指定することで解決するが、 複数の解決方法が…