Matrix-SPN