Initial matrix processing