Inequalities for general matrix functions