numpy scipy cython matplotlib sphinx-gallery autograd pymanopt