\hypertarget{group__operationskernels}{}\doxysection{SVM kernel operations}
\label{group__operationskernels}\index{SVM kernel operations@{SVM kernel operations}}


This module contains API functions to handle SVM kernel operations.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} void \mbox{\hyperlink{group__operationskernels_gad2fcb917f5a1f00710da486f0b865acd}{svm\+\_\+kernel\+\_\+swap\+\_\+memory}} (const void $\ast$svm, \mbox{\hyperlink{group__api__types_ga19af2c6060f3ae282ea4e73121fac69c}{SVM\+\_\+\+Kernel}} kernel1, \mbox{\hyperlink{group__api__types_ga19af2c6060f3ae282ea4e73121fac69c}{SVM\+\_\+\+Kernel}} kernel2)
\begin{DoxyCompactList}\small\item\em This function swaps memories of two kernels. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This module contains API functions to handle SVM kernel operations. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__operationskernels_gad2fcb917f5a1f00710da486f0b865acd}\label{group__operationskernels_gad2fcb917f5a1f00710da486f0b865acd}} 
\index{SVM kernel operations@{SVM kernel operations}!svm\_kernel\_swap\_memory@{svm\_kernel\_swap\_memory}}
\index{svm\_kernel\_swap\_memory@{svm\_kernel\_swap\_memory}!SVM kernel operations@{SVM kernel operations}}
\doxysubsubsection{\texorpdfstring{svm\_kernel\_swap\_memory()}{svm\_kernel\_swap\_memory()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} void svm\+\_\+kernel\+\_\+swap\+\_\+memory (\begin{DoxyParamCaption}\item[{const void $\ast$}]{svm,  }\item[{\mbox{\hyperlink{group__api__types_ga19af2c6060f3ae282ea4e73121fac69c}{SVM\+\_\+\+Kernel}}}]{kernel1,  }\item[{\mbox{\hyperlink{group__api__types_ga19af2c6060f3ae282ea4e73121fac69c}{SVM\+\_\+\+Kernel}}}]{kernel2 }\end{DoxyParamCaption})}



This function swaps memories of two kernels. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in,out}}  & {\em kernel1} & The first kernel of memory exchange. \\
\hline
\mbox{\texttt{ in,out}}  & {\em kernel2} & The second kernel of memory exchange.\\
\hline
\end{DoxyParams}
This function swaps the memories of the two kernels provided in input, no matter their state. This function also works on detached kernels.

\begin{DoxyNote}{Note}
The two kernels have to be different kernels.
\end{DoxyNote}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
{\em FAILURE} & interruption when at least one kernel is not owned by our process or is not in a process locked by ours. \\
\hline
{\em FAILURE} & interruption when the two kernels are the same kernel. \\
\hline
\end{DoxyExceptions}
