Fixed Eigvalsh to support none array as b input.