A generalization of the numerical range of a matrix