Small changes to matrix functions
ljklj