x = sympy.MatrixSymbol('x', 3, 1)
f = implemented_function(sympy.Function('f'), lambda x: x.T * x)
lam_f = sympy.lambdify(x, f(x))
Converting expression involving tranpose of vector to numerical function with lambdify