fm_basis | R Documentation |
Computes the basis mapping matrix between a function space on a mesh, and locations.
fm_basis(x, ...)
## Default S3 method:
fm_basis(x, loc, ...)
## S3 method for class 'fm_mesh_1d'
fm_basis(x, loc, weights = NULL, derivatives = NULL, ...)
## S3 method for class 'fm_mesh_2d'
fm_basis(x, loc, weights = NULL, derivatives = NULL, ...)
## S3 method for class 'inla.mesh.1d'
fm_basis(x, loc, ...)
## S3 method for class 'inla.mesh'
fm_basis(x, loc, ...)
## S3 method for class 'fm_evaluator'
fm_basis(x, ...)
## S3 method for class 'fm_tensor'
fm_basis(x, loc, weights = NULL, ...)
x |
An object supported by the |
... |
Currently unused |
loc |
A set of points of a class supported by |
weights |
Optional weight vector to apply (from the left, one weight for each row of the basis matrix) |
derivatives |
If non-NULL and logical, return a list, optionally including derivative matrices. |
A sparseMatrix
For fm_mesh_1d
, a matrix, or if derivatives
is TRUE
,
a list with elements
A |
The projection matrix, |
d1A , d2A |
Derivative weight matrices,
|
For fm_mesh_2d
, a matrix, or if derivatives
is TRUE
,
a list with elements
A |
The projection matrix, |
dx , dy , dz |
Derivative weight matrices, |
For fm_tensor
, a matrix
fm_raw_basis()
# Compute basis mapping matrix
str(fm_basis(fmexample$mesh, fmexample$loc))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.