Skip to content

Instantly share code, notes, and snippets.

@astrolitterbox
Created June 17, 2015 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astrolitterbox/087f7b6161a7b76a7528 to your computer and use it in GitHub Desktop.
Save astrolitterbox/087f7b6161a7b76a7528 to your computer and use it in GitHub Desktop.
Minted example
\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