discretize.CurvilinearMesh.get_edge_inner_product_surface_deriv#
- CurvilinearMesh.get_edge_inner_product_surface_deriv(model, invert_model=False, invert_matrix=False, **kwargs)[source]#
Get a function handle to multiply a vector with derivative of edge inner product surface matrix (or its inverse).
Let
be the edge inner product surface matrix constructed with a set of diagnostic property parameters (or its inverse) defined on mesh faces. get_edge_inner_product_surface_deriv constructs a function handlewhich accepts any numpy.array
of shape (n_edges,). That is, get_edge_inner_product_surface_deriv constructs a function handle for computing the dot product between a vector and the derivative of the edge inner product surface matrix (or its inverse) with respect to the property parameters. When computed, returns ascipy.sparse.csr_matrix
of shape (n_edges, n_param).The function handle can only be created for isotropic diagnostic properties.
- Parameters:
- model(
n_faces
, )numpy.ndarray
Parameters defining the diagnostic property values for every face in the mesh.
- invert_modelbool,
optional
The inverse of model is used as the diagnostic property.
- invert_matrixbool,
optional
Returns the inverse of the inner product surface matrix.
- model(
- Returns:
function
The function handle
which accepts a (n_edges
)numpy.ndarray
. The function returns a (n_edges
,n_params
)scipy.sparse.csr_matrix
.