This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Is it possible to evaluate FunctionAXPY object?

+2 votes

I'd like to do in c++

FunctionAXPY f; f.eval(values,x);

asked Sep 6, 2013 by chaffra FEniCS User (1,830 points)

1 Answer

+2 votes
 
Best answer

If you look at the FunctionAXPY class it is just a light weight container of pairs of scalars and Functions. It can be used to assign to Functions, so try:

Function v(V);
v = f;
v.eval(values, x);
answered Sep 6, 2013 by johanhake FEniCS Expert (22,480 points)
selected Sep 11, 2013 by Jan Blechta
...