\section{Orthogonal\+Initialization Class Reference}
\label{classmlpack_1_1ann_1_1OrthogonalInitialization}\index{Orthogonal\+Initialization@{Orthogonal\+Initialization}}


This class is used to initialize the weight matrix with the orthogonal matrix initialization.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Orthogonal\+Initialization} (const double gain=1.\+0)
\begin{DoxyCompactList}\small\item\em Initialize the orthogonal matrix initialization rule with the given gain. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Initialize} (arma\+::\+Mat$<$ eT $>$ \&W, const size\+\_\+t rows, const size\+\_\+t cols)
\begin{DoxyCompactList}\small\item\em Initialize the elements of the specified weight matrix with the orthogonal matrix initialization method. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Initialize} (arma\+::\+Cube$<$ eT $>$ \&W, const size\+\_\+t rows, const size\+\_\+t cols, const size\+\_\+t slices)
\begin{DoxyCompactList}\small\item\em Initialize the elements of the specified weight 3rd order tensor with the orthogonal matrix initialization method. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class is used to initialize the weight matrix with the orthogonal matrix initialization. 

Definition at line 24 of file orthogonal\+\_\+init.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1OrthogonalInitialization_a817ae9d4d72deee10477cb6e79dc535a}} 
\index{mlpack\+::ann\+::\+Orthogonal\+Initialization@{mlpack\+::ann\+::\+Orthogonal\+Initialization}!Orthogonal\+Initialization@{Orthogonal\+Initialization}}
\index{Orthogonal\+Initialization@{Orthogonal\+Initialization}!mlpack\+::ann\+::\+Orthogonal\+Initialization@{mlpack\+::ann\+::\+Orthogonal\+Initialization}}
\subsubsection{Orthogonal\+Initialization()}
{\footnotesize\ttfamily \textbf{ Orthogonal\+Initialization} (\begin{DoxyParamCaption}\item[{const double}]{gain = {\ttfamily 1.0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the orthogonal matrix initialization rule with the given gain. 


\begin{DoxyParams}{Parameters}
{\em gain} & The gain value. \\
\hline
\end{DoxyParams}


Definition at line 32 of file orthogonal\+\_\+init.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1OrthogonalInitialization_a5cfe472251a41fffd45b170bb0d3c1bd}} 
\index{mlpack\+::ann\+::\+Orthogonal\+Initialization@{mlpack\+::ann\+::\+Orthogonal\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+Orthogonal\+Initialization@{mlpack\+::ann\+::\+Orthogonal\+Initialization}}
\subsubsection{Initialize()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void Initialize (\begin{DoxyParamCaption}\item[{arma\+::\+Mat$<$ eT $>$ \&}]{W,  }\item[{const size\+\_\+t}]{rows,  }\item[{const size\+\_\+t}]{cols }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the elements of the specified weight matrix with the orthogonal matrix initialization method. 


\begin{DoxyParams}{Parameters}
{\em W} & Weight matrix to initialize. \\
\hline
{\em rows} & Number of rows. \\
\hline
{\em cols} & Number of columns. \\
\hline
\end{DoxyParams}


Definition at line 43 of file orthogonal\+\_\+init.\+hpp.



Referenced by Orthogonal\+Initialization\+::\+Initialize().

\mbox{\label{classmlpack_1_1ann_1_1OrthogonalInitialization_a40a2b6466bdba0f6aab4eb92b6e65934}} 
\index{mlpack\+::ann\+::\+Orthogonal\+Initialization@{mlpack\+::ann\+::\+Orthogonal\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+Orthogonal\+Initialization@{mlpack\+::ann\+::\+Orthogonal\+Initialization}}
\subsubsection{Initialize()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Initialize (\begin{DoxyParamCaption}\item[{arma\+::\+Cube$<$ eT $>$ \&}]{W,  }\item[{const size\+\_\+t}]{rows,  }\item[{const size\+\_\+t}]{cols,  }\item[{const size\+\_\+t}]{slices }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the elements of the specified weight 3rd order tensor with the orthogonal matrix initialization method. 


\begin{DoxyParams}{Parameters}
{\em W} & Weight matrix to initialize. \\
\hline
{\em rows} & Number of rows. \\
\hline
{\em cols} & Number of columns. \\
\hline
{\em slices} & Number of slices. \\
\hline
\end{DoxyParams}


Definition at line 62 of file orthogonal\+\_\+init.\+hpp.



References Orthogonal\+Initialization\+::\+Initialize().



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/ann/init\+\_\+rules/\textbf{ orthogonal\+\_\+init.\+hpp}\end{DoxyCompactItemize}
