rn matrix ms to wg.ko