Continue with the same issue of the previous relevant threads. The following is from the replies I got and works as desired. ...
I am calculating eigenvlaues. Some are negative, some are positive. I define the index nn and mm (as well as np and mp) of each matrix element by some functions that assign positive, zero and negative ...