Update regime-specific latent node positions using optimized matrix operations. Pre-computes invariant quantities outside the node loop for better performance.
updateUm(ns, U, V, R, Zm, Km, ej, s2, eU, iVU, UL.Normal)A matrix of regime-specific latent node positions
The number of latent states
THe latent node positions
Layer-specific network generation rule.
The dimensionality of latent space
Regim-specific Z - beta
The dimension of regime-specific Z.
Regime indicator.
The variance of error.
The regim-specific mean of U.
The regim-specific variance of U.
Normalization method for U. "Normal" or "Orthonormal" are supported.