calcBasisIntegrals function

Utility function that calculates matrix of basis-scalar products (one dimension)

Utility function that calculates matrix of basis-scalar products (one dimension)

If the element X(j)X^{(j)} is expanded in basis functions bi(t)b_i(t), this function calculates the Kj×KjK_j \times K_j matrix B(jj)B^{(jj)} with entries [REMOVE_ME]Bmn(jj)=Tjbm(j)(t)bn(j)(t)dt[REMOVEME2] B^{(jj)}_{mn} = \int_{\mathcal{T_j}} b_m^{(j)}(t) b_n^{(j)}(t) \mathrm{d} t [REMOVE_ME_2].

calcBasisIntegrals(basisFunctions, dimSupp, argvals)

Arguments

  • basisFunctions: Array of npc basis functions of dimensions npc x M1 or npc x M1 x M2.
  • dimSupp: dimension of the support of the basis functions (1 or 2)
  • argvals: List of corresponding x-values.

Returns

A matrix containing the scalar product of all combinations of basis functions (matrix B(j)B^{(j)})

Description

If the element X(j)X^{(j)} is expanded in basis functions bi(t)b_i(t), this function calculates the Kj×KjK_j \times K_j matrix B(jj)B^{(jj)} with entries

Bmn(jj)=Tjbm(j)(t)bn(j)(t)dt B^{(jj)}_{mn} = \int_{\mathcal{T_j}} b_m^{(j)}(t) b_n^{(j)}(t) \mathrm{d} t

.

Warning

This function is implemented only for functions on one- or two-dimensional domains.

See Also

MFPCA, dimSupp