[WIP] Matrix interpolation

This CL is not ready for landing.