Thread Previous • Date Previous • Date Next • Thread Next |
On Tue, Nov 22, 2011 at 11:43:51AM +0100, Martin Sandve Alnæs wrote: > Currently I'm doing: > v = u.vector() > v[:] = x > v.axpy(1.0, y) > to set the Vector of Function u to x+y, where x,y are Vectors. Is this > the best way? This should work: u.vector()[:] = x + y -- Anders
Thread Previous • Date Previous • Date Next • Thread Next |