\section{lib/neatogen/conjgrad.c File Reference}
\label{conjgrad_8c}\index{lib/neatogen/conjgrad.\-c@{lib/neatogen/conjgrad.\-c}}
{\ttfamily \#include \char`\"{}matrix\-\_\-ops.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}conjgrad.\-h\char`\"{}}\\*
{\ttfamily \#include $<$stdlib.\-h$>$}\\*
Include dependency graph for conjgrad.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{conjgrad_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf int} {\bf conjugate\-\_\-gradient} ({\bf vtx\-\_\-data} $\ast$A, double $\ast$x, double $\ast$b, {\bf int} n, double tol, {\bf int} max\-\_\-iterations)
\item 
{\bf int} {\bf conjugate\-\_\-gradient\-\_\-f} (float $\ast$$\ast$A, double $\ast$x, double $\ast$b, {\bf int} n, double tol, {\bf int} max\-\_\-iterations, {\bf boolean} ortho1)
\item 
{\bf int} {\bf conjugate\-\_\-gradient\-\_\-mkernel} (float $\ast$A, float $\ast$x, float $\ast$b, {\bf int} n, double tol, {\bf int} max\-\_\-iterations)
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\index{conjgrad.\-c@{conjgrad.\-c}!conjugate\-\_\-gradient@{conjugate\-\_\-gradient}}
\index{conjugate\-\_\-gradient@{conjugate\-\_\-gradient}!conjgrad.c@{conjgrad.\-c}}
\subsubsection[{conjugate\-\_\-gradient}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} conjugate\-\_\-gradient (
\begin{DoxyParamCaption}
\item[{{\bf vtx\-\_\-data} $\ast$}]{A, }
\item[{double $\ast$}]{x, }
\item[{double $\ast$}]{b, }
\item[{{\bf int}}]{n, }
\item[{double}]{tol, }
\item[{{\bf int}}]{max\-\_\-iterations}
\end{DoxyParamCaption}
)}\label{conjgrad_8c_a39edf31b52e97a72b8d07bb9e9eb2add}


Definition at line 26 of file conjgrad.\-c.



References agerr(), A\-G\-E\-R\-R, alpha, copy\-\_\-vector(), N\-\_\-\-G\-N\-E\-W, orthog1(), right\-\_\-mult\-\_\-with\-\_\-vector(), vectors\-\_\-addition(), vectors\-\_\-inner\-\_\-product(), vectors\-\_\-scalar\-\_\-mult(), and vectors\-\_\-subtraction().



Referenced by cg().

\index{conjgrad.\-c@{conjgrad.\-c}!conjugate\-\_\-gradient\-\_\-f@{conjugate\-\_\-gradient\-\_\-f}}
\index{conjugate\-\_\-gradient\-\_\-f@{conjugate\-\_\-gradient\-\_\-f}!conjgrad.c@{conjgrad.\-c}}
\subsubsection[{conjugate\-\_\-gradient\-\_\-f}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} conjugate\-\_\-gradient\-\_\-f (
\begin{DoxyParamCaption}
\item[{float $\ast$$\ast$}]{A, }
\item[{double $\ast$}]{x, }
\item[{double $\ast$}]{b, }
\item[{{\bf int}}]{n, }
\item[{double}]{tol, }
\item[{{\bf int}}]{max\-\_\-iterations, }
\item[{{\bf boolean}}]{ortho1}
\end{DoxyParamCaption}
)}\label{conjgrad_8c_a34093397a3297275cc7a521bf287545e}


Definition at line 99 of file conjgrad.\-c.



References agerr(), A\-G\-E\-R\-R, alpha, copy\-\_\-vector(), N\-\_\-\-G\-N\-E\-W, orthog1(), right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-f(), vectors\-\_\-addition(), vectors\-\_\-inner\-\_\-product(), vectors\-\_\-scalar\-\_\-mult(), and vectors\-\_\-subtraction().

\index{conjgrad.\-c@{conjgrad.\-c}!conjugate\-\_\-gradient\-\_\-mkernel@{conjugate\-\_\-gradient\-\_\-mkernel}}
\index{conjugate\-\_\-gradient\-\_\-mkernel@{conjugate\-\_\-gradient\-\_\-mkernel}!conjgrad.c@{conjgrad.\-c}}
\subsubsection[{conjugate\-\_\-gradient\-\_\-mkernel}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} conjugate\-\_\-gradient\-\_\-mkernel (
\begin{DoxyParamCaption}
\item[{float $\ast$}]{A, }
\item[{float $\ast$}]{x, }
\item[{float $\ast$}]{b, }
\item[{{\bf int}}]{n, }
\item[{double}]{tol, }
\item[{{\bf int}}]{max\-\_\-iterations}
\end{DoxyParamCaption}
)}\label{conjgrad_8c_a5fb45e99bf3a5b24e1df0e13376816d4}


Definition at line 168 of file conjgrad.\-c.



References agerr(), A\-G\-E\-R\-R, alpha, copy\-\_\-vectorf(), N\-\_\-\-N\-E\-W, orthog1f(), right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-ff(), vectors\-\_\-additionf(), vectors\-\_\-inner\-\_\-productf(), vectors\-\_\-mult\-\_\-additionf(), vectors\-\_\-scalar\-\_\-multf(), and vectors\-\_\-substractionf().



Referenced by stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel().

