pimrc2011_polynomial_svd: Code for figures in paper - Rasmus Brandt (2015)