Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Dear François, I'm indeed interested in the script you mentioned in your answer, could you please put the link to the script here? That will be very helpful. Thank you in advance.
Sorry for posting this as an answer, I cannot leave comment. Are you sure your matrix is $$[A(k)]_{j\,l}= -\frac{e^{ik|y_j-y_l|}}{4\pi|y_j-y_l|}\, j\neq l$$ and not $$[A(k)]_{j\,l}= -\frac{e^{ik|y_j-y_l|}-1}{4\pi|y_j-y_l|}\, j\neq l$$ If you want to extend some properties of the derivative of a matrix to its eigenvalue, the eigenvectors have to be independent of the derivation variable.