\XtoCBlock{LookupTable2D}
\label{block:LookupTable2D}
\begin{figure}[H]\includegraphics{LookupTable2D}\end{figure} 
Two dimensional look-up table with selectable number of data points.

  Table data must be an array of size DimX*DimY.

  If input is out of specified range, output will be cut off (no extrapolation).

\begin{XtoCtabular}{Inports}
x & Table index in x direction\\
\hline
y & Table index in y direction\\
\hline
\end{XtoCtabular}


\begin{XtoCtabular}{Outports}
Out & Table output\\
\hline
\end{XtoCtabular}

\begin{XtoCMaskParamTabular}{Mask Parameters}
TableData & 1 & Look-up table data\\
\hline
DimX & 2 & Number of data points in x-direction\\
\hline
x\_min & 3 & Minimum input value of x-dimension for look-up table\\
\hline
x\_max & 4 & Maximum input value of x-dimension for look-up table\\
\hline
DimY & 5 & Number of data points in y-direction\\
\hline
y\_min & 6 & Minimum input value of y-dimension for look-up table\\
\hline
y\_max & 7 & Maximum input value of y-dimension for look-up table\\
\hline
\end{XtoCMaskParamTabular}

\ifdefined \XcOverviewDocu
% omit optional documentation file
\else
% include optional documentation file
\IfFileExists{\XcHomePath/Library/General/Doc/LookupTable2D_Info.tex}
  {\subsubsection*{Description:}
   \input{\XcHomePath/Library/General/Doc/LookupTable2D_Info.tex}}
  {\vspace{1ex}}
\fi

\subsubsection*{Implementations:}
\begin{tabular}{l l}
\textbf{FiP16} & 16 Bit Fixed Point Implementation\\
\textbf{FiP32} & 32 Bit Fixed Point Implementation\\
\textbf{Float32} & 32 Bit Floating Point Implementation\\
\textbf{Float64} & 64 Bit Floating Point Implementation\\
\end{tabular}

\ifdefined \XcOverviewDocu
% omit implementation details and test reports
\else
\XtoCImplementation{FiP16}
\nopagebreak[0]

16 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
x & int16\\
\hline
y & int16\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & int16\\
\hline
\end{XtoCtabular}

\XtoCImplementation{FiP32}
\nopagebreak[0]

32 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
x & int32\\
\hline
y & int32\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & int32\\
\hline
\end{XtoCtabular}

\XtoCImplementation{Float32}
\nopagebreak[0]

32 Bit Floating Point Implementation

\begin{XtoCtabular}{Inports Data Type}
x & float32\\
\hline
y & float32\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & float32\\
\hline
\end{XtoCtabular}

\XtoCImplementation{Float64}
\nopagebreak[0]

64 Bit Floating Point Implementation

\begin{XtoCtabular}{Inports Data Type}
x & float64\\
\hline
y & float64\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & float64\\
\hline
\end{XtoCtabular}

\ifdefined \AddTestReports
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_LookupTable2D_FiP16.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_LookupTable2D_FiP32.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_LookupTable2D_Float32.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_LookupTable2D_Float64.tex}{}{}
\fi
\fi
