same const correctness issue with RMatrix