Coarse-graining support: Support.Sobolev.CubeEmbedding.Fold #
Imported from the Apache-2.0 CoarseGraining development at commit
c7ddd76c08ade64fed1b8d2ca51be14dfee8deb4.
The even-periodic fold onto a box #
The coordinatewise even fold of ℝ onto the interval [lo, hi] with margin
equal to the side length: identity on [lo, hi], reflected across lo below
and across hi above. Applied coordinatewise it gives Fold : Vec d → Vec d,
and the extension of a function v is v ∘ Fold. There are only two kinks per
coordinate; the fold is 1-Lipschitz and equals the identity on the closed box.
The coordinatewise fold onto the box [lo, hi].
Equations
- HCPolySupport.Fold lo hi x j = HCPolySupport.foldR (lo j) (hi j) (x j)
Instances For
theorem
HCPolySupport.continuous_Fold
{d : ℕ}
(lo hi : Vec d)
(hlohi : ∀ (j : Fin d), lo j ≤ hi j)
:
Continuous (Fold lo hi)