I want to know how to approximate a general multivariable linear piecewise function (in both cases where it's continious but not smooth and when it's not continious nor smooth) $\mathbb{R}^{n} \rightarrow \mathbb{R}$ to a smooth continuous multivariable function $\mathbb{R}^{n} \rightarrow \mathbb{R}$
https://www.hindawi.com/journals/jam/2015/376362/
I found this paper but I am not sure if the method presented works for $n>1$