← Back to team overview

ffc team mailing list archive

Re: [FIAT-dev] evaluate_basis and derivatives

 

On Tue, Aug 18, 2009 at 09:12:49PM +0200, Kristian Oelgaard wrote:
>
>
> Hello,
>
> I want to eliminate a basis function value (i.e. not generate code for it) for
> evaluate_basis() (and evaluate_basis_derivative()).
>
> Calling tabulate(x) on the FIAT element FiniteElement("CG", "triangle", 3)
> will return the dot product of the expansion coefficients (a matrix) and the
> bvals (an array) which is evaluated at the point x.
>
> In the current case the coefficients is a 10x10 matrix and the bvals is a 10x1.
> If I just want to return the first 9 basis function values should I remove the
> last row of the coefficient matrix only, or should I also remove the last
> column as well along with the last row in the bvals?
>
> Kristian

I think you should remove the last row to get a 9x10 matrix which you
multiply with a 10x1 vector to get a 9x1 vector with the values.

--
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups

References