likely_read and likely_decode now require matrix type as a parameter