Learning matrix and functional models in high-dimensions