G matrix