We should use `matrixRep` from `-core` instead of reimplementing this here.