Compressed Sensing for the Fast Computation of Matrices: Application to Molecular Vibrations