massmatrix
massmatrix(V, F=None, type='voronoi')
FEM Mass matrix
Builds the finite elements mass matrix of a triangle mesh or polyline using a piecewise linear hat function basis.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
V |
(n,d) numpy array
|
vertex list of a polyline or triangle mesh |
required |
F |
numpy int array, optional (default
|
if None or (m,2), interpret input as ordered polyline; if (m,3) numpy int array, interpred as face index list of a triangle mesh |
None
|
type |
str, optional (default 'voronoi')
|
Type of mass matrix computation: 'voronoi' (default), 'full' or 'barycentric' |
'voronoi'
|
Returns:
Name | Type | Description |
---|---|---|
M |
(n,n) scipy sparse.csr_matrix
|
Mass matrix |
See Also
massmatrix.
Notes
For a polyline, this is just the finite difference mass matrix.
Examples:
TO-DO
Source code in src/gpytoolbox/massmatrix.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|