\section{lib/sfdpgen/layout\-\_\-similarity.c File Reference}
\label{layout__similarity_8c}\index{lib/sfdpgen/layout\-\_\-similarity.\-c@{lib/sfdpgen/layout\-\_\-similarity.\-c}}
{\ttfamily \#include $<$stdio.\-h$>$}\\*
{\ttfamily \#include $<$stdlib.\-h$>$}\\*
{\ttfamily \#include $<$getopt.\-h$>$}\\*
{\ttfamily \#include \char`\"{}general.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Sparse\-Matrix.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}call\-\_\-tri.\-h\char`\"{}}\\*
Include dependency graph for layout\-\_\-similarity.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{layout__similarity_8c__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf M\-I\-N\-D\-I\-S\-T}~0.\-000000001
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf real} {\bf distance\-\_\-cropped} ({\bf real} $\ast$x, {\bf int} dim, {\bf int} i, {\bf int} j)
\item 
{\bf real} {\bf distance} ({\bf real} $\ast$x, {\bf int} dim, {\bf int} i, {\bf int} j)
\item 
{\bf int} {\bf main} ({\bf int} argc, char $\ast$argv[$\,$])
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{layout\-\_\-similarity.\-c@{layout\-\_\-similarity.\-c}!M\-I\-N\-D\-I\-S\-T@{M\-I\-N\-D\-I\-S\-T}}
\index{M\-I\-N\-D\-I\-S\-T@{M\-I\-N\-D\-I\-S\-T}!layout_similarity.c@{layout\-\_\-similarity.\-c}}
\subsubsection[{M\-I\-N\-D\-I\-S\-T}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-I\-N\-D\-I\-S\-T~0.\-000000001}\label{layout__similarity_8c_abd40c30aeb838e9729fd6ebd4c4787d8}


Definition at line 25 of file layout\-\_\-similarity.\-c.



Referenced by distance\-\_\-cropped().



\subsection{Function Documentation}
\index{layout\-\_\-similarity.\-c@{layout\-\_\-similarity.\-c}!distance@{distance}}
\index{distance@{distance}!layout_similarity.c@{layout\-\_\-similarity.\-c}}
\subsubsection[{distance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real} distance (
\begin{DoxyParamCaption}
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf int}}]{dim, }
\item[{{\bf int}}]{i, }
\item[{{\bf int}}]{j}
\end{DoxyParamCaption}
)}\label{layout__similarity_8c_a199d060ded1644574b6f58daf1877fc6}


Definition at line 35 of file layout\-\_\-similarity.\-c.



Referenced by get\-\_\-stress(), ideal\-\_\-distance\-\_\-matrix(), main(), make\-Dot\-Graph(), Sparse\-Stress\-Majorization\-Smoother\-\_\-new(), spring\-\_\-electrical\-\_\-embedding(), spring\-\_\-electrical\-\_\-embedding\-\_\-fast(), spring\-\_\-electrical\-\_\-embedding\-\_\-slow(), spring\-\_\-electrical\-\_\-spring\-\_\-embedding(), Spring\-Smoother\-\_\-new(), Stress\-Majorization\-Smoother2\-\_\-new(), Stress\-Majorization\-Smoother\-\_\-smooth(), and Triangle\-Smoother\-\_\-new().

\index{layout\-\_\-similarity.\-c@{layout\-\_\-similarity.\-c}!distance\-\_\-cropped@{distance\-\_\-cropped}}
\index{distance\-\_\-cropped@{distance\-\_\-cropped}!layout_similarity.c@{layout\-\_\-similarity.\-c}}
\subsubsection[{distance\-\_\-cropped}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real} distance\-\_\-cropped (
\begin{DoxyParamCaption}
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf int}}]{dim, }
\item[{{\bf int}}]{i, }
\item[{{\bf int}}]{j}
\end{DoxyParamCaption}
)}\label{layout__similarity_8c_a446846633c6e62cb76a2cebba6693876}


Definition at line 27 of file layout\-\_\-similarity.\-c.



Referenced by main(), spring\-\_\-electrical\-\_\-embedding(), spring\-\_\-electrical\-\_\-embedding\-\_\-slow(), spring\-\_\-electrical\-\_\-spring\-\_\-embedding(), spring\-\_\-maxent\-\_\-embedding(), Stress\-Majorization\-Smoother2\-\_\-new(), and Triangle\-Smoother\-\_\-new().

\index{layout\-\_\-similarity.\-c@{layout\-\_\-similarity.\-c}!main@{main}}
\index{main@{main}!layout_similarity.c@{layout\-\_\-similarity.\-c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} main (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{argc, }
\item[{char $\ast$}]{argv[$\,$]}
\end{DoxyParamCaption}
)}\label{layout__similarity_8c_a0ddf1224851353fc92bfbff6f499fa97}


Definition at line 108 of file layout\-\_\-similarity.\-c.



References call\-\_\-tri(), distance(), distance\-\_\-cropped(), F\-R\-E\-E, Sparse\-Matrix\-\_\-struct\-::ia, Sparse\-Matrix\-\_\-struct\-::ja, N\-\_\-\-G\-N\-E\-W, N\-U\-L\-L, Sparse\-Matrix\-\_\-struct\-::nz, real, and Sparse\-Matrix\-\_\-delete().

