Improved matrix functions and models