2017-01-01から1ヶ月間の記事一覧
Sympyのtensor用機能 We have two tensors $latex A \in \mathbb{R}^{I_1 \times \ldots \times I_N}$ and $latex B \in \mathbb{R}^{J_1 \times \ldots \times J_N}$. An element is specified by $latex A(i_1, \ldots, i_N)$, where $latex 1 \leq i_k \l…
[code lang="python"] >>> Matrix([[1, -1], [3, 4], [0, 2]]) ⎡1 -1⎤ ⎢ ⎥ ⎢3 4 ⎥ ⎢ ⎥ ⎣0 2 ⎦ 列ベクトルを作るには,要素のリストを与える >>> Matrix([1, 2, 3]) ⎡1⎤ ⎢ ⎥ ⎢2⎥ ⎢ ⎥ ⎣3⎦ 行列とベクトルの掛け算 >>> M = Matrix([[1, 2, 3], [3, 2, 1]]) >>> …
functions for Combinatorial functions for Enumerations
From basic operations, 1.1. evalf() outputs numerical value(s). [code lang="python"] >>> expr = sqrt(8) >>> expr 2 * sqrt(2) >>> expr.evalf() 2.82842712474619 [/code] 1.2. lambdify acts like lambda function. [code lang="python"] >>> import…
A solution enabling spyder to show matplotlib animation is to change the settings Tools > Preferences > IPython console > Graphics > Backend from "Inline" to "Automatic" and then push apply button.
install CUDA download cuda-repo-ubuntu1604_8.0.44-1_amd64.deb from here sudo dpkg -i cuda-repo-ubuntu1604_8.0.44-1_amd64.deb sudo apt-get update sudo apt-get cuda update path settings add the following lines at the end of ~/.bashrc and typ…
This post explains how to upgrade cuda toolkit on ubuntu 16.04 after upgrading OS from ubuntu 14.04. I got the following error when I tried to upgrade cuda toolkit from 7.5 to 8.0 by sudo dpkg -i cuda-repo-ubuntu1604_8.0.44-1_amd64.deb on …