View source: R/multi_coarsen.R
coarsen_one_level_localvar | R Documentation |
Performs one coarsening step: - Computes edge costs - Selects edges to contract (if none meet threshold, force one contraction if force_contraction=TRUE) - Constructs P, updates L and U
coarsen_one_level_localvar(
L,
U,
n,
sigma_prime,
force_contraction = FALSE,
verbose = FALSE
)
L |
Current Laplacian. |
U |
Current subspace U (N x k). |
n |
Target size after coarsening (N_new <= n ideally). |
sigma_prime |
Variation threshold. |
force_contraction |
If TRUE, force at least one edge contraction if none selected normally. |
verbose |
If TRUE, prints messages. |
A list:
L_new |
Reduced Laplacian. |
P |
Coarsening matrix. |
U_new |
Updated subspace. |
N_new |
New dimension. |
sigma |
Approx. variation cost (for epsilon update). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.