\section{lib/neatogen/stress.h File Reference}
\label{stress_8h}\index{lib/neatogen/stress.\-h@{lib/neatogen/stress.\-h}}
{\ttfamily \#include \char`\"{}defs.\-h\char`\"{}}\\*
Include dependency graph for stress.\-h\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{stress_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{stress_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf S\-T\-R\-E\-S\-S\-\_\-\-H}
\item 
\#define {\bf tolerance\-\_\-cg}~1e-\/3
\item 
\#define {\bf D\-F\-L\-T\-\_\-\-I\-T\-E\-R\-A\-T\-I\-O\-N\-S}~200
\item 
\#define {\bf D\-F\-L\-T\-\_\-\-T\-O\-L\-E\-R\-A\-N\-C\-E}~1e-\/4
\item 
\#define {\bf num\-\_\-pivots\-\_\-stress}~40
\item 
\#define {\bf num\-\_\-pivots\-\_\-smart\-\_\-ini}~0
\item 
\#define {\bf num\-\_\-pivots\-\_\-no\-\_\-ini}~50
\item 
\#define {\bf neighborhood\-\_\-radius\-\_\-unrestricted}~4
\item 
\#define {\bf neighborhood\-\_\-radius\-\_\-subspace}~0
\item 
\#define {\bf opt\-\_\-smart\-\_\-init}~0x4
\item 
\#define {\bf opt\-\_\-exp\-\_\-flag}~0x3
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf int} {\bf stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel} ({\bf vtx\-\_\-data} $\ast${\bf graph}, {\bf int} n, {\bf int} nedges\-\_\-graph, double $\ast$$\ast$coords, {\bf node\-\_\-t} $\ast$$\ast$nodes, {\bf int} dim, {\bf int} opts, {\bf int} model, {\bf int} maxi)
\item 
float $\ast$ {\bf compute\-\_\-apsp\-\_\-packed} ({\bf vtx\-\_\-data} $\ast${\bf graph}, {\bf int} n)
\item 
float $\ast$ {\bf compute\-\_\-apsp\-\_\-artifical\-\_\-weights\-\_\-packed} ({\bf vtx\-\_\-data} $\ast${\bf graph}, {\bf int} n)
\item 
float $\ast$ {\bf circuit\-Model} ({\bf vtx\-\_\-data} $\ast${\bf graph}, {\bf int} n\-G)
\item 
float $\ast$ {\bf mds\-Model} ({\bf vtx\-\_\-data} $\ast${\bf graph}, {\bf int} n\-G)
\item 
{\bf int} {\bf init\-Layout} ({\bf vtx\-\_\-data} $\ast${\bf graph}, {\bf int} n, {\bf int} dim, double $\ast$$\ast$coords, {\bf node\-\_\-t} $\ast$$\ast$nodes)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{stress.\-h@{stress.\-h}!D\-F\-L\-T\-\_\-\-I\-T\-E\-R\-A\-T\-I\-O\-N\-S@{D\-F\-L\-T\-\_\-\-I\-T\-E\-R\-A\-T\-I\-O\-N\-S}}
\index{D\-F\-L\-T\-\_\-\-I\-T\-E\-R\-A\-T\-I\-O\-N\-S@{D\-F\-L\-T\-\_\-\-I\-T\-E\-R\-A\-T\-I\-O\-N\-S}!stress.h@{stress.\-h}}
\subsubsection[{D\-F\-L\-T\-\_\-\-I\-T\-E\-R\-A\-T\-I\-O\-N\-S}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\-F\-L\-T\-\_\-\-I\-T\-E\-R\-A\-T\-I\-O\-N\-S~200}\label{stress_8h_ad58c7687dad328140e63ba74702310ce}


Definition at line 26 of file stress.\-h.

\index{stress.\-h@{stress.\-h}!D\-F\-L\-T\-\_\-\-T\-O\-L\-E\-R\-A\-N\-C\-E@{D\-F\-L\-T\-\_\-\-T\-O\-L\-E\-R\-A\-N\-C\-E}}
\index{D\-F\-L\-T\-\_\-\-T\-O\-L\-E\-R\-A\-N\-C\-E@{D\-F\-L\-T\-\_\-\-T\-O\-L\-E\-R\-A\-N\-C\-E}!stress.h@{stress.\-h}}
\subsubsection[{D\-F\-L\-T\-\_\-\-T\-O\-L\-E\-R\-A\-N\-C\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\-F\-L\-T\-\_\-\-T\-O\-L\-E\-R\-A\-N\-C\-E~1e-\/4}\label{stress_8h_ae3493df42efab9fdf005a65bc2bb3f40}


Definition at line 28 of file stress.\-h.



Referenced by scan\-\_\-graph\-\_\-mode().

\index{stress.\-h@{stress.\-h}!neighborhood\-\_\-radius\-\_\-subspace@{neighborhood\-\_\-radius\-\_\-subspace}}
\index{neighborhood\-\_\-radius\-\_\-subspace@{neighborhood\-\_\-radius\-\_\-subspace}!stress.h@{stress.\-h}}
\subsubsection[{neighborhood\-\_\-radius\-\_\-subspace}]{\setlength{\rightskip}{0pt plus 5cm}\#define neighborhood\-\_\-radius\-\_\-subspace~0}\label{stress_8h_a04d398451fa9edf4f47182909af2ebfd}


Definition at line 41 of file stress.\-h.



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

\index{stress.\-h@{stress.\-h}!neighborhood\-\_\-radius\-\_\-unrestricted@{neighborhood\-\_\-radius\-\_\-unrestricted}}
\index{neighborhood\-\_\-radius\-\_\-unrestricted@{neighborhood\-\_\-radius\-\_\-unrestricted}!stress.h@{stress.\-h}}
\subsubsection[{neighborhood\-\_\-radius\-\_\-unrestricted}]{\setlength{\rightskip}{0pt plus 5cm}\#define neighborhood\-\_\-radius\-\_\-unrestricted~4}\label{stress_8h_a5cd11dd4fc6752c1aa0015285c094e19}


Definition at line 40 of file stress.\-h.

\index{stress.\-h@{stress.\-h}!num\-\_\-pivots\-\_\-no\-\_\-ini@{num\-\_\-pivots\-\_\-no\-\_\-ini}}
\index{num\-\_\-pivots\-\_\-no\-\_\-ini@{num\-\_\-pivots\-\_\-no\-\_\-ini}!stress.h@{stress.\-h}}
\subsubsection[{num\-\_\-pivots\-\_\-no\-\_\-ini}]{\setlength{\rightskip}{0pt plus 5cm}\#define num\-\_\-pivots\-\_\-no\-\_\-ini~50}\label{stress_8h_ac976b1ed8f0e2352a60351cc6e072e3d}


Definition at line 33 of file stress.\-h.

\index{stress.\-h@{stress.\-h}!num\-\_\-pivots\-\_\-smart\-\_\-ini@{num\-\_\-pivots\-\_\-smart\-\_\-ini}}
\index{num\-\_\-pivots\-\_\-smart\-\_\-ini@{num\-\_\-pivots\-\_\-smart\-\_\-ini}!stress.h@{stress.\-h}}
\subsubsection[{num\-\_\-pivots\-\_\-smart\-\_\-ini}]{\setlength{\rightskip}{0pt plus 5cm}\#define num\-\_\-pivots\-\_\-smart\-\_\-ini~0}\label{stress_8h_ad1b695c4907691274f302a9704e97840}


Definition at line 32 of file stress.\-h.

\index{stress.\-h@{stress.\-h}!num\-\_\-pivots\-\_\-stress@{num\-\_\-pivots\-\_\-stress}}
\index{num\-\_\-pivots\-\_\-stress@{num\-\_\-pivots\-\_\-stress}!stress.h@{stress.\-h}}
\subsubsection[{num\-\_\-pivots\-\_\-stress}]{\setlength{\rightskip}{0pt plus 5cm}\#define num\-\_\-pivots\-\_\-stress~40}\label{stress_8h_acf166d4942cf3888b5a99884604c853a}


Definition at line 31 of file stress.\-h.



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

\index{stress.\-h@{stress.\-h}!opt\-\_\-exp\-\_\-flag@{opt\-\_\-exp\-\_\-flag}}
\index{opt\-\_\-exp\-\_\-flag@{opt\-\_\-exp\-\_\-flag}!stress.h@{stress.\-h}}
\subsubsection[{opt\-\_\-exp\-\_\-flag}]{\setlength{\rightskip}{0pt plus 5cm}\#define opt\-\_\-exp\-\_\-flag~0x3}\label{stress_8h_a8f8cf6795bd128dc204eb92e2cb5d60d}


Definition at line 44 of file stress.\-h.



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

\index{stress.\-h@{stress.\-h}!opt\-\_\-smart\-\_\-init@{opt\-\_\-smart\-\_\-init}}
\index{opt\-\_\-smart\-\_\-init@{opt\-\_\-smart\-\_\-init}!stress.h@{stress.\-h}}
\subsubsection[{opt\-\_\-smart\-\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}\#define opt\-\_\-smart\-\_\-init~0x4}\label{stress_8h_a348cf27688e5654aa182356bbfe77c2f}


Definition at line 43 of file stress.\-h.



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

\index{stress.\-h@{stress.\-h}!S\-T\-R\-E\-S\-S\-\_\-\-H@{S\-T\-R\-E\-S\-S\-\_\-\-H}}
\index{S\-T\-R\-E\-S\-S\-\_\-\-H@{S\-T\-R\-E\-S\-S\-\_\-\-H}!stress.h@{stress.\-h}}
\subsubsection[{S\-T\-R\-E\-S\-S\-\_\-\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-T\-R\-E\-S\-S\-\_\-\-H}\label{stress_8h_a4df5c54fb2132cbeb51a472b0e2ac8c0}


Definition at line 20 of file stress.\-h.

\index{stress.\-h@{stress.\-h}!tolerance\-\_\-cg@{tolerance\-\_\-cg}}
\index{tolerance\-\_\-cg@{tolerance\-\_\-cg}!stress.h@{stress.\-h}}
\subsubsection[{tolerance\-\_\-cg}]{\setlength{\rightskip}{0pt plus 5cm}\#define tolerance\-\_\-cg~1e-\/3}\label{stress_8h_aca954ce7e7f267c1272cd6dfd0fa6031}


Definition at line 24 of file stress.\-h.



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



\subsection{Function Documentation}
\index{stress.\-h@{stress.\-h}!circuit\-Model@{circuit\-Model}}
\index{circuit\-Model@{circuit\-Model}!stress.h@{stress.\-h}}
\subsubsection[{circuit\-Model}]{\setlength{\rightskip}{0pt plus 5cm}float$\ast$ circuit\-Model (
\begin{DoxyParamCaption}
\item[{{\bf vtx\-\_\-data} $\ast$}]{graph, }
\item[{{\bf int}}]{n\-G}
\end{DoxyParamCaption}
)}\label{stress_8h_abb86a31f016d74557f2565a96bd1b523}


Definition at line 199 of file stress.\-c.



References vtx\-\_\-data\-::edges, vtx\-\_\-data\-::ewgts, free\-\_\-array(), N\-\_\-\-N\-E\-W, vtx\-\_\-data\-::nedges, new\-\_\-array(), N\-U\-L\-L, and solve\-Circuit().



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

\index{stress.\-h@{stress.\-h}!compute\-\_\-apsp\-\_\-artifical\-\_\-weights\-\_\-packed@{compute\-\_\-apsp\-\_\-artifical\-\_\-weights\-\_\-packed}}
\index{compute\-\_\-apsp\-\_\-artifical\-\_\-weights\-\_\-packed@{compute\-\_\-apsp\-\_\-artifical\-\_\-weights\-\_\-packed}!stress.h@{stress.\-h}}
\subsubsection[{compute\-\_\-apsp\-\_\-artifical\-\_\-weights\-\_\-packed}]{\setlength{\rightskip}{0pt plus 5cm}float$\ast$ compute\-\_\-apsp\-\_\-artifical\-\_\-weights\-\_\-packed (
\begin{DoxyParamCaption}
\item[{{\bf vtx\-\_\-data} $\ast$}]{graph, }
\item[{{\bf int}}]{n}
\end{DoxyParamCaption}
)}\label{stress_8h_a38dd145ef64ea5f6a55de84d2c6aafab}


Definition at line 796 of file stress.\-c.



References common\-\_\-neighbors(), compute\-\_\-apsp\-\_\-packed(), vtx\-\_\-data\-::edges, empty\-\_\-neighbors\-\_\-vec(), vtx\-\_\-data\-::ewgts, fill\-\_\-neighbors\-\_\-vec\-\_\-unweighted(), max, N\-\_\-\-N\-E\-W, vtx\-\_\-data\-::nedges, and N\-U\-L\-L.



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

\index{stress.\-h@{stress.\-h}!compute\-\_\-apsp\-\_\-packed@{compute\-\_\-apsp\-\_\-packed}}
\index{compute\-\_\-apsp\-\_\-packed@{compute\-\_\-apsp\-\_\-packed}!stress.h@{stress.\-h}}
\subsubsection[{compute\-\_\-apsp\-\_\-packed}]{\setlength{\rightskip}{0pt plus 5cm}float$\ast$ compute\-\_\-apsp\-\_\-packed (
\begin{DoxyParamCaption}
\item[{{\bf vtx\-\_\-data} $\ast$}]{graph, }
\item[{{\bf int}}]{n}
\end{DoxyParamCaption}
)}\label{stress_8h_a3ba1beee8d14c113fd971d1e0babcc44}


Definition at line 772 of file stress.\-c.



References bfs(), free\-Queue(), mk\-Queue(), and N\-\_\-\-N\-E\-W.



Referenced by compute\-\_\-apsp\-\_\-artifical\-\_\-weights\-\_\-packed(), and stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel().

\index{stress.\-h@{stress.\-h}!init\-Layout@{init\-Layout}}
\index{init\-Layout@{init\-Layout}!stress.h@{stress.\-h}}
\subsubsection[{init\-Layout}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} init\-Layout (
\begin{DoxyParamCaption}
\item[{{\bf vtx\-\_\-data} $\ast$}]{graph, }
\item[{{\bf int}}]{n, }
\item[{{\bf int}}]{dim, }
\item[{double $\ast$$\ast$}]{coords, }
\item[{{\bf node\-\_\-t} $\ast$$\ast$}]{nodes}
\end{DoxyParamCaption}
)}\label{stress_8h_acf99bfcd1afddf89d3ec77ca282ff41f}


Definition at line 159 of file stress.\-c.



References drand48(), has\-Pos, is\-Fixed, N\-D\-\_\-pos, and orthog1().



Referenced by circle\-Layout(), and stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel().

\index{stress.\-h@{stress.\-h}!mds\-Model@{mds\-Model}}
\index{mds\-Model@{mds\-Model}!stress.h@{stress.\-h}}
\subsubsection[{mds\-Model}]{\setlength{\rightskip}{0pt plus 5cm}float$\ast$ mds\-Model (
\begin{DoxyParamCaption}
\item[{{\bf vtx\-\_\-data} $\ast$}]{graph, }
\item[{{\bf int}}]{n\-G}
\end{DoxyParamCaption}
)}\label{stress_8h_a80253b774992589c41c6e3f97ab162bd}


Definition at line 739 of file stress.\-c.



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



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

\index{stress.\-h@{stress.\-h}!stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel@{stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel}}
\index{stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel@{stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel}!stress.h@{stress.\-h}}
\subsubsection[{stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} stress\-\_\-majorization\-\_\-k\-D\-\_\-mkernel (
\begin{DoxyParamCaption}
\item[{{\bf vtx\-\_\-data} $\ast$}]{graph, }
\item[{{\bf int}}]{n, }
\item[{{\bf int}}]{nedges\-\_\-graph, }
\item[{double $\ast$$\ast$}]{coords, }
\item[{{\bf node\-\_\-t} $\ast$$\ast$}]{nodes, }
\item[{{\bf int}}]{dim, }
\item[{{\bf int}}]{opts, }
\item[{{\bf int}}]{model, }
\item[{{\bf int}}]{maxi}
\end{DoxyParamCaption}
)}\label{stress_8h_ab7d8f64fe497a9f22701fd94dc34acb1}


Definition at line 889 of file stress.\-c.



References A\-B\-S, agerr(), A\-G\-P\-R\-E\-V, A\-G\-W\-A\-R\-N, circuit\-Model(), compute\-\_\-apsp\-\_\-artifical\-\_\-weights\-\_\-packed(), compute\-\_\-apsp\-\_\-packed(), conjugate\-\_\-gradient\-\_\-mkernel(), copy\-\_\-vectorf(), Deg\-Type, drand48(), elapsed\-\_\-sec(), Epsilon, vtx\-\_\-data\-::ewgts, F\-A\-L\-S\-E, init\-Layout(), invert\-\_\-sqrt\-\_\-vec(), invert\-\_\-vec(), is\-Fixed, max, M\-A\-X\-D\-O\-U\-B\-L\-E, M\-A\-X\-F\-L\-O\-A\-T, mds\-Model(), M\-O\-D\-E\-L\-\_\-\-C\-I\-R\-C\-U\-I\-T, M\-O\-D\-E\-L\-\_\-\-M\-D\-S, M\-O\-D\-E\-L\-\_\-\-S\-U\-B\-S\-E\-T, N\-\_\-\-N\-E\-W, neighborhood\-\_\-radius\-\_\-subspace, N\-U\-L\-L, num\-\_\-pivots\-\_\-stress, opt\-\_\-exp\-\_\-flag, opt\-\_\-smart\-\_\-init, orthog1(), right\-\_\-mult\-\_\-with\-\_\-vector\-\_\-ff(), set\-\_\-vector\-\_\-valf(), sqrt\-\_\-vec(), sqrt\-\_\-vecf(), square\-\_\-vec(), start\-\_\-timer(), tolerance\-\_\-cg, vectors\-\_\-additionf(), vectors\-\_\-inner\-\_\-productf(), vectors\-\_\-mult\-\_\-additionf(), and Verbose.

