grad
-
compas.numerical.
grad
(V, F, rtype='array')[source] Construct the gradient operator of a trianglular mesh.
- Parameters
V (array) – Vertex coordinates of the mesh.
F (array) – Face vertex indices of the mesh.
rtype ({‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’}) – Format of the result.
- Returns
array-like – Depending on rtype return type.
Notes
The gradient operator is fully determined by the connectivity of the mesh and the coordinate difference vectors associated with the edges