matrix functions and pearson co-eff functions