I am trying to add a dyadic term in a bilinearform, but the followins script does not work with the error.
TypeError: unsupported operand type(s) for *: ‘ngsolve.la.DynamicVectorExpression’ and ‘ngsolve.la.DynamicVectorExpression’
a = BilinearForm(fes)
a += nu*(grad(u)*grad(v))*dx
gfu = GridFunction(fes)
gfu.Set(x)
a.mat += (a.mat*gfu.vec)*(trasnpose(a.mat*gfu.vec))
Do I have to convert all the matrices and vectors in numpy?