Updated functions to evaluate matrices.