Perform calculation in the matrix field