Boundary condition in eigenvalue problem

Thank you for the answers, may I ask why different values of tgv are used for left and right hand side matrices. Also I am wondering what is the impact of setting such kind of values on the matrices themselves ?

Thank you.

My apologies, I have read this topic: Application of Dirichlet BCs
and now it seems clearer to me why different values of tgv are used.