Now gives correct-size matrices for dm rep.