\hypertarget{a00057}{
\section{mln::accu::convolve$<$ T1, T2, R $>$ Struct Template Reference}
\label{d1/d22/a00057}\index{mln::accu::convolve@{mln::accu::convolve}}
}


Generic convolution accumulator class.  




{\ttfamily \#include $<$convolve.hh$>$}



Inherits base$<$ R, convolve$<$ T1, T2, R $>$ $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a00057_a2200b36f757ab02b3e1821014ba7354f}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Check whether this accu is able to return a result. \item\end{DoxyCompactList}\item 
void \hyperlink{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{take\_\-as\_\-init} (const T \&t)
\begin{DoxyCompactList}\small\item\em Take as initialization the value {\ttfamily t}. \item\end{DoxyCompactList}\item 
void \hyperlink{a00026_a138e094daa1a85f345bbdfd852c9fc67}{take\_\-n\_\-times} (unsigned n, const T \&t)
\begin{DoxyCompactList}\small\item\em Take {\ttfamily n} times the value {\ttfamily t}. \item\end{DoxyCompactList}\item 
R \hyperlink{a00057_af0113794b2a5f323253b7f0a897aa489}{to\_\-result} () const 
\begin{DoxyCompactList}\small\item\em Get the value of the accumulator. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00057_a559096098d2600cbb5f499e351d28cb5}{init} ()
\begin{DoxyCompactList}\small\item\em Manipulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T1, typename T2, typename R = typename mln::trait::value\_\-$<$ typename mln::trait::op::times$<$   T1   ,   T2   $>$::ret $>$::sum$>$ struct mln::accu::convolve$<$ T1, T2, R $>$}

Generic convolution accumulator class. Parameters {\ttfamily T1} and {\ttfamily T2} are the type of values to be convolved. Parameter {\ttfamily R} is the result type. 

Definition at line 54 of file accu/convolve.hh.



\subsection{Member Function Documentation}
\hypertarget{a00057_a559096098d2600cbb5f499e351d28cb5}{
\index{mln::accu::convolve@{mln::accu::convolve}!init@{init}}
\index{init@{init}!mln::accu::convolve@{mln::accu::convolve}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T1 , typename T2 , typename R $>$ void {\bf mln::accu::convolve}$<$ T1, T2, R $>$::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d22/a00057_a559096098d2600cbb5f499e351d28cb5}


Manipulators. 



Definition at line 96 of file accu/convolve.hh.



References mln::literal::zero.

\hypertarget{a00057_a2200b36f757ab02b3e1821014ba7354f}{
\index{mln::accu::convolve@{mln::accu::convolve}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::accu::convolve@{mln::accu::convolve}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T1 , typename T2 , typename R $>$ bool {\bf mln::accu::convolve}$<$ T1, T2, R $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d22/a00057_a2200b36f757ab02b3e1821014ba7354f}


Check whether this accu is able to return a result. 

Always true here. 

Definition at line 137 of file accu/convolve.hh.

\hypertarget{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{
\index{mln::accu::convolve@{mln::accu::convolve}!take\_\-as\_\-init@{take\_\-as\_\-init}}
\index{take\_\-as\_\-init@{take\_\-as\_\-init}!mln::accu::convolve@{mln::accu::convolve}}
\subsubsection[{take\_\-as\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf convolve}$<$ T1, T2, R $>$  $>$::take\_\-as\_\-init (
\begin{DoxyParamCaption}
\item[{const T \&}]{ t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d6/d5b/a00026_a745794a4ef16926d3c09ebbaa8b6b557}


Take as initialization the value {\ttfamily t}. 

Dev note: this is a final method; override if needed by take\_\-as\_\-init\_\- (ending with '\_\-'). \hypertarget{a00026_a138e094daa1a85f345bbdfd852c9fc67}{
\index{mln::accu::convolve@{mln::accu::convolve}!take\_\-n\_\-times@{take\_\-n\_\-times}}
\index{take\_\-n\_\-times@{take\_\-n\_\-times}!mln::accu::convolve@{mln::accu::convolve}}
\subsubsection[{take\_\-n\_\-times}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf convolve}$<$ T1, T2, R $>$  $>$::take\_\-n\_\-times (
\begin{DoxyParamCaption}
\item[{unsigned}]{ n, }
\item[{const T \&}]{ t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d6/d5b/a00026_a138e094daa1a85f345bbdfd852c9fc67}


Take {\ttfamily n} times the value {\ttfamily t}. 

Dev note: this is a final method; override if needed by take\_\-as\_\-init\_\- (ending with '\_\-'). \hypertarget{a00057_af0113794b2a5f323253b7f0a897aa489}{
\index{mln::accu::convolve@{mln::accu::convolve}!to\_\-result@{to\_\-result}}
\index{to\_\-result@{to\_\-result}!mln::accu::convolve@{mln::accu::convolve}}
\subsubsection[{to\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T1 , typename T2 , typename R $>$ R {\bf mln::accu::convolve}$<$ T1, T2, R $>$::to\_\-result (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d22/a00057_af0113794b2a5f323253b7f0a897aa489}


Get the value of the accumulator. 



Definition at line 129 of file accu/convolve.hh.

