\section{lib/neatogen/matrix\-\_\-ops.c File Reference}
\label{matrix__ops_8c}\index{lib/neatogen/matrix\-\_\-ops.\-c@{lib/neatogen/matrix\-\_\-ops.\-c}}
{\ttfamily \#include \char`\"{}matrix\-\_\-ops.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}memory.\-h\char`\"{}}\\*
{\ttfamily \#include $<$stdlib.\-h$>$}\\*
{\ttfamily \#include $<$stdio.\-h$>$}\\*
{\ttfamily \#include $<$math.\-h$>$}\\*
Include dependency graph for matrix\-\_\-ops.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{matrix__ops_8c__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf R\-A\-N\-G\-E}~500
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf int} {\bf power\-\_\-iteration} (double $\ast$$\ast$square\-\_\-mat, {\bf int} n, {\bf int} neigs, double $\ast$$\ast$eigs, double $\ast$evals, {\bf int} initialize)
\item 
void {\bf mult\-\_\-dense\-\_\-mat} (double $\ast$$\ast$A, float $\ast$$\ast$B, {\bf int} dim1, {\bf int} dim2, {\bf int} dim3, float $\ast$$\ast$$\ast$C\-C)
\item 
void {\bf mult\-\_\-dense\-\_\-mat\-\_\-d} (double $\ast$$\ast$A, float $\ast$$\ast$B, {\bf int} dim1, {\bf int} dim2, {\bf int} dim3, double $\ast$$\ast$$\ast$C\-C)
\item 
void {\bf mult\-\_\-sparse\-\_\-dense\-\_\-mat\-\_\-transpose} ({\bf vtx\-\_\-data} $\ast$A, double $\ast$$\ast$B, {\bf int} dim1, {\bf int} dim2, float $\ast$$\ast$$\ast$C\-C)
\item 
void {\bf cpvec} (double $\ast$copy, {\bf int} beg, {\bf int} end, double $\ast$vec)
\item 
double {\bf dot} (double $\ast$vec1, {\bf int} beg, {\bf int} end, double $\ast$vec2)
\item 
void {\bf scadd} (double $\ast$vec1, {\bf int} beg, {\bf int} end, double fac, double $\ast$vec2)
\item 
void {\bf vecscale} (double $\ast$vec1, {\bf int} beg, {\bf int} end, double {\bf alpha}, double $\ast$vec2)
\item 
double {\bf norm} (double $\ast$vec, {\bf int} beg, {\bf int} end)
\item 
void {\bf orthog1} ({\bf int} n, double $\ast$vec)
\item 
void {\bf init\-\_\-vec\-\_\-orth1} ({\bf int} n, double $\ast$vec)
\item 
void {\bf right\-\_\-mult\-\_\-with\-\_\-vector} ({\bf vtx\-\_\-data} $\ast$matrix, {\bf int} n, double $\ast$vector, double $\ast$result)
\item 
void {\bf right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-f} (float $\ast$$\ast$matrix, {\bf int} n, double $\ast$vector, double $\ast$result)
\item 
void {\bf vectors\-\_\-subtraction} ({\bf int} n, double $\ast$vector1, double $\ast$vector2, double $\ast$result)
\item 
void {\bf vectors\-\_\-addition} ({\bf int} n, double $\ast$vector1, double $\ast$vector2, double $\ast$result)
\item 
void {\bf vectors\-\_\-scalar\-\_\-mult} ({\bf int} n, double $\ast$vector, double {\bf alpha}, double $\ast$result)
\item 
void {\bf copy\-\_\-vector} ({\bf int} n, double $\ast$source, double $\ast$dest)
\item 
double {\bf vectors\-\_\-inner\-\_\-product} ({\bf int} n, double $\ast$vector1, double $\ast$vector2)
\item 
double {\bf max\-\_\-abs} ({\bf int} n, double $\ast$vector)
\item 
void {\bf right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-transpose} (double $\ast$$\ast$matrix, {\bf int} dim1, {\bf int} dim2, double $\ast$vector, double $\ast$result)
\item 
void {\bf right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-d} (double $\ast$$\ast$matrix, {\bf int} dim1, {\bf int} dim2, double $\ast$vector, double $\ast$result)
\item 
void {\bf orthog1f} ({\bf int} n, float $\ast$vec)
\item 
void {\bf right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-ff} (float $\ast$packed\-\_\-matrix, {\bf int} n, float $\ast$vector, float $\ast$result)
\item 
void {\bf vectors\-\_\-substractionf} ({\bf int} n, float $\ast$vector1, float $\ast$vector2, float $\ast$result)
\item 
void {\bf vectors\-\_\-additionf} ({\bf int} n, float $\ast$vector1, float $\ast$vector2, float $\ast$result)
\item 
void {\bf vectors\-\_\-mult\-\_\-additionf} ({\bf int} n, float $\ast$vector1, float {\bf alpha}, float $\ast$vector2)
\item 
void {\bf vectors\-\_\-scalar\-\_\-multf} ({\bf int} n, float $\ast$vector, float {\bf alpha}, float $\ast$result)
\item 
void {\bf copy\-\_\-vectorf} ({\bf int} n, float $\ast$source, float $\ast$dest)
\item 
double {\bf vectors\-\_\-inner\-\_\-productf} ({\bf int} n, float $\ast$vector1, float $\ast$vector2)
\item 
void {\bf set\-\_\-vector\-\_\-val} ({\bf int} n, double val, double $\ast$result)
\item 
void {\bf set\-\_\-vector\-\_\-valf} ({\bf int} n, float val, float $\ast$result)
\item 
double {\bf max\-\_\-absf} ({\bf int} n, float $\ast$vector)
\item 
void {\bf square\-\_\-vec} ({\bf int} n, float $\ast$vec)
\item 
void {\bf invert\-\_\-vec} ({\bf int} n, float $\ast$vec)
\item 
void {\bf sqrt\-\_\-vec} ({\bf int} n, float $\ast$vec)
\item 
void {\bf sqrt\-\_\-vecf} ({\bf int} n, float $\ast$source, float $\ast$target)
\item 
void {\bf invert\-\_\-sqrt\-\_\-vec} ({\bf int} n, float $\ast$vec)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!R\-A\-N\-G\-E@{R\-A\-N\-G\-E}}
\index{R\-A\-N\-G\-E@{R\-A\-N\-G\-E}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{R\-A\-N\-G\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define R\-A\-N\-G\-E~500}\label{matrix__ops_8c_ac04dd0afaf7ea3eb2ade2544d2d5f907}


Definition at line 338 of file matrix\-\_\-ops.\-c.



Referenced by init\-\_\-vec\-\_\-orth1().



\subsection{Function Documentation}
\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!copy\-\_\-vector@{copy\-\_\-vector}}
\index{copy\-\_\-vector@{copy\-\_\-vector}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{copy\-\_\-vector}]{\setlength{\rightskip}{0pt plus 5cm}void copy\-\_\-vector (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{double $\ast$}]{source, }
\item[{double $\ast$}]{dest}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_aeb74e583773f83c3bf4143b62ccd90ef}


Definition at line 431 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient(), and conjugate\-\_\-gradient\-\_\-f().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!copy\-\_\-vectorf@{copy\-\_\-vectorf}}
\index{copy\-\_\-vectorf@{copy\-\_\-vectorf}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{copy\-\_\-vectorf}]{\setlength{\rightskip}{0pt plus 5cm}void copy\-\_\-vectorf (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{source, }
\item[{float $\ast$}]{dest}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a8ebcb651f9d919fbb2bcea50282111da}


Definition at line 657 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient\-\_\-mkernel(), and stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!cpvec@{cpvec}}
\index{cpvec@{cpvec}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{cpvec}]{\setlength{\rightskip}{0pt plus 5cm}void cpvec (
\begin{DoxyParamCaption}
\item[{double $\ast$}]{copy, }
\item[{{\bf int}}]{beg, }
\item[{{\bf int}}]{end, }
\item[{double $\ast$}]{vec}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_adbf23cd4fee1845ed070f97712fb760c}


Definition at line 258 of file matrix\-\_\-ops.\-c.



Referenced by power\-\_\-iteration().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!dot@{dot}}
\index{dot@{dot}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{dot}]{\setlength{\rightskip}{0pt plus 5cm}double dot (
\begin{DoxyParamCaption}
\item[{double $\ast$}]{vec1, }
\item[{{\bf int}}]{beg, }
\item[{{\bf int}}]{end, }
\item[{double $\ast$}]{vec2}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_ae20a0a0f32c95b2b4365834893cd40f9}


Definition at line 270 of file matrix\-\_\-ops.\-c.

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!init\-\_\-vec\-\_\-orth1@{init\-\_\-vec\-\_\-orth1}}
\index{init\-\_\-vec\-\_\-orth1@{init\-\_\-vec\-\_\-orth1}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{init\-\_\-vec\-\_\-orth1}]{\setlength{\rightskip}{0pt plus 5cm}void init\-\_\-vec\-\_\-orth1 (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{double $\ast$}]{vec}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a2e46bc369b5702689a0107906a95188a}


Definition at line 341 of file matrix\-\_\-ops.\-c.



References orthog1(), and R\-A\-N\-G\-E.

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!invert\-\_\-sqrt\-\_\-vec@{invert\-\_\-sqrt\-\_\-vec}}
\index{invert\-\_\-sqrt\-\_\-vec@{invert\-\_\-sqrt\-\_\-vec}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{invert\-\_\-sqrt\-\_\-vec}]{\setlength{\rightskip}{0pt plus 5cm}void invert\-\_\-sqrt\-\_\-vec (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vec}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a4d4d2ef7cdb2556daa3310eab81232ba}


Definition at line 752 of file matrix\-\_\-ops.\-c.



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

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!invert\-\_\-vec@{invert\-\_\-vec}}
\index{invert\-\_\-vec@{invert\-\_\-vec}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{invert\-\_\-vec}]{\setlength{\rightskip}{0pt plus 5cm}void invert\-\_\-vec (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vec}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a3650d654b1eb424f85423ec5e5e98b33}


Definition at line 714 of file matrix\-\_\-ops.\-c.



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

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!max\-\_\-abs@{max\-\_\-abs}}
\index{max\-\_\-abs@{max\-\_\-abs}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{max\-\_\-abs}]{\setlength{\rightskip}{0pt plus 5cm}double max\-\_\-abs (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{double $\ast$}]{vector}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_ad33965f4bcfcdd11a0d547063e2bfb9c}


Definition at line 451 of file matrix\-\_\-ops.\-c.

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!max\-\_\-absf@{max\-\_\-absf}}
\index{max\-\_\-absf@{max\-\_\-absf}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{max\-\_\-absf}]{\setlength{\rightskip}{0pt plus 5cm}double max\-\_\-absf (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vector}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a530f56196f1cdf62c4634b236b2978e9}


Definition at line 693 of file matrix\-\_\-ops.\-c.

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!mult\-\_\-dense\-\_\-mat@{mult\-\_\-dense\-\_\-mat}}
\index{mult\-\_\-dense\-\_\-mat@{mult\-\_\-dense\-\_\-mat}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{mult\-\_\-dense\-\_\-mat}]{\setlength{\rightskip}{0pt plus 5cm}void mult\-\_\-dense\-\_\-mat (
\begin{DoxyParamCaption}
\item[{double $\ast$$\ast$}]{A, }
\item[{float $\ast$$\ast$}]{B, }
\item[{{\bf int}}]{dim1, }
\item[{{\bf int}}]{dim2, }
\item[{{\bf int}}]{dim3, }
\item[{float $\ast$$\ast$$\ast$}]{C\-C}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a64ef0ec28ad6a2ec91ec19ab9ad9788d}


Definition at line 142 of file matrix\-\_\-ops.\-c.



References C, and N\-U\-L\-L.

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!mult\-\_\-dense\-\_\-mat\-\_\-d@{mult\-\_\-dense\-\_\-mat\-\_\-d}}
\index{mult\-\_\-dense\-\_\-mat\-\_\-d@{mult\-\_\-dense\-\_\-mat\-\_\-d}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{mult\-\_\-dense\-\_\-mat\-\_\-d}]{\setlength{\rightskip}{0pt plus 5cm}void mult\-\_\-dense\-\_\-mat\-\_\-d (
\begin{DoxyParamCaption}
\item[{double $\ast$$\ast$}]{A, }
\item[{float $\ast$$\ast$}]{B, }
\item[{{\bf int}}]{dim1, }
\item[{{\bf int}}]{dim2, }
\item[{{\bf int}}]{dim3, }
\item[{double $\ast$$\ast$$\ast$}]{C\-C}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_ac15d6e75dd2b8d5f380b3054f87da6f2}


Definition at line 178 of file matrix\-\_\-ops.\-c.



References C, and N\-U\-L\-L.



Referenced by iterative\-P\-C\-A\-\_\-1\-D().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!mult\-\_\-sparse\-\_\-dense\-\_\-mat\-\_\-transpose@{mult\-\_\-sparse\-\_\-dense\-\_\-mat\-\_\-transpose}}
\index{mult\-\_\-sparse\-\_\-dense\-\_\-mat\-\_\-transpose@{mult\-\_\-sparse\-\_\-dense\-\_\-mat\-\_\-transpose}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{mult\-\_\-sparse\-\_\-dense\-\_\-mat\-\_\-transpose}]{\setlength{\rightskip}{0pt plus 5cm}void mult\-\_\-sparse\-\_\-dense\-\_\-mat\-\_\-transpose (
\begin{DoxyParamCaption}
\item[{{\bf vtx\-\_\-data} $\ast$}]{A, }
\item[{double $\ast$$\ast$}]{B, }
\item[{{\bf int}}]{dim1, }
\item[{{\bf int}}]{dim2, }
\item[{float $\ast$$\ast$$\ast$}]{C\-C}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a4bfd42e08e64f8cff9c58363d20a2939}


Definition at line 214 of file matrix\-\_\-ops.\-c.



References C, vtx\-\_\-data\-::edges, vtx\-\_\-data\-::ewgts, vtx\-\_\-data\-::nedges, and N\-U\-L\-L.



Referenced by iterative\-P\-C\-A\-\_\-1\-D().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!norm@{norm}}
\index{norm@{norm}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{norm}]{\setlength{\rightskip}{0pt plus 5cm}double norm (
\begin{DoxyParamCaption}
\item[{double $\ast$}]{vec, }
\item[{{\bf int}}]{beg, }
\item[{{\bf int}}]{end}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a1dddd4bc26f5f46dae01c4131d42cd59}


Definition at line 310 of file matrix\-\_\-ops.\-c.



References dot.



Referenced by power\-\_\-iteration().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!orthog1@{orthog1}}
\index{orthog1@{orthog1}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{orthog1}]{\setlength{\rightskip}{0pt plus 5cm}void orthog1 (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{double $\ast$}]{vec}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a78d61a820b3022f31e177a153e9296cf}


Definition at line 319 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient(), conjugate\-\_\-gradient\-\_\-f(), init\-\_\-vec\-\_\-orth1(), init\-Layout(), and stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!orthog1f@{orthog1f}}
\index{orthog1f@{orthog1f}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{orthog1f}]{\setlength{\rightskip}{0pt plus 5cm}void orthog1f (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vec}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a15fc6269208120901409b7f33580d4e2}


Definition at line 544 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient\-\_\-mkernel().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!power\-\_\-iteration@{power\-\_\-iteration}}
\index{power\-\_\-iteration@{power\-\_\-iteration}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{power\-\_\-iteration}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} power\-\_\-iteration (
\begin{DoxyParamCaption}
\item[{double $\ast$$\ast$}]{square\-\_\-mat, }
\item[{{\bf int}}]{n, }
\item[{{\bf int}}]{neigs, }
\item[{double $\ast$$\ast$}]{eigs, }
\item[{double $\ast$}]{evals, }
\item[{{\bf int}}]{initialize}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_ab6714af6fbc5b43c2e4aee3e726bd84c}


Definition at line 24 of file matrix\-\_\-ops.\-c.



References alpha, cpvec(), dot, N\-\_\-\-G\-N\-E\-W, norm(), right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-d(), scadd(), and vecscale().



Referenced by iterative\-P\-C\-A\-\_\-1\-D(), and P\-C\-A\-\_\-alloc().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!right\-\_\-mult\-\_\-with\-\_\-vector@{right\-\_\-mult\-\_\-with\-\_\-vector}}
\index{right\-\_\-mult\-\_\-with\-\_\-vector@{right\-\_\-mult\-\_\-with\-\_\-vector}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{right\-\_\-mult\-\_\-with\-\_\-vector}]{\setlength{\rightskip}{0pt plus 5cm}void right\-\_\-mult\-\_\-with\-\_\-vector (
\begin{DoxyParamCaption}
\item[{{\bf vtx\-\_\-data} $\ast$}]{matrix, }
\item[{{\bf int}}]{n, }
\item[{double $\ast$}]{vector, }
\item[{double $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a317401395f168ea8bb35018c71eae6b8}


Definition at line 354 of file matrix\-\_\-ops.\-c.



References vtx\-\_\-data\-::nedges.



Referenced by conjugate\-\_\-gradient().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-d@{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-d}}
\index{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-d@{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-d}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-d}]{\setlength{\rightskip}{0pt plus 5cm}void right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-d (
\begin{DoxyParamCaption}
\item[{double $\ast$$\ast$}]{matrix, }
\item[{{\bf int}}]{dim1, }
\item[{{\bf int}}]{dim2, }
\item[{double $\ast$}]{vector, }
\item[{double $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a49369ab2c60f6ef67e7170ec2b07b50f}


Definition at line 521 of file matrix\-\_\-ops.\-c.



Referenced by power\-\_\-iteration().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-f@{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-f}}
\index{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-f@{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-f}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-f}]{\setlength{\rightskip}{0pt plus 5cm}void right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-f (
\begin{DoxyParamCaption}
\item[{float $\ast$$\ast$}]{matrix, }
\item[{{\bf int}}]{n, }
\item[{double $\ast$}]{vector, }
\item[{double $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a4052618645e2ce09f8ae0fdd9a42f0df}


Definition at line 371 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient\-\_\-f().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-ff@{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-ff}}
\index{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-ff@{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-ff}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-ff}]{\setlength{\rightskip}{0pt plus 5cm}void right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-ff (
\begin{DoxyParamCaption}
\item[{float $\ast$}]{packed\-\_\-matrix, }
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vector, }
\item[{float $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_aa5028e0a367d7d860a81c2da5c226b25}


Definition at line 594 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient\-\_\-mkernel(), and stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-transpose@{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-transpose}}
\index{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-transpose@{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-transpose}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-transpose}]{\setlength{\rightskip}{0pt plus 5cm}void right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-transpose (
\begin{DoxyParamCaption}
\item[{double $\ast$$\ast$}]{matrix, }
\item[{{\bf int}}]{dim1, }
\item[{{\bf int}}]{dim2, }
\item[{double $\ast$}]{vector, }
\item[{double $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a2965014824d89e17ca914f7ddcf7e0b9}


Definition at line 503 of file matrix\-\_\-ops.\-c.

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!scadd@{scadd}}
\index{scadd@{scadd}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{scadd}]{\setlength{\rightskip}{0pt plus 5cm}void scadd (
\begin{DoxyParamCaption}
\item[{double $\ast$}]{vec1, }
\item[{{\bf int}}]{beg, }
\item[{{\bf int}}]{end, }
\item[{double}]{fac, }
\item[{double $\ast$}]{vec2}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_ae90aab6ca72306f2c2566db56febac25}


Definition at line 286 of file matrix\-\_\-ops.\-c.



Referenced by power\-\_\-iteration().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!set\-\_\-vector\-\_\-val@{set\-\_\-vector\-\_\-val}}
\index{set\-\_\-vector\-\_\-val@{set\-\_\-vector\-\_\-val}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{set\-\_\-vector\-\_\-val}]{\setlength{\rightskip}{0pt plus 5cm}void set\-\_\-vector\-\_\-val (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{double}]{val, }
\item[{double $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a92b0f7939a3406e5382781b1c00c6c50}


Definition at line 677 of file matrix\-\_\-ops.\-c.

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!set\-\_\-vector\-\_\-valf@{set\-\_\-vector\-\_\-valf}}
\index{set\-\_\-vector\-\_\-valf@{set\-\_\-vector\-\_\-valf}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{set\-\_\-vector\-\_\-valf}]{\setlength{\rightskip}{0pt plus 5cm}void set\-\_\-vector\-\_\-valf (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float}]{val, }
\item[{float $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a6e791448b8baac10b811e6b609a9f7f8}


Definition at line 685 of file matrix\-\_\-ops.\-c.



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

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!sqrt\-\_\-vec@{sqrt\-\_\-vec}}
\index{sqrt\-\_\-vec@{sqrt\-\_\-vec}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{sqrt\-\_\-vec}]{\setlength{\rightskip}{0pt plus 5cm}void sqrt\-\_\-vec (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vec}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a35f2352aae7ae1637be027c23344fcb3}


Definition at line 725 of file matrix\-\_\-ops.\-c.



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

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!sqrt\-\_\-vecf@{sqrt\-\_\-vecf}}
\index{sqrt\-\_\-vecf@{sqrt\-\_\-vecf}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{sqrt\-\_\-vecf}]{\setlength{\rightskip}{0pt plus 5cm}void sqrt\-\_\-vecf (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{source, }
\item[{float $\ast$}]{target}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a91a6ada6f02ecd4a9faadf6c15f881b4}


Definition at line 737 of file matrix\-\_\-ops.\-c.



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

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!square\-\_\-vec@{square\-\_\-vec}}
\index{square\-\_\-vec@{square\-\_\-vec}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{square\-\_\-vec}]{\setlength{\rightskip}{0pt plus 5cm}void square\-\_\-vec (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vec}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_ace389347d326689dcd8926edf752a2c6}


Definition at line 705 of file matrix\-\_\-ops.\-c.



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

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!vecscale@{vecscale}}
\index{vecscale@{vecscale}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{vecscale}]{\setlength{\rightskip}{0pt plus 5cm}void vecscale (
\begin{DoxyParamCaption}
\item[{double $\ast$}]{vec1, }
\item[{{\bf int}}]{beg, }
\item[{{\bf int}}]{end, }
\item[{double}]{alpha, }
\item[{double $\ast$}]{vec2}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_ada9567e59aacd241481a73aea487d639}


Definition at line 298 of file matrix\-\_\-ops.\-c.



Referenced by power\-\_\-iteration().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!vectors\-\_\-addition@{vectors\-\_\-addition}}
\index{vectors\-\_\-addition@{vectors\-\_\-addition}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{vectors\-\_\-addition}]{\setlength{\rightskip}{0pt plus 5cm}void vectors\-\_\-addition (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{double $\ast$}]{vector1, }
\item[{double $\ast$}]{vector2, }
\item[{double $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_adaf3cc0ac3d99d351e23fc7e59a1681f}


Definition at line 399 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient(), and conjugate\-\_\-gradient\-\_\-f().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!vectors\-\_\-additionf@{vectors\-\_\-additionf}}
\index{vectors\-\_\-additionf@{vectors\-\_\-additionf}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{vectors\-\_\-additionf}]{\setlength{\rightskip}{0pt plus 5cm}void vectors\-\_\-additionf (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vector1, }
\item[{float $\ast$}]{vector2, }
\item[{float $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a5f6f7730e30a5443b1d05045c4d0da3b}


Definition at line 629 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient\-\_\-mkernel(), and stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!vectors\-\_\-inner\-\_\-product@{vectors\-\_\-inner\-\_\-product}}
\index{vectors\-\_\-inner\-\_\-product@{vectors\-\_\-inner\-\_\-product}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{vectors\-\_\-inner\-\_\-product}]{\setlength{\rightskip}{0pt plus 5cm}double vectors\-\_\-inner\-\_\-product (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{double $\ast$}]{vector1, }
\item[{double $\ast$}]{vector2}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_ad40d4c5c1872f03f9d356c0a598ae249}


Definition at line 439 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient(), and conjugate\-\_\-gradient\-\_\-f().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!vectors\-\_\-inner\-\_\-productf@{vectors\-\_\-inner\-\_\-productf}}
\index{vectors\-\_\-inner\-\_\-productf@{vectors\-\_\-inner\-\_\-productf}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{vectors\-\_\-inner\-\_\-productf}]{\setlength{\rightskip}{0pt plus 5cm}double vectors\-\_\-inner\-\_\-productf (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vector1, }
\item[{float $\ast$}]{vector2}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_afff1d611dbfcd4b49c93b0301a0694bb}


Definition at line 665 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient\-\_\-mkernel(), and stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!vectors\-\_\-mult\-\_\-additionf@{vectors\-\_\-mult\-\_\-additionf}}
\index{vectors\-\_\-mult\-\_\-additionf@{vectors\-\_\-mult\-\_\-additionf}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{vectors\-\_\-mult\-\_\-additionf}]{\setlength{\rightskip}{0pt plus 5cm}void vectors\-\_\-mult\-\_\-additionf (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vector1, }
\item[{float}]{alpha, }
\item[{float $\ast$}]{vector2}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_ac607e09c541122101a13a4b3abb1256d}


Definition at line 639 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient\-\_\-mkernel(), and stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!vectors\-\_\-scalar\-\_\-mult@{vectors\-\_\-scalar\-\_\-mult}}
\index{vectors\-\_\-scalar\-\_\-mult@{vectors\-\_\-scalar\-\_\-mult}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{vectors\-\_\-scalar\-\_\-mult}]{\setlength{\rightskip}{0pt plus 5cm}void vectors\-\_\-scalar\-\_\-mult (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{double $\ast$}]{vector, }
\item[{double}]{alpha, }
\item[{double $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_aefa9d2ee06a25de1b00ab671ea6a667c}


Definition at line 422 of file matrix\-\_\-ops.\-c.



References alpha.



Referenced by conjugate\-\_\-gradient(), and conjugate\-\_\-gradient\-\_\-f().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!vectors\-\_\-scalar\-\_\-multf@{vectors\-\_\-scalar\-\_\-multf}}
\index{vectors\-\_\-scalar\-\_\-multf@{vectors\-\_\-scalar\-\_\-multf}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{vectors\-\_\-scalar\-\_\-multf}]{\setlength{\rightskip}{0pt plus 5cm}void vectors\-\_\-scalar\-\_\-multf (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vector, }
\item[{float}]{alpha, }
\item[{float $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a404dfb2cfc9c114c6c6a3d89bec5d756}


Definition at line 648 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient\-\_\-mkernel().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!vectors\-\_\-substractionf@{vectors\-\_\-substractionf}}
\index{vectors\-\_\-substractionf@{vectors\-\_\-substractionf}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{vectors\-\_\-substractionf}]{\setlength{\rightskip}{0pt plus 5cm}void vectors\-\_\-substractionf (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{vector1, }
\item[{float $\ast$}]{vector2, }
\item[{float $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_a175c20f4038b2c40f42e008529531a1e}


Definition at line 619 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient\-\_\-mkernel().

\index{matrix\-\_\-ops.\-c@{matrix\-\_\-ops.\-c}!vectors\-\_\-subtraction@{vectors\-\_\-subtraction}}
\index{vectors\-\_\-subtraction@{vectors\-\_\-subtraction}!matrix_ops.c@{matrix\-\_\-ops.\-c}}
\subsubsection[{vectors\-\_\-subtraction}]{\setlength{\rightskip}{0pt plus 5cm}void vectors\-\_\-subtraction (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{double $\ast$}]{vector1, }
\item[{double $\ast$}]{vector2, }
\item[{double $\ast$}]{result}
\end{DoxyParamCaption}
)}\label{matrix__ops_8c_ad9ccd92bedb62b93793a1b2a59ce8ef0}


Definition at line 388 of file matrix\-\_\-ops.\-c.



Referenced by conjugate\-\_\-gradient(), and conjugate\-\_\-gradient\-\_\-f().

