Modified matrix functions