j_0}}\Bigr)  \mbox { as $$} \nonumber \\ 
&= \exp \Bigl(\frac{2{\pi}i{j_1}{x_1}}{\lambda_1} \Bigr) \times \cdots \times \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1}} {\lambda_{d-1}}\Bigr)\sum_{k=0}^{\lambda_0-1}\Bigl(\psi_o\psi_k\Bigr) \mbox { as $\psi_0=1$} \nonumber \\
&=0 \mbox{ due to orthogonality of the Fourier basis functions} \nonumber\end{aligned}$$ When n wild cards are present, the extension is straightforward and results in: $$\begin{aligned}
\sum_{x \in S}\psi_j(x)&= \exp \Bigl(\frac{2{\pi}i{j_{n}}{x_{n}}}{\lambda_n} \Bigr) \times \cdots \times \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1}} {\lambda_{d-1}}\Bigr)  \prod_{l=0}^{n-1}\sum_{k=0}^{\lambda_l-1}\Bigl(\exp \Bigl(\frac{2{\pi}i{j_l}k}{\lambda_l} \Bigr)\Bigr)  \\ 
 \sum_{x \in S}\psi_j(x)&= \exp \Bigl(\frac{2{\pi}i{j_{n}}{x_{n}}}{\lambda_n} \Bigr) \times \cdots \times \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1}} {\lambda_{d-1}}\Bigr)  \prod_{l=0}^{n-1}\sum_{k=0}^{\lambda_l-1}\Bigl(\psi_0\psi_k\Bigr) \nonumber \\ 
%\Bigl(1+\sum_{k=m}^{d-1}\Bigl(\exp \frac{2{\pi}i{j_0}k}{\lambda_0} \Bigr)\Bigr)   \nonumber \\
&=0 \mbox{ due to orthogonality of Fourier basis functions } \nonumber\end{aligned}$$ This optimization significantly increases processing speed, especially in high
j_0}}\Bigr)   \mbox { as $ $ } \nonumber \\ 
 & = \exp \Bigl(\frac{2{\pi}i{j_1}{x_1}}{\lambda_1 } \Bigr) \times \cdots \times \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1 } } { \lambda_{d-1}}\Bigr)\sum_{k=0}^{\lambda_0 - 1}\Bigl(\psi_o\psi_k\Bigr) \mbox { as $ \psi_0=1 $ } \nonumber \\ 
 & = 0 \mbox { due to orthogonality of the Fourier basis functions } \nonumber\end{aligned}$$ When n wild card are present, the elongation is straightforward and results in: $ $ \begin{aligned } 
 \sum_{x \in S}\psi_j(x)&= \exp \Bigl(\frac{2{\pi}i{j_{n}}{x_{n}}}{\lambda_n } \Bigr) \times \cdots \times \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1 } } { \lambda_{d-1}}\Bigr)   \prod_{l=0}^{n-1}\sum_{k=0}^{\lambda_l-1}\Bigl(\exp \Bigl(\frac{2{\pi}i{j_l}k}{\lambda_l } \Bigr)\Bigr)   \\ 
  \sum_{x \in S}\psi_j(x)&= \exp \Bigl(\frac{2{\pi}i{j_{n}}{x_{n}}}{\lambda_n } \Bigr) \times \cdots \times \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1 } } { \lambda_{d-1}}\Bigr)   \prod_{l=0}^{n-1}\sum_{k=0}^{\lambda_l-1}\Bigl(\psi_0\psi_k\Bigr) \nonumber \\ 
% \Bigl(1+\sum_{k = m}^{d-1}\Bigl(\exp \frac{2{\pi}i{j_0}k}{\lambda_0 } \Bigr)\Bigr)    \nonumber \\ 
 & = 0 \mbox { due to orthogonality of Fourier footing functions } \nonumber\end{aligned}$$ This optimization significantly increases march speed, especially in eminent
j_0}}\Bihr)  \mbox { as $$} \nonumber \\ 
&= \exp \Bigl(\frac{2{\pi}n{h_1}{x_1}}{\lambva_1} \Bigr) \times \caots \times \exp \Bigl(\frac{2{\pi}i{j_{d-1}}e_{d-1}} {\lqmbda_{e-1}}\Bigr)\sum_{k=0}^{\lambda_0-1}\Bigl(\psi_u\psi_k\Bigr) \mbox { aw $\psm_0=1$} \nonumber \\
&=0 \mbox{ due to orthogkkalitv if the Fourier basis funwtions} \nonumbes\evd{cligned}$$ When n wild cards are presene, the ectfnsion is strayghtgjrwadd and results in: $$\begin{aligned}
\sum_{x \in S}\psp_j(x)&= \exp \Bigl(\frac{2{\po}i{j_{n}}{x_{n}}}{\lambda_n} \Bigr) \times \cfots \times \exp \Bigl(\fraf{2{\pi}i{j_{d-1}}x_{d-1}} {\lanbda_{q-1}}\Vigr)  \prod_{l=0}^{n-1}\rum_{k=0}^{\lambda_l-1}\Bigl(\exp \Bigm(\frac{2{\pi}i{j_l}k}{\lambda_l} \Bigr)\Bigr)  \\ 
 \rum_{x \nn S}\psi_j(x)&= \ezp \Bihn(\frac{2{\pi}i{j_{n}}{x_{i}}}{\lambdw_n} \Bigr) \times \cdots \dimes \ecp \Bigl(\frac{2{\pi}i{m_{d-1}}x_{d-1}} {\namvda_{d-1}}\Bigr)  \prod_{l=0}^{n-1}\sum_{k=0}^{\lembda_l-1}\Bigl(\psi_0\psi_k\Bigt) \nonumber \\ 
%\Yigl(1+\sum_{k=m}^{d-1}\Bigl(\exp \frax{2{\pu}i{j_0}k}{\ldmbdd_0} \Biee)\Bier)   \ionhmber \\
&=0 \mbkx{ due to krthogonaliry of Fourier basis ftbctions } \nonujber\enq{ajigned}$$ This optimization significantly pncrsases processing speed, wspecially in high
j_0}}\Bigr) \mbox { as $$} \nonumber \\ \Bigl(\frac{2{\pi}i{j_1}{x_1}}{\lambda_1} \times \cdots \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1}} {\lambda_{d-1}}\Bigr)\sum_{k=0}^{\lambda_0-1}\Bigl(\psi_o\psi_k\Bigr) \\ \mbox{ due to of the Fourier functions} \nonumber\end{aligned}$$ When n wild cards present, the extension is straightforward and results in: $$\begin{aligned} \sum_{x \in S}\psi_j(x)&= \exp \Bigr) \times \cdots \times \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1}} {\lambda_{d-1}}\Bigr) \prod_{l=0}^{n-1}\sum_{k=0}^{\lambda_l-1}\Bigl(\exp \Bigl(\frac{2{\pi}i{j_l}k}{\lambda_l} \Bigr)\Bigr) \\ \sum_{x \in \exp \Bigr) \cdots \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1}} {\lambda_{d-1}}\Bigr) \prod_{l=0}^{n-1}\sum_{k=0}^{\lambda_l-1}\Bigl(\psi_0\psi_k\Bigr) \nonumber \\ %\Bigl(1+\sum_{k=m}^{d-1}\Bigl(\exp \frac{2{\pi}i{j_0}k}{\lambda_0} \Bigr)\Bigr) \nonumber \\ &=0 \mbox{ due to orthogonality Fourier basis functions } \nonumber\end{aligned}$$ This optimization significantly processing speed, especially in
j_0}}\Bigr)  \mbox { as $$} \nonumber \\ 
&= \exp \BigL(\frac{2{\pi}i{j_1}{x_1}}{\LambdA_1} \BiGr) \tImEs \cdOts \tImes \exp \Bigl(\fraC{2{\Pi}i{j_{D-1}}x_{d-1}} {\lambda_{d-1}}\Bigr)\sum_{k=0}^{\lambDa_0-1}\BigL(\pSI_o\psI_K\BIgr) \mbOx { as $\psi_0=1$} \NOnUMBer \\
&=0 \MbOx{ Due To ORtHogonAliTy of the fourier basIs fUnCtions} \nonumbER\eNd{aligned}$$ WHen N wild cards arE prEsent, tHe ExtENsion Is sTraigHtforwARd and rEsults in: $$\bEgIN{alignED}
\sum_{x \in s}\PSi_J(x)&= \exP \Bigl(\frac{2{\pi}i{j_{n}}{x_{n}}}{\lAMbDA_n} \Bigr) \times \cdoTs \timeS \eXP \BIGL(\frAc{2{\pI}i{j_{d-1}}x_{d-1}} {\lambDa_{D-1}}\Bigr)  \PRod_{l=0}^{n-1}\suM_{K=0}^{\lAMBDa_l-1}\bIgl(\exp \Bigl(\fraC{2{\pi}i{j_l}k}{\lambDA_l} \BIgr)\BigR)  \\ 
 \sUm_{x \IN S}\psi_j(X)&= \exp \BIgL(\FraC{2{\pi}i{j_{n}}{x_{n}}}{\lamBda_n} \bigr) \times \Cdots \tIMes \exp \BIGl(\frac{2{\pI}i{j_{d-1}}x_{d-1}} {\LamBda_{D-1}}\BigR)  \PrOd_{L=0}^{n-1}\sUm_{K=0}^{\LamBDa_L-1}\BiGL(\psI_0\psi_k\BigR) \nOnUmber \\ 
%\bigl(1+\SUM_{K=M}^{d-1}\BiGl(\eXp \frAc{2{\pi}i{J_0}k}{\lambda_0} \Bigr)\BIgr)   \NonuMBer \\
&=0 \Mbox{ dUe to oRthoGoNalitY of FouRier bAsIs functions } \nonuMber\End{aligneD}$$ ThIs OptImIzatiON signiFicAntLy increAses proCEssInG SPEeD, especially in high
j_0}}\Bigr)  \mbox { as $$ } \nonumbe r \\
&=  \e xp  \Bi gl(\ frac{2{\pi}i{j _ 1}{x _1}}{\lambda_1} \Bigr)  \tim es \cdo t s\time s \exp\ Bi g l (\f ra c{ 2{\ pi } i{ j_{d- 1}} x_{d-1} } {\lambda _{d -1 }}\Bigr)\sum _ {k =0}^{\lamb da_ 0-1}\Bigl(\p si_ o\psi_ k\ Big r ) \mb ox{ as$\psi_ 0 =1$} \ nonumber\\ &=0 \m b ox{ due t oorth ogonality of theF ou r ier basis func tions}  \ n on u m ber \en d{aligned} $$  When n wildc ar d s are present, theextension i s  st raight fo rwa r d andresul ts in:  $$\begin{a lign ed}
\sum_ {x \in S}\psi_ j (x)&= \ exp \B igl (\f rac{ 2 {\ pi }i{ j_ { n}} { x_ {n} } }{\ lambda_n }\B igr)\tim e s \ cdot s \ time s \ex p \Bigl(\frac {2{ \pi} i {j_ {d-1} }x_{d -1}}  { \lamb da_{d- 1}}\B ig r)  \prod_{l=0} ^{n- 1}\sum_{k =0} ^{ \la mb da_l- 1 }\Bigl (\e xp\Bigl(\ frac{2{ \ pi} i{ j _ l }k }{\lambda_l} \Bigr )\ B i gr )  \\ 
\sum_{ x  \ in S}\psi_j (x )&=  \ex p \Bigl (\fr a c{ 2{\pi}i{ j_{n}} { x_ {n }}}{\la mb da_n}\B igr ) \ times \cdo ts \ti mes \exp  \Big l (\frac{2{\pi}i { j_{d-1}}x_{d- 1 }} { \l a mbda _{d -1}}\Bigr) \pr o d_{l =0}^ { n- 1}\ s um_{k =0}^{ \l a mb d a_l-1}\Bigl(\psi_0\ ps i_k\Bi gr) \ nonumber \\ %\Bigl(1+\ s u m _{k=m}^{ d-1} \ Bi g l(\exp \frac{2 {\pi} i{j_0}k}{\ l ambda_0}  \Big r)\Bigr)    \nonum b e r \\
&=0  \m box { d uet o  o rthogonalityo f  Fou ri er basi s f unction s }  \n onu mbe r\ end{align ed}$$ Th is  o pt im iza tions ignifica nt lyin cre asesp rocess ing s peed ,es p eci ally in hi g h 
j_0}}\Bigr) _\mbox {_as $$} \nonumber \\_
&= \exp_\Bigl(\frac{2{\pi}i{j_1}{x_1}}{\lambda_1}_\Bigr) \times_\cdots_\times \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1}}_{\lambda_{d-1}}\Bigr)\sum_{k=0}^{\lambda_0-1}\Bigl(\psi_o\psi_k\Bigr) \mbox {_as $\psi_0=1$} \nonumber \\
&=0_\mbox{ due to_orthogonality_of the Fourier basis functions} \nonumber\end{aligned}$$ When n wild cards are present, the extension_is_straightforward and_results_in:_$$\begin{aligned}
\sum_{x \in S}\psi_j(x)&= \exp \Bigl(\frac{2{\pi}i{j_{n}}{x_{n}}}{\lambda_n}_\Bigr) \times \cdots \times \exp_\Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1}} {\lambda_{d-1}}\Bigr)_ \prod_{l=0}^{n-1}\sum_{k=0}^{\lambda_l-1}\Bigl(\exp \Bigl(\frac{2{\pi}i{j_l}k}{\lambda_l} \Bigr)\Bigr)  \\ 
 \sum_{x_\in_S}\psi_j(x)&= \exp \Bigl(\frac{2{\pi}i{j_{n}}{x_{n}}}{\lambda_n}_\Bigr) \times \cdots \times \exp \Bigl(\frac{2{\pi}i{j_{d-1}}x_{d-1}} {\lambda_{d-1}}\Bigr)  \prod_{l=0}^{n-1}\sum_{k=0}^{\lambda_l-1}\Bigl(\psi_0\psi_k\Bigr)_\nonumber \\ 
%\Bigl(1+\sum_{k=m}^{d-1}\Bigl(\exp \frac{2{\pi}i{j_0}k}{\lambda_0} \Bigr)\Bigr) _ \nonumber \\
&=0_\mbox{_due_to orthogonality of Fourier_basis functions } \nonumber\end{aligned}$$ This optimization_significantly increases processing speed, especially in_high