\section{Given\+Initialization Class Reference}
\label{classmlpack_1_1amf_1_1GivenInitialization}\index{Given\+Initialization@{Given\+Initialization}}


This initialization rule for \doxyref{A\+MF}{p.}{classmlpack_1_1amf_1_1AMF} simply fills the W and H matrices with the matrices given to the constructor of this object.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Given\+Initialization} ()
\item 
\textbf{ Given\+Initialization} (const arma\+::mat \&w, const arma\+::mat \&h)
\item 
\textbf{ Given\+Initialization} (const arma\+::mat \&\&w, const arma\+::mat \&\&h)
\item 
\textbf{ Given\+Initialization} (const arma\+::mat \&m, const bool which\+Matrix=true)
\item 
\textbf{ Given\+Initialization} (const arma\+::mat \&\&m, const bool which\+Matrix=true)
\item 
{\footnotesize template$<$typename Mat\+Type $>$ }\\void \textbf{ Initialize} (const Mat\+Type \&V, const size\+\_\+t r, arma\+::mat \&W, arma\+::mat \&H)
\begin{DoxyCompactList}\small\item\em Fill W and H with given matrices. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Mat\+Type $>$ }\\void \textbf{ Initialize\+One} (const Mat\+Type \&V, const size\+\_\+t r, arma\+::mat \&M, const bool which\+Matrix=true)
\begin{DoxyCompactList}\small\item\em Fill W or H with given matrix. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Archive $>$ }\\void \textbf{ serialize} (Archive \&ar, const unsigned int)
\begin{DoxyCompactList}\small\item\em Serialize the object (in this case, there is nothing to serialize). \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This initialization rule for \doxyref{A\+MF}{p.}{classmlpack_1_1amf_1_1AMF} simply fills the W and H matrices with the matrices given to the constructor of this object. 

Note that this object does not use std\+::move() during the \doxyref{Initialize()}{p.}{classmlpack_1_1amf_1_1GivenInitialization_af7816b2608658041cf35befb4c3946b9} method, so it can be reused for multiple \doxyref{A\+MF}{p.}{classmlpack_1_1amf_1_1AMF} objects, but will incur copies of the W and H matrices. 

Definition at line 27 of file given\+\_\+init.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1amf_1_1GivenInitialization_a53bd9dba6a4228dec311182f3b764f31}} 
\index{mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}!Given\+Initialization@{Given\+Initialization}}
\index{Given\+Initialization@{Given\+Initialization}!mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}}
\subsubsection{Given\+Initialization()\hspace{0.1cm}{\footnotesize\ttfamily [1/5]}}
{\footnotesize\ttfamily \textbf{ Given\+Initialization} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 31 of file given\+\_\+init.\+hpp.

\mbox{\label{classmlpack_1_1amf_1_1GivenInitialization_a1e16c4be542c7629394a4a6bdf0e30af}} 
\index{mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}!Given\+Initialization@{Given\+Initialization}}
\index{Given\+Initialization@{Given\+Initialization}!mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}}
\subsubsection{Given\+Initialization()\hspace{0.1cm}{\footnotesize\ttfamily [2/5]}}
{\footnotesize\ttfamily \textbf{ Given\+Initialization} (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{w,  }\item[{const arma\+::mat \&}]{h }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 34 of file given\+\_\+init.\+hpp.

\mbox{\label{classmlpack_1_1amf_1_1GivenInitialization_a46b01fb0c1f3a5cd31013bbdee063866}} 
\index{mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}!Given\+Initialization@{Given\+Initialization}}
\index{Given\+Initialization@{Given\+Initialization}!mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}}
\subsubsection{Given\+Initialization()\hspace{0.1cm}{\footnotesize\ttfamily [3/5]}}
{\footnotesize\ttfamily \textbf{ Given\+Initialization} (\begin{DoxyParamCaption}\item[{const arma\+::mat \&\&}]{w,  }\item[{const arma\+::mat \&\&}]{h }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 39 of file given\+\_\+init.\+hpp.

\mbox{\label{classmlpack_1_1amf_1_1GivenInitialization_ae2f9c59d5f5b4ec7a836084150f85cef}} 
\index{mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}!Given\+Initialization@{Given\+Initialization}}
\index{Given\+Initialization@{Given\+Initialization}!mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}}
\subsubsection{Given\+Initialization()\hspace{0.1cm}{\footnotesize\ttfamily [4/5]}}
{\footnotesize\ttfamily \textbf{ Given\+Initialization} (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{m,  }\item[{const bool}]{which\+Matrix = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 47 of file given\+\_\+init.\+hpp.

\mbox{\label{classmlpack_1_1amf_1_1GivenInitialization_a361454d5a5a17e475976df9e8fd3ac18}} 
\index{mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}!Given\+Initialization@{Given\+Initialization}}
\index{Given\+Initialization@{Given\+Initialization}!mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}}
\subsubsection{Given\+Initialization()\hspace{0.1cm}{\footnotesize\ttfamily [5/5]}}
{\footnotesize\ttfamily \textbf{ Given\+Initialization} (\begin{DoxyParamCaption}\item[{const arma\+::mat \&\&}]{m,  }\item[{const bool}]{which\+Matrix = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 64 of file given\+\_\+init.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1amf_1_1GivenInitialization_af7816b2608658041cf35befb4c3946b9}} 
\index{mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}}
\subsubsection{Initialize()}
{\footnotesize\ttfamily void Initialize (\begin{DoxyParamCaption}\item[{const Mat\+Type \&}]{V,  }\item[{const size\+\_\+t}]{r,  }\item[{arma\+::mat \&}]{W,  }\item[{arma\+::mat \&}]{H }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Fill W and H with given matrices. 


\begin{DoxyParams}{Parameters}
{\em V} & Input matrix. \\
\hline
{\em r} & Rank of decomposition. \\
\hline
{\em W} & W matrix, to be initialized to given matrix. \\
\hline
{\em H} & H matrix, to be initialized to given matrix. \\
\hline
\end{DoxyParams}


Definition at line 89 of file given\+\_\+init.\+hpp.



References Log\+::\+Fatal.

\mbox{\label{classmlpack_1_1amf_1_1GivenInitialization_ab36c483763ea43179dd94fac38e29f03}} 
\index{mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}!Initialize\+One@{Initialize\+One}}
\index{Initialize\+One@{Initialize\+One}!mlpack\+::amf\+::\+Given\+Initialization@{mlpack\+::amf\+::\+Given\+Initialization}}
\subsubsection{Initialize\+One()}
{\footnotesize\ttfamily void Initialize\+One (\begin{DoxyParamCaption}\item[{const Mat\+Type \&}]{V,  }\item[{const size\+\_\+t}]{r,  }\item[{arma\+::mat \&}]{M,  }\item[{const bool}]{which\+Matrix = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Fill W or H with given matrix. 


\begin{DoxyParams}{Parameters}
{\em V} & Input matrix. \\
\hline
{\em r} & Rank of decomposition. \\
\hline
{\em M} & W or H matrix, to be initialized to given matrix. \\
\hline
{\em which\+Matrix} & If true, initialize W. Otherwise, initialize H. \\
\hline
\end{DoxyParams}


Definition at line 144 of file given\+\_\+init.\+hpp.



References Log\+::\+Fatal.

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



Serialize the object (in this case, there is nothing to serialize). 



Definition at line 203 of file given\+\_\+init.\+hpp.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/3.\+3.\+1/src/mlpack/methods/amf/init\+\_\+rules/\textbf{ given\+\_\+init.\+hpp}\end{DoxyCompactItemize}
