Inverse matrix code