Only executed when the function `smooth.FEM.basis`

is run with the option `CPP_CODE`

= `FALSE`

. It evaluates the Finite Element basis functions and their derivatives up to order 2 at the specified set of locations.
This version of the function is implemented using only R code. It is called by R_smooth.FEM.basis.

1 | ```
R_eval.FEM.basis(FEMbasis, locations, nderivs = matrix(0,1,2))
``` |

`FEMbasis` |
An |

`locations` |
A 2-columns matrix with the spatial locations where the bases should be evaluated. |

`nderivs` |
A vector of lenght 2 specifying the order of the partial derivatives of the bases to be evaluated. The vectors' entries can be 0,1 or 2, where 0 indicates that only the basis functions, and not their derivatives, should be evaluated. |

A matrix of basis function values. Each row indicates the location where the evaluation has been taken, the column indicates the basis function evaluated

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.