\section{lib/sparse/mq.c File Reference}
\label{mq_8c}\index{lib/sparse/mq.\-c@{lib/sparse/mq.\-c}}
{\ttfamily \#include \char`\"{}general.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Sparse\-Matrix.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}mq.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Linked\-List.\-h\char`\"{}}\\*
Include dependency graph for mq.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{mq_8c__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf S\-T\-A\-N\-D\-A\-L\-O\-N\-E}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering} {\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-init} ({\bf Sparse\-Matrix} A, {\bf int} level)
\item 
void {\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-delete} ({\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering} grid)
\item 
{\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering} {\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-establish} ({\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering} grid, {\bf int} maxcluster)
\item 
{\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering} {\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-new} ({\bf Sparse\-Matrix} A0, {\bf int} maxcluster)
\item 
void {\bf mq\-\_\-clustering} ({\bf Sparse\-Matrix} A, {\bf int} inplace, {\bf int} maxcluster, {\bf int} use\-\_\-value, {\bf int} $\ast$nclusters, {\bf int} $\ast$$\ast$assignment, {\bf real} $\ast$mq, {\bf int} $\ast$flag)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{mq.\-c@{mq.\-c}!S\-T\-A\-N\-D\-A\-L\-O\-N\-E@{S\-T\-A\-N\-D\-A\-L\-O\-N\-E}}
\index{S\-T\-A\-N\-D\-A\-L\-O\-N\-E@{S\-T\-A\-N\-D\-A\-L\-O\-N\-E}!mq.c@{mq.\-c}}
\subsubsection[{S\-T\-A\-N\-D\-A\-L\-O\-N\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-T\-A\-N\-D\-A\-L\-O\-N\-E}\label{mq_8c_ab1c59581eafa11e55bf8f6ea8b877dd6}


Definition at line 61 of file mq.\-c.



\subsection{Function Documentation}
\index{mq.\-c@{mq.\-c}!mq\-\_\-clustering@{mq\-\_\-clustering}}
\index{mq\-\_\-clustering@{mq\-\_\-clustering}!mq.c@{mq.\-c}}
\subsubsection[{mq\-\_\-clustering}]{\setlength{\rightskip}{0pt plus 5cm}void mq\-\_\-clustering (
\begin{DoxyParamCaption}
\item[{{\bf Sparse\-Matrix}}]{A, }
\item[{{\bf int}}]{inplace, }
\item[{{\bf int}}]{maxcluster, }
\item[{{\bf int}}]{use\-\_\-value, }
\item[{{\bf int} $\ast$}]{nclusters, }
\item[{{\bf int} $\ast$$\ast$}]{assignment, }
\item[{{\bf real} $\ast$}]{mq, }
\item[{{\bf int} $\ast$}]{flag}
\end{DoxyParamCaption}
)}\label{mq_8c_aaf14507f7d07ad61801dd1c4cac5a7ef}


Definition at line 588 of file mq.\-c.



References assert, F\-A\-L\-S\-E, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-T\-R\-I\-X\-\_\-\-T\-Y\-P\-E\-\_\-\-R\-E\-A\-L, Sparse\-Matrix\-\_\-struct\-::n, Sparse\-Matrix\-\_\-copy(), Sparse\-Matrix\-\_\-delete(), Sparse\-Matrix\-\_\-remove\-\_\-diagonal(), Sparse\-Matrix\-\_\-set\-\_\-entries\-\_\-to\-\_\-real\-\_\-one(), Sparse\-Matrix\-\_\-symmetrize(), and Sparse\-Matrix\-\_\-struct\-::type.



Referenced by attached\-\_\-clustering(), and Import\-\_\-coord\-\_\-clusters\-\_\-from\-\_\-dot().

\index{mq.\-c@{mq.\-c}!Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-delete@{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-delete}}
\index{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-delete@{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-delete}!mq.c@{mq.\-c}}
\subsubsection[{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-delete}]{\setlength{\rightskip}{0pt plus 5cm}void Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-delete (
\begin{DoxyParamCaption}
\item[{{\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering}}]{grid}
\end{DoxyParamCaption}
)}\label{mq_8c_a73366cf813002108354b019d427e6038}


Definition at line 209 of file mq.\-c.



References Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::\-A, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::deg\-\_\-intra, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::delete\-\_\-top\-\_\-level\-\_\-\-A, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::dout, F\-R\-E\-E, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::level, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::matching, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::next, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::\-P, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::\-R, Sparse\-Matrix\-\_\-delete(), and Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::wgt.

\index{mq.\-c@{mq.\-c}!Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-establish@{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-establish}}
\index{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-establish@{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-establish}!mq.c@{mq.\-c}}
\subsubsection[{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-establish}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering} Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-establish (
\begin{DoxyParamCaption}
\item[{{\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering}}]{grid, }
\item[{{\bf int}}]{maxcluster}
\end{DoxyParamCaption}
)}\label{mq_8c_abed5622887be18e44b714a0667826e67}


Definition at line 228 of file mq.\-c.



References Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::\-A, Sparse\-Matrix\-\_\-struct\-::a, assert, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::deg\-\_\-intra, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::dout, for(), F\-O\-R\-M\-A\-T\-\_\-\-C\-O\-O\-R\-D, F\-R\-E\-E, Sparse\-Matrix\-\_\-struct\-::ia, Sparse\-Matrix\-\_\-struct\-::ja, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::level, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-L\-L\-O\-C, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::matching, M\-A\-T\-R\-I\-X\-\_\-\-T\-Y\-P\-E\-\_\-\-R\-E\-A\-L, M\-E\-M\-C\-P\-Y, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::mq, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::mq\-\_\-in, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::mq\-\_\-out, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-init(), Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::n, Sparse\-Matrix\-\_\-struct\-::n, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::next, N\-U\-L\-L, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::\-P, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::prev, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::\-R, real, R\-E\-A\-L\-L\-O\-C, Single\-Linked\-List\-\_\-delete(), Single\-Linked\-List\-\_\-get\-\_\-data(), Single\-Linked\-List\-\_\-get\-\_\-next(), Single\-Linked\-List\-\_\-new\-\_\-int(), Single\-Linked\-List\-\_\-prepend\-\_\-int(), Sparse\-Matrix\-\_\-coordinate\-\_\-form\-\_\-add\-\_\-entries(), Sparse\-Matrix\-\_\-delete(), Sparse\-Matrix\-\_\-from\-\_\-coordinate\-\_\-format(), Sparse\-Matrix\-\_\-multiply(), Sparse\-Matrix\-\_\-new(), Sparse\-Matrix\-\_\-transpose(), U\-N\-M\-A\-T\-C\-H\-E\-D, Verbose, and Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::wgt.



Referenced by Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-new().

\index{mq.\-c@{mq.\-c}!Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-init@{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-init}}
\index{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-init@{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-init}!mq.c@{mq.\-c}}
\subsubsection[{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering} Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-init (
\begin{DoxyParamCaption}
\item[{{\bf Sparse\-Matrix}}]{A, }
\item[{{\bf int}}]{level}
\end{DoxyParamCaption}
)}\label{mq_8c_a6485f38033835078653d6ba1251d6c88}


Definition at line 155 of file mq.\-c.



References Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::\-A, assert, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::deg\-\_\-intra, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::delete\-\_\-top\-\_\-level\-\_\-\-A, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::dout, F\-A\-L\-S\-E, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::level, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-L\-L\-O\-C, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::matching, M\-A\-T\-R\-I\-X\-\_\-\-T\-Y\-P\-E\-\_\-\-R\-E\-A\-L, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::mq, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::mq\-\_\-in, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::mq\-\_\-out, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::n, Sparse\-Matrix\-\_\-struct\-::n, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::ncluster, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::next, N\-U\-L\-L, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::\-P, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::prev, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::\-R, real, Sparse\-Matrix\-\_\-is\-\_\-symmetric(), Sparse\-Matrix\-\_\-struct\-::type, and Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::wgt.



Referenced by Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-establish(), and Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-new().

\index{mq.\-c@{mq.\-c}!Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-new@{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-new}}
\index{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-new@{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-new}!mq.c@{mq.\-c}}
\subsubsection[{Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-new}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering} Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-new (
\begin{DoxyParamCaption}
\item[{{\bf Sparse\-Matrix}}]{A0, }
\item[{{\bf int}}]{maxcluster}
\end{DoxyParamCaption}
)}\label{mq_8c_a1d91258b4d7e1439a8ac2aaf60bc5f2b}


Definition at line 511 of file mq.\-c.



References Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-struct\-::delete\-\_\-top\-\_\-level\-\_\-\-A, F\-A\-L\-S\-E, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-T\-R\-I\-X\-\_\-\-T\-Y\-P\-E\-\_\-\-R\-E\-A\-L, Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-establish(), Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-init(), Sparse\-Matrix\-\_\-get\-\_\-real\-\_\-adjacency\-\_\-matrix\-\_\-symmetrized(), Sparse\-Matrix\-\_\-is\-\_\-symmetric(), T\-R\-U\-E, and Sparse\-Matrix\-\_\-struct\-::type.

