Solve inverse matrix assignment