use `matrixRep` from `-core` instead of reimplementing it