\section{Concatenate$<$ Input\+Data\+Type, Output\+Data\+Type $>$ Class Template Reference}
\label{classmlpack_1_1ann_1_1Concatenate}\index{Concatenate$<$ Input\+Data\+Type, Output\+Data\+Type $>$@{Concatenate$<$ Input\+Data\+Type, Output\+Data\+Type $>$}}


Implementation of the \doxyref{Concatenate}{p.}{classmlpack_1_1ann_1_1Concatenate} module class.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Concatenate} ()
\begin{DoxyCompactList}\small\item\em Create the \doxyref{Concatenate}{p.}{classmlpack_1_1ann_1_1Concatenate} object using the specified number of output units. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Backward} (const arma\+::\+Mat$<$ eT $>$ \&, const arma\+::\+Mat$<$ eT $>$ \&gy, arma\+::\+Mat$<$ eT $>$ \&g)
\begin{DoxyCompactList}\small\item\em Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backwards trough f. \end{DoxyCompactList}\item 
Output\+Data\+Type const  \& \textbf{ Concat} () const
\begin{DoxyCompactList}\small\item\em Get the concat matrix. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Concat} ()
\begin{DoxyCompactList}\small\item\em Modify the delta. \end{DoxyCompactList}\item 
Output\+Data\+Type const  \& \textbf{ Delta} () const
\begin{DoxyCompactList}\small\item\em Get the delta. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Delta} ()
\begin{DoxyCompactList}\small\item\em Modify the delta. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Forward} (const arma\+::\+Mat$<$ eT $>$ \&input, arma\+::\+Mat$<$ eT $>$ \&output)
\begin{DoxyCompactList}\small\item\em Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activity forward through f. \end{DoxyCompactList}\item 
Output\+Data\+Type const  \& \textbf{ Output\+Parameter} () const
\begin{DoxyCompactList}\small\item\em Get the output parameter. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Output\+Parameter} ()
\begin{DoxyCompactList}\small\item\em Modify the output parameter. \end{DoxyCompactList}\item 
Output\+Data\+Type const  \& \textbf{ Parameters} () const
\begin{DoxyCompactList}\small\item\em Get the parameters. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Parameters} ()
\begin{DoxyCompactList}\small\item\em Modify the parameters. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Archive $>$ }\\void \textbf{ serialize} (Archive \&, const unsigned int)
\begin{DoxyCompactList}\small\item\em Serialize the layer. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Input\+Data\+Type = arma\+::mat, typename Output\+Data\+Type = arma\+::mat$>$\newline
class mlpack\+::ann\+::\+Concatenate$<$ Input\+Data\+Type, Output\+Data\+Type $>$}

Implementation of the \doxyref{Concatenate}{p.}{classmlpack_1_1ann_1_1Concatenate} module class. 

The \doxyref{Concatenate}{p.}{classmlpack_1_1ann_1_1Concatenate} module concatenates a constant given matrix to the incoming data. Note\+: Users need to use the \doxyref{Concat()}{p.}{classmlpack_1_1ann_1_1Concatenate_ab6d00c9e20fe864a635afeee80267c66} function to provide the concat matrix.


\begin{DoxyTemplParams}{Template Parameters}
{\em Input\+Data\+Type} & Type of the input data (arma\+::colvec, arma\+::mat, arma\+::sp\+\_\+mat or arma\+::cube). \\
\hline
{\em Output\+Data\+Type} & Type of the output data (arma\+::colvec, arma\+::mat, arma\+::sp\+\_\+mat or arma\+::cube). \\
\hline
\end{DoxyTemplParams}


Definition at line 36 of file concatenate.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1Concatenate_ab589994946f9646efb33115d53bbb7b3}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Concatenate@{Concatenate}}
\index{Concatenate@{Concatenate}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Concatenate()}
{\footnotesize\ttfamily \textbf{ Concatenate} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Create the \doxyref{Concatenate}{p.}{classmlpack_1_1ann_1_1Concatenate} object using the specified number of output units. 



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1Concatenate_ad9ad1a3bdb0f3fff5c839ed155e4bbf8}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Backward@{Backward}}
\index{Backward@{Backward}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Backward()}
{\footnotesize\ttfamily void Backward (\begin{DoxyParamCaption}\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{,  }\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{gy,  }\item[{arma\+::\+Mat$<$ eT $>$ \&}]{g }\end{DoxyParamCaption})}



Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backwards trough f. 

Using the results from the feed forward pass.


\begin{DoxyParams}{Parameters}
{\em $\ast$} & (input) The propagated input activation. \\
\hline
{\em gy} & The backpropagated error. \\
\hline
{\em g} & The calculated gradient. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1ann_1_1Concatenate_a2a3b8cc991cfeb4c68616ca8542efe99}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Concat@{Concat}}
\index{Concat@{Concat}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Concat()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type const\& \textbf{ Concat} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the concat matrix. 



Definition at line 84 of file concatenate.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Concatenate_ab6d00c9e20fe864a635afeee80267c66}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Concat@{Concat}}
\index{Concat@{Concat}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Concat()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& \textbf{ Concat} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the delta. 



Definition at line 86 of file concatenate.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Concatenate_a797f7edb44dd081e5e2b3cc316eef6bd}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Delta@{Delta}}
\index{Delta@{Delta}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Delta()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type const\& Delta (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the delta. 



Definition at line 79 of file concatenate.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Concatenate_ad6601342d560219ce951d554e69e5e87}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Delta@{Delta}}
\index{Delta@{Delta}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Delta()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Delta (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the delta. 



Definition at line 81 of file concatenate.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Concatenate_a461f849bc638c15bec262dc9c3a58abe}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Forward@{Forward}}
\index{Forward@{Forward}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Forward()}
{\footnotesize\ttfamily void Forward (\begin{DoxyParamCaption}\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{input,  }\item[{arma\+::\+Mat$<$ eT $>$ \&}]{output }\end{DoxyParamCaption})}



Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activity forward through f. 


\begin{DoxyParams}{Parameters}
{\em input} & Input data used for evaluating the specified function. \\
\hline
{\em output} & Resulting output activation. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1ann_1_1Concatenate_a0ee21c2a36e5abad1e7a9d5dd00849f9}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Output\+Parameter@{Output\+Parameter}}
\index{Output\+Parameter@{Output\+Parameter}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Output\+Parameter()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type const\& Output\+Parameter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the output parameter. 



Definition at line 74 of file concatenate.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Concatenate_a21d5f745f02c709625a4ee0907f004a5}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Output\+Parameter@{Output\+Parameter}}
\index{Output\+Parameter@{Output\+Parameter}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Output\+Parameter()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Output\+Parameter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the output parameter. 



Definition at line 76 of file concatenate.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Concatenate_aa530552c7ef915c952fbacc77b965c90}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Parameters@{Parameters}}
\index{Parameters@{Parameters}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Parameters()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type const\& Parameters (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the parameters. 



Definition at line 69 of file concatenate.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Concatenate_a9c5c5900772a689d5a6b59778ec67120}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!Parameters@{Parameters}}
\index{Parameters@{Parameters}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{Parameters()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Parameters (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the parameters. 



Definition at line 71 of file concatenate.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Concatenate_aa5b3dd8336182f751ebec27167c22415}} 
\index{mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}!serialize@{serialize}}
\index{serialize@{serialize}!mlpack\+::ann\+::\+Concatenate@{mlpack\+::ann\+::\+Concatenate}}
\subsubsection{serialize()}
{\footnotesize\ttfamily void serialize (\begin{DoxyParamCaption}\item[{Archive \&}]{,  }\item[{const unsigned}]{int }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Serialize the layer. 



Definition at line 92 of file concatenate.\+hpp.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/git/src/mlpack/methods/ann/layer/\textbf{ concatenate.\+hpp}\end{DoxyCompactItemize}
