. . . "P is a matrix and w is a scalar, but product gives scalar out of the matrix." . .