← Back to team overview

ufl team mailing list archive

Re: is_multilinear

 

On Thu, Feb 12, 2009 at 02:46:22PM +0100, Martin Sandve Alnæs wrote:
> I see in the preliminary ffc ufl compiler that you use is_multilinear
> to select tensor or quadrature representation. This isn't what
> is_multilinear does, it only checks linearity in basis function
> arguments, not functions, so if it returns false you have an invalid
> form no matter what. We can add a variant of the same algorithm that
> checks for linearity in functions, but is_multilinear should stay as
> it is.
> 
> Martin

ok. I've been thinking about this and I have a feeling that the
easiest way to check if a form is multilinear (in the FFC sense) is
to actually try to compute the monomial representation. If it works
it's "multilinear" otherwise not.

-- 
Anders

Attachment: signature.asc
Description: Digital signature


References