laplacian
laplacian(X, T, mu=None)
Computes the Laplacian of a d-simplex. With d being 2, 3 or 4.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
V |
(n, 3) numpy float array
|
Vertex positions |
required |
T |
(t, d) (d=2, 3, 4) numpy int array
|
Simplex indices |
required |
mu |
(t,) numpy float array
|
Per-simplex conductivity |
None
|
Returns:
Name | Type | Description |
---|---|---|
L |
(n, n) scipy sparse float array
|
Laplacian matrix |
Source code in src\fast_cody\laplacian.py
7 8 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 |
|