P matrix