ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #00675
Re: outer products
On Tue, Sep 26, 2006 at 05:53:51PM +0200, Anders Logg wrote:
...
> Good point. The following example seems to work:
>
> element = FiniteElement("Vector Lagrange", "triangle", 1)
> v = BasisFunction(element)
> print mult(transp([vec(v)]), [vec(v)])
> print mult([vec(v)], transp([vec(v)]))
>
> Should we add a new operator mat() that returns [vec()] or should we
> make vec() return this directly so it works like a column vector?
>
>
> /Anders
The second alternative is probably best. I think mat() should be
reserved for matrix-valued functions, to perform the equivalent of
vec().
Johan
Follow ups
References