In Praise of Einsum

This is a short note about the einsum functionality that is present in numpy, jax, etc. Understanding what it does is a bit tricky -naturally, because it can do the job of many other functions- but it is also very useful and can help a lot with linear algebraic computations. I will use numpy’s np.einsum() notation, but the underlaying concepts are the same regardless of syntactic differences in other libraries....

February 19, 2023 · 8 min · Saeed Hedayatian

Setting Up Hugo with GitHub Pages

This is a straight-forward guide on setting up a simple and beautiful website using Hugo + PaperMod theme and GitHub pages. This is basically what I did to set up this very website! There are two steps. We first install Hugo and create our website locally. Then we use GitHub pages to publish our website on the Internet. Once this is done, changing our website is as simple as a git commit!...

July 21, 2022 · 4 min · Saeed Hedayatian