More matrix functions.