Created
June 17, 2015 23:44
-
-
Save astrolitterbox/087f7b6161a7b76a7528 to your computer and use it in GitHub Desktop.
Minted example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage{minted} | |
\begin{document} | |
\subsection*{Implementation} | |
\begin{minted}{python} | |
for i in range(m): | |
diff = self.dataset - points[:, i, newaxis] | |
tdiff = dot(self.inv_cov, diff) | |
energy = sum(diff * tdiff, axis=0) / 2.0 | |
result[i] = sum(exp(-energy), axis=0) | |
\end{minted} | |
\bibliographystyle{aa} | |
\bibliography{tf} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment