\section{/var/www/mlpack.ratml.\+org/mlpack.org/\+\_\+src/mlpack-\/3.3.1/src/mlpack/bindings/python/mlpack/arma\+\_\+util.hpp File Reference}
\label{arma__util_8hpp}\index{/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/3.\+3.\+1/src/mlpack/bindings/python/mlpack/arma\+\_\+util.\+hpp@{/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/3.\+3.\+1/src/mlpack/bindings/python/mlpack/arma\+\_\+util.\+hpp}}
Include dependency graph for arma\+\_\+util.\+hpp\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{arma__util_8hpp__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename T $>$ }\\T\+::elem\+\_\+type $\ast$ \textbf{ Get\+Memory} (T \&m)
\begin{DoxyCompactList}\small\item\em Return the matrix\textquotesingle{}s allocated memory pointer, unless the matrix is using its internal preallocated memory, in which case we copy that and return a pointer to the memory we just made. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\size\+\_\+t \textbf{ Get\+Mem\+State} (T \&t)
\begin{DoxyCompactList}\small\item\em Get the memory state of the given Armadillo object. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Set\+Mem\+State} (T \&t, int state)
\begin{DoxyCompactList}\small\item\em Set the memory state of the given Armadillo object. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Ryan Curtin
\end{DoxyAuthor}
Utility function for Cython to set the memory state of an Armadillo object.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-\/clause B\+SD license. You should have received a copy of the 3-\/clause B\+SD license along with mlpack. If not, see {\tt http\+://www.\+opensource.\+org/licenses/\+B\+S\+D-\/3-\/\+Clause} for more information. 

\subsection{Function Documentation}
\mbox{\label{arma__util_8hpp_abefb6113a86ec15d75ba169aae6a6b25}} 
\index{arma\+\_\+util.\+hpp@{arma\+\_\+util.\+hpp}!Get\+Memory@{Get\+Memory}}
\index{Get\+Memory@{Get\+Memory}!arma\+\_\+util.\+hpp@{arma\+\_\+util.\+hpp}}
\subsubsection{Get\+Memory()}
{\footnotesize\ttfamily T\+::elem\+\_\+type$\ast$ Get\+Memory (\begin{DoxyParamCaption}\item[{T \&}]{m }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Return the matrix\textquotesingle{}s allocated memory pointer, unless the matrix is using its internal preallocated memory, in which case we copy that and return a pointer to the memory we just made. 



Definition at line 47 of file arma\+\_\+util.\+hpp.

\mbox{\label{arma__util_8hpp_a4662e37466c53c085b4798378853d271}} 
\index{arma\+\_\+util.\+hpp@{arma\+\_\+util.\+hpp}!Get\+Mem\+State@{Get\+Mem\+State}}
\index{Get\+Mem\+State@{Get\+Mem\+State}!arma\+\_\+util.\+hpp@{arma\+\_\+util.\+hpp}}
\subsubsection{Get\+Mem\+State()}
{\footnotesize\ttfamily size\+\_\+t Get\+Mem\+State (\begin{DoxyParamCaption}\item[{T \&}]{t }\end{DoxyParamCaption})}



Get the memory state of the given Armadillo object. 



Definition at line 31 of file arma\+\_\+util.\+hpp.

\mbox{\label{arma__util_8hpp_ad5ce6aecb5d278fe4e68c882973142cb}} 
\index{arma\+\_\+util.\+hpp@{arma\+\_\+util.\+hpp}!Set\+Mem\+State@{Set\+Mem\+State}}
\index{Set\+Mem\+State@{Set\+Mem\+State}!arma\+\_\+util.\+hpp@{arma\+\_\+util.\+hpp}}
\subsubsection{Set\+Mem\+State()}
{\footnotesize\ttfamily void Set\+Mem\+State (\begin{DoxyParamCaption}\item[{T \&}]{t,  }\item[{int}]{state }\end{DoxyParamCaption})}



Set the memory state of the given Armadillo object. 



Definition at line 22 of file arma\+\_\+util.\+hpp.

