How to change vector values of a Function
Asked by
Xujun Zhao
a beginner's problem for C++ implementation:
I created two functions in the same function space, say
Function f1(V), f2(V)
We know there are two main components for a function, vector and functionspace. Here f1 and f2's vector should have the same length. Now I want to change the vector values of f2, for example, f2.vector() = 0.5*(f1.vector() + f2.vector()). what operations do I need to do?
Thank you for your answers.
XZ
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Xujun Zhao for more information if necessary.
To post a message you must log in.