\hypertarget{namespace_wire_cell_1_1_array}{}\section{Wire\+Cell\+:\+:Array Namespace Reference}
\label{namespace_wire_cell_1_1_array}\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef Eigen\+::\+Array\+Xf \hyperlink{namespace_wire_cell_1_1_array_ac1868a05b1fe180d6323674e8b5a3db9}{array\+\_\+xf}
\item 
typedef Eigen\+::\+Array\+Xcf \hyperlink{namespace_wire_cell_1_1_array_aa3b8841eb0edb05008f49e62484eac89}{array\+\_\+xc}
\item 
typedef Eigen\+::\+Array$<$ short, Eigen\+::\+Dynamic, Eigen\+::\+Dynamic $>$ \hyperlink{namespace_wire_cell_1_1_array_a9cfeb4a60ab1746f8295d623c49e8cd4}{array\+\_\+xxs}
\begin{DoxyCompactList}\small\item\em A 16 bit short integer 2D array. \end{DoxyCompactList}\item 
typedef Eigen\+::\+Array$<$ int, Eigen\+::\+Dynamic, Eigen\+::\+Dynamic $>$ \hyperlink{namespace_wire_cell_1_1_array_ab9b1f02c15124679d6a6f521e34a2479}{array\+\_\+xxi}
\begin{DoxyCompactList}\small\item\em Integer. \end{DoxyCompactList}\item 
typedef Eigen\+::\+Array$<$ long, Eigen\+::\+Dynamic, Eigen\+::\+Dynamic $>$ \hyperlink{namespace_wire_cell_1_1_array_a2fa3192873f7b97d7fe22d3018a73874}{array\+\_\+xxl}
\begin{DoxyCompactList}\small\item\em Integer. \end{DoxyCompactList}\item 
typedef Eigen\+::\+Array\+X\+Xf \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{array\+\_\+xxf}
\begin{DoxyCompactList}\small\item\em A real, 2D array. \end{DoxyCompactList}\item 
typedef Eigen\+::\+Array\+X\+Xcf \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc}
\begin{DoxyCompactList}\small\item\em A complex, 2D array. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \hyperlink{namespace_wire_cell_1_1_array_aa6783f65a9e3b61db246eee7352fa6ee}{dft} (const \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{array\+\_\+xxf} \&arr)
\item 
\hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{array\+\_\+xxf} \hyperlink{namespace_wire_cell_1_1_array_a7c00f9a4791a2e3ced35753de37a5403}{idft} (const \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \&arr)
\item 
\hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \hyperlink{namespace_wire_cell_1_1_array_aa18a99e94f8ba5fdc974ddfdc5778c97}{dft\+\_\+rc} (const \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{array\+\_\+xxf} \&arr, int dim=0)
\item 
\hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \hyperlink{namespace_wire_cell_1_1_array_a312b7bcf55424009be17c8fd731e85f1}{dft\+\_\+cc} (const \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \&arr, int dim=1)
\item 
\hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \hyperlink{namespace_wire_cell_1_1_array_a9d111d786752105dff7dff62704ca7d2}{idft\+\_\+cc} (const \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \&arr, int dim=1)
\item 
\hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{array\+\_\+xxf} \hyperlink{namespace_wire_cell_1_1_array_aff0d07e015ea44d76736b57baa5d3693}{idft\+\_\+cr} (const \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \&arr, int dim=0)
\item 
\hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{array\+\_\+xxf} \hyperlink{namespace_wire_cell_1_1_array_ae1c856168b5f280c3a5dfda8292124b4}{deconv} (const \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{array\+\_\+xxf} \&arr, const \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \&filter)
\end{DoxyCompactItemize}


\subsection{Typedef Documentation}
\mbox{\Hypertarget{namespace_wire_cell_1_1_array_aa3b8841eb0edb05008f49e62484eac89}\label{namespace_wire_cell_1_1_array_aa3b8841eb0edb05008f49e62484eac89}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!array\+\_\+xc@{array\+\_\+xc}}
\index{array\+\_\+xc@{array\+\_\+xc}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{array\+\_\+xc}{array\_xc}}
{\footnotesize\ttfamily typedef Eigen\+::\+Array\+Xcf \hyperlink{namespace_wire_cell_1_1_array_aa3b8841eb0edb05008f49e62484eac89}{Wire\+Cell\+::\+Array\+::array\+\_\+xc}}



Definition at line 42 of file Array.\+h.

\mbox{\Hypertarget{namespace_wire_cell_1_1_array_ac1868a05b1fe180d6323674e8b5a3db9}\label{namespace_wire_cell_1_1_array_ac1868a05b1fe180d6323674e8b5a3db9}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!array\+\_\+xf@{array\+\_\+xf}}
\index{array\+\_\+xf@{array\+\_\+xf}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{array\+\_\+xf}{array\_xf}}
{\footnotesize\ttfamily typedef Eigen\+::\+Array\+Xf \hyperlink{namespace_wire_cell_1_1_array_ac1868a05b1fe180d6323674e8b5a3db9}{Wire\+Cell\+::\+Array\+::array\+\_\+xf}}



Definition at line 41 of file Array.\+h.

\mbox{\Hypertarget{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}\label{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!array\+\_\+xxc@{array\+\_\+xxc}}
\index{array\+\_\+xxc@{array\+\_\+xxc}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{array\+\_\+xxc}{array\_xxc}}
{\footnotesize\ttfamily typedef Eigen\+::\+Array\+X\+Xcf \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{Wire\+Cell\+::\+Array\+::array\+\_\+xxc}}



A complex, 2D array. 



Definition at line 57 of file Array.\+h.

\mbox{\Hypertarget{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}\label{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!array\+\_\+xxf@{array\+\_\+xxf}}
\index{array\+\_\+xxf@{array\+\_\+xxf}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{array\+\_\+xxf}{array\_xxf}}
{\footnotesize\ttfamily typedef Eigen\+::\+Array\+X\+Xf \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{Wire\+Cell\+::\+Array\+::array\+\_\+xxf}}



A real, 2D array. 



Definition at line 54 of file Array.\+h.

\mbox{\Hypertarget{namespace_wire_cell_1_1_array_ab9b1f02c15124679d6a6f521e34a2479}\label{namespace_wire_cell_1_1_array_ab9b1f02c15124679d6a6f521e34a2479}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!array\+\_\+xxi@{array\+\_\+xxi}}
\index{array\+\_\+xxi@{array\+\_\+xxi}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{array\+\_\+xxi}{array\_xxi}}
{\footnotesize\ttfamily typedef Eigen\+::\+Array$<$int, Eigen\+::\+Dynamic, Eigen\+::\+Dynamic$>$ \hyperlink{namespace_wire_cell_1_1_array_ab9b1f02c15124679d6a6f521e34a2479}{Wire\+Cell\+::\+Array\+::array\+\_\+xxi}}



Integer. 



Definition at line 48 of file Array.\+h.

\mbox{\Hypertarget{namespace_wire_cell_1_1_array_a2fa3192873f7b97d7fe22d3018a73874}\label{namespace_wire_cell_1_1_array_a2fa3192873f7b97d7fe22d3018a73874}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!array\+\_\+xxl@{array\+\_\+xxl}}
\index{array\+\_\+xxl@{array\+\_\+xxl}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{array\+\_\+xxl}{array\_xxl}}
{\footnotesize\ttfamily typedef Eigen\+::\+Array$<$long, Eigen\+::\+Dynamic, Eigen\+::\+Dynamic$>$ \hyperlink{namespace_wire_cell_1_1_array_a2fa3192873f7b97d7fe22d3018a73874}{Wire\+Cell\+::\+Array\+::array\+\_\+xxl}}



Integer. 



Definition at line 51 of file Array.\+h.

\mbox{\Hypertarget{namespace_wire_cell_1_1_array_a9cfeb4a60ab1746f8295d623c49e8cd4}\label{namespace_wire_cell_1_1_array_a9cfeb4a60ab1746f8295d623c49e8cd4}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!array\+\_\+xxs@{array\+\_\+xxs}}
\index{array\+\_\+xxs@{array\+\_\+xxs}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{array\+\_\+xxs}{array\_xxs}}
{\footnotesize\ttfamily typedef Eigen\+::\+Array$<$short, Eigen\+::\+Dynamic, Eigen\+::\+Dynamic$>$ \hyperlink{namespace_wire_cell_1_1_array_a9cfeb4a60ab1746f8295d623c49e8cd4}{Wire\+Cell\+::\+Array\+::array\+\_\+xxs}}



A 16 bit short integer 2D array. 



Definition at line 45 of file Array.\+h.



\subsection{Function Documentation}
\mbox{\Hypertarget{namespace_wire_cell_1_1_array_ae1c856168b5f280c3a5dfda8292124b4}\label{namespace_wire_cell_1_1_array_ae1c856168b5f280c3a5dfda8292124b4}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!deconv@{deconv}}
\index{deconv@{deconv}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{deconv()}{deconv()}}
{\footnotesize\ttfamily \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{Wire\+Cell\+::\+Array\+::array\+\_\+xxf} Wire\+Cell\+::\+Array\+::deconv (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{array\+\_\+xxf} \&}]{arr,  }\item[{const \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \&}]{filter }\end{DoxyParamCaption})}

Perform 2D deconvolution.

This will perform a 2D forward D\+FT, do an element-\/by-\/element multiplication of that periodicity/frequency space matrix by the filter and then perform an 2D inverse D\+FT. 

Definition at line 187 of file Array.\+cxx.

\mbox{\Hypertarget{namespace_wire_cell_1_1_array_aa6783f65a9e3b61db246eee7352fa6ee}\label{namespace_wire_cell_1_1_array_aa6783f65a9e3b61db246eee7352fa6ee}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!dft@{dft}}
\index{dft@{dft}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{dft()}{dft()}}
{\footnotesize\ttfamily \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{Wire\+Cell\+::\+Array\+::array\+\_\+xxc} Wire\+Cell\+::\+Array\+::dft (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{array\+\_\+xxf} \&}]{arr }\end{DoxyParamCaption})}

Perform full, 2D discrete Fourier transform on a real 2D array.

The full 2D D\+FT first performs a 1D D\+FT (real-\/$>$complex) on each individual row and then a 1D D\+FT (complex-\/$>$complex) on each resulting column.

const\+\_\+shared\+\_\+array\+\_\+xxf arr = ...; const\+\_\+shared\+\_\+array\+\_\+xxc spec = dft($\ast$arr);

... \begin{DoxyVerb}    const_shared_array_xxf arr2 = idft(*spec);\end{DoxyVerb}
 

Definition at line 15 of file Array.\+cxx.

Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespace_wire_cell_1_1_array_aa6783f65a9e3b61db246eee7352fa6ee_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{namespace_wire_cell_1_1_array_a312b7bcf55424009be17c8fd731e85f1}\label{namespace_wire_cell_1_1_array_a312b7bcf55424009be17c8fd731e85f1}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!dft\+\_\+cc@{dft\+\_\+cc}}
\index{dft\+\_\+cc@{dft\+\_\+cc}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{dft\+\_\+cc()}{dft\_cc()}}
{\footnotesize\ttfamily \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{Wire\+Cell\+::\+Array\+::array\+\_\+xxc} Wire\+Cell\+::\+Array\+::dft\+\_\+cc (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \&}]{arr,  }\item[{int}]{dim = {\ttfamily 1} }\end{DoxyParamCaption})}



Definition at line 67 of file Array.\+cxx.

Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespace_wire_cell_1_1_array_a312b7bcf55424009be17c8fd731e85f1_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{namespace_wire_cell_1_1_array_aa18a99e94f8ba5fdc974ddfdc5778c97}\label{namespace_wire_cell_1_1_array_aa18a99e94f8ba5fdc974ddfdc5778c97}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!dft\+\_\+rc@{dft\+\_\+rc}}
\index{dft\+\_\+rc@{dft\+\_\+rc}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{dft\+\_\+rc()}{dft\_rc()}}
{\footnotesize\ttfamily \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{Wire\+Cell\+::\+Array\+::array\+\_\+xxc} Wire\+Cell\+::\+Array\+::dft\+\_\+rc (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{array\+\_\+xxf} \&}]{arr,  }\item[{int}]{dim = {\ttfamily 0} }\end{DoxyParamCaption})}

Partial, 1D D\+FT and inverse D\+FT along one dimension of an array. Each row is transformed if dim=0, each column if dim=1. The transfer is either real-\/$>$complex (rc), complex-\/$>$complex(cc) or complex-\/$>$real(cr).

The full 2D D\+FT should be used unless an intermediate filter is required as it will avoid producing some temporaries.

Conceptually\+:

auto xxc = dft(xxf);

is equivalent to

auto tmp = dft\+\_\+rc(xxf, 0); auto xxc = dft\+\_\+cc(tmp, 1);

and\+: \begin{DoxyVerb}auto xxf = idft(xxc)
\end{DoxyVerb}


is equivalent to\+: \begin{DoxyVerb}auto tmp = idft_cc(xxc, 1);
auto xxf = idft_rc(tmp, 0);\end{DoxyVerb}
 

Definition at line 40 of file Array.\+cxx.

Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespace_wire_cell_1_1_array_aa18a99e94f8ba5fdc974ddfdc5778c97_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{namespace_wire_cell_1_1_array_a7c00f9a4791a2e3ced35753de37a5403}\label{namespace_wire_cell_1_1_array_a7c00f9a4791a2e3ced35753de37a5403}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!idft@{idft}}
\index{idft@{idft}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{idft()}{idft()}}
{\footnotesize\ttfamily \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{Wire\+Cell\+::\+Array\+::array\+\_\+xxf} Wire\+Cell\+::\+Array\+::idft (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \&}]{arr }\end{DoxyParamCaption})}



Definition at line 96 of file Array.\+cxx.

\mbox{\Hypertarget{namespace_wire_cell_1_1_array_a9d111d786752105dff7dff62704ca7d2}\label{namespace_wire_cell_1_1_array_a9d111d786752105dff7dff62704ca7d2}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!idft\+\_\+cc@{idft\+\_\+cc}}
\index{idft\+\_\+cc@{idft\+\_\+cc}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{idft\+\_\+cc()}{idft\_cc()}}
{\footnotesize\ttfamily \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{Wire\+Cell\+::\+Array\+::array\+\_\+xxc} Wire\+Cell\+::\+Array\+::idft\+\_\+cc (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \&}]{arr,  }\item[{int}]{dim = {\ttfamily 1} }\end{DoxyParamCaption})}



Definition at line 125 of file Array.\+cxx.

Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespace_wire_cell_1_1_array_a9d111d786752105dff7dff62704ca7d2_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{namespace_wire_cell_1_1_array_aff0d07e015ea44d76736b57baa5d3693}\label{namespace_wire_cell_1_1_array_aff0d07e015ea44d76736b57baa5d3693}} 
\index{Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}!idft\+\_\+cr@{idft\+\_\+cr}}
\index{idft\+\_\+cr@{idft\+\_\+cr}!Wire\+Cell\+::\+Array@{Wire\+Cell\+::\+Array}}
\subsubsection{\texorpdfstring{idft\+\_\+cr()}{idft\_cr()}}
{\footnotesize\ttfamily \hyperlink{namespace_wire_cell_1_1_array_ab565fef5e33632bb02f0ed4be803020c}{Wire\+Cell\+::\+Array\+::array\+\_\+xxf} Wire\+Cell\+::\+Array\+::idft\+\_\+cr (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_wire_cell_1_1_array_a4688507545975422d74b9ba78530956a}{array\+\_\+xxc} \&}]{arr,  }\item[{int}]{dim = {\ttfamily 0} }\end{DoxyParamCaption})}



Definition at line 153 of file Array.\+cxx.

