laplacian_eigenmodes
laplacian_eigenmodes(V, T, m, read_cache=False, cache_dir=None, J=None, mu=None, constraint_enforcement='optimal')
Computes Laplacian Eigenmodes for a given mesh.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
V |
(n, 3) float numpy array
|
Vertex positions |
required |
T |
(F, 4) int numpy array
|
Tet indices |
required |
m |
int
|
Number of modes to compute |
required |
read_cache |
bool
|
Whether to read from cache or not (default False) |
False
|
cache_dir |
str
|
Directory to cache results in (default None) |
None
|
J |
(c x n) float numpy array
|
Constraint matrix we desire on our weights s.t. J @ W = 0 (default None) |
None
|
mu |
float
|
Per-tet conducivity. If None, sets it to 1.0 everyewhere (default None) |
None
|
constraint_enforcement |
str
|
Method of enforcing constraint. Either "project" or "optimal" (default "optimal") |
'optimal'
|
Returns:
Name | Type | Description |
---|---|---|
B |
(n, m) float numpy array
|
Subspace matrix/Eigenvectors of laplacian. |
E |
(m, 1) float numpy array
|
Eigenvalues of each eigenvector |
Source code in src\fast_cody\laplacian_eigenmodes.py
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|