pi-matrix