initialize R matrix in candecomp to proper size