From vector to fenics solution

Hello,
Is there any method to transform a vector of size M to fenics function in mesh of size (N,N)

Please create a minimal code example illustrating what you would like to do, as your question is very generic in its current formulation. Please see the guidelines: Read before posting: How do I get my question answered?