Matrix Product Operator Representations Of Functions