\section{lib/sfdpgen/spring\-\_\-electrical.c File Reference}
\label{spring__electrical_8c}\index{lib/sfdpgen/spring\-\_\-electrical.\-c@{lib/sfdpgen/spring\-\_\-electrical.\-c}}
{\ttfamily \#include \char`\"{}config.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Sparse\-Matrix.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}spring\-\_\-electrical.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Quad\-Tree.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Multilevel.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}post\-\_\-process.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}overlap.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}types.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}memory.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}arith.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}logic.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}math.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}globals.\-h\char`\"{}}\\*
{\ttfamily \#include $<$string.\-h$>$}\\*
{\ttfamily \#include $<$time.\-h$>$}\\*
Include dependency graph for spring\-\_\-electrical.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{spring__electrical_8c__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf P\-I}~{\bf M\-\_\-\-P\-I}
\item 
\#define {\bf node\-\_\-degree}(i)~(ia[(i)+1] -\/ ia[(i)])
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf spring\-\_\-electrical\-\_\-control} {\bf spring\-\_\-electrical\-\_\-control\-\_\-new} ()
\item 
void {\bf spring\-\_\-electrical\-\_\-control\-\_\-delete} ({\bf spring\-\_\-electrical\-\_\-control} ctrl)
\item 
void {\bf spring\-\_\-electrical\-\_\-control\-\_\-print} ({\bf spring\-\_\-electrical\-\_\-control} ctrl)
\item 
void {\bf oned\-\_\-optimizer\-\_\-delete} ({\bf oned\-\_\-optimizer} opt)
\item 
{\bf oned\-\_\-optimizer} {\bf oned\-\_\-optimizer\-\_\-new} ({\bf int} i)
\item 
void {\bf oned\-\_\-optimizer\-\_\-train} ({\bf oned\-\_\-optimizer} opt, {\bf real} work)
\item 
{\bf int} {\bf oned\-\_\-optimizer\-\_\-get} ({\bf oned\-\_\-optimizer} opt)
\item 
{\bf real} {\bf average\-\_\-edge\-\_\-length} ({\bf Sparse\-Matrix} A, {\bf int} dim, {\bf real} $\ast${\bf coord})
\item 
void {\bf export\-\_\-embedding} (F\-I\-L\-E $\ast$fp, {\bf int} dim, {\bf Sparse\-Matrix} A, {\bf real} $\ast$x, {\bf real} $\ast$width)
\item 
void {\bf check\-\_\-real\-\_\-array\-\_\-size} ({\bf real} $\ast$$\ast$a, {\bf int} len, {\bf int} $\ast$lenmax)
\item 
void {\bf check\-\_\-int\-\_\-array\-\_\-size} ({\bf int} $\ast$$\ast$a, {\bf int} len, {\bf int} $\ast$lenmax)
\item 
{\bf real} {\bf get\-\_\-angle} ({\bf real} $\ast$x, {\bf int} dim, {\bf int} i, {\bf int} j)
\item 
{\bf int} {\bf comp\-\_\-real} (const void $\ast$x, const void $\ast$y)
\item 
void {\bf force\-\_\-print} (F\-I\-L\-E $\ast$fp, {\bf int} n, {\bf int} dim, {\bf real} $\ast$x, {\bf real} $\ast$force)
\item 
void {\bf spring\-\_\-electrical\-\_\-embedding\-\_\-fast} ({\bf int} dim, {\bf Sparse\-Matrix} A0, {\bf spring\-\_\-electrical\-\_\-control} ctrl, {\bf real} $\ast$node\-\_\-weights, {\bf real} $\ast$x, {\bf int} $\ast$flag)
\item 
void {\bf spring\-\_\-electrical\-\_\-embedding\-\_\-slow} ({\bf int} dim, {\bf Sparse\-Matrix} A0, {\bf spring\-\_\-electrical\-\_\-control} ctrl, {\bf real} $\ast$node\-\_\-weights, {\bf real} $\ast$x, {\bf int} $\ast$flag)
\item 
void {\bf spring\-\_\-electrical\-\_\-embedding} ({\bf int} dim, {\bf Sparse\-Matrix} A0, {\bf spring\-\_\-electrical\-\_\-control} ctrl, {\bf real} $\ast$node\-\_\-weights, {\bf real} $\ast$x, {\bf int} $\ast$flag)
\item 
void {\bf spring\-\_\-maxent\-\_\-embedding} ({\bf int} dim, {\bf Sparse\-Matrix} A0, {\bf Sparse\-Matrix} D, {\bf spring\-\_\-electrical\-\_\-control} ctrl, {\bf real} $\ast$node\-\_\-weights, {\bf real} $\ast$x, {\bf real} rho, {\bf int} $\ast$flag)
\item 
void {\bf spring\-\_\-electrical\-\_\-spring\-\_\-embedding} ({\bf int} dim, {\bf Sparse\-Matrix} A0, {\bf Sparse\-Matrix} D, {\bf spring\-\_\-electrical\-\_\-control} ctrl, {\bf real} $\ast$node\-\_\-weights, {\bf real} $\ast$x, {\bf int} $\ast$flag)
\item 
void {\bf print\-\_\-matrix} ({\bf real} $\ast$x, {\bf int} n, {\bf int} dim)
\item 
void {\bf interpolate\-\_\-coord} ({\bf int} dim, {\bf Sparse\-Matrix} A, {\bf real} $\ast$x)
\item 
{\bf int} {\bf power\-\_\-law\-\_\-graph} ({\bf Sparse\-Matrix} A)
\item 
void {\bf pcp\-\_\-rotate} ({\bf int} n, {\bf int} dim, {\bf real} $\ast$x)
\item 
void {\bf multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding} ({\bf int} dim, {\bf Sparse\-Matrix} A, {\bf Sparse\-Matrix} D, {\bf spring\-\_\-electrical\-\_\-control} ctrl, {\bf real} $\ast$node\-\_\-weights, {\bf real} $\ast$label\-\_\-sizes, {\bf real} $\ast$x, {\bf int} n\-\_\-edge\-\_\-label\-\_\-nodes, {\bf int} $\ast$edge\-\_\-label\-\_\-nodes, {\bf int} $\ast$flag)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!node\-\_\-degree@{node\-\_\-degree}}
\index{node\-\_\-degree@{node\-\_\-degree}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{node\-\_\-degree}]{\setlength{\rightskip}{0pt plus 5cm}\#define node\-\_\-degree(
\begin{DoxyParamCaption}
\item[{}]{i}
\end{DoxyParamCaption}
)~(ia[(i)+1] -\/ ia[(i)])}\label{spring__electrical_8c_af6b7916ade63c266e8833e47f87920f7}


Definition at line 317 of file spring\-\_\-electrical.\-c.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!P\-I@{P\-I}}
\index{P\-I@{P\-I}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{P\-I}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\-I~{\bf M\-\_\-\-P\-I}}\label{spring__electrical_8c_a598a3330b3c21701223ee0ca14316eca}


Definition at line 31 of file spring\-\_\-electrical.\-c.



Referenced by get\-\_\-angle().



\subsection{Function Documentation}
\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!average\-\_\-edge\-\_\-length@{average\-\_\-edge\-\_\-length}}
\index{average\-\_\-edge\-\_\-length@{average\-\_\-edge\-\_\-length}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{average\-\_\-edge\-\_\-length}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real} average\-\_\-edge\-\_\-length (
\begin{DoxyParamCaption}
\item[{{\bf Sparse\-Matrix}}]{A, }
\item[{{\bf int}}]{dim, }
\item[{{\bf real} $\ast$}]{coord}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a812e6bf97c465dd9d86b7bd0537cb2f7}


Definition at line 162 of file spring\-\_\-electrical.\-c.



References assert, dist(), Sparse\-Matrix\-\_\-struct\-::ia, Sparse\-Matrix\-\_\-struct\-::ja, Sparse\-Matrix\-\_\-struct\-::m, real, Sparse\-Matrix\-\_\-is\-\_\-symmetric(), and T\-R\-U\-E.



Referenced by spring\-\_\-electrical\-\_\-embedding(), spring\-\_\-electrical\-\_\-embedding\-\_\-fast(), spring\-\_\-electrical\-\_\-embedding\-\_\-slow(), and spring\-\_\-electrical\-\_\-spring\-\_\-embedding().

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!check\-\_\-int\-\_\-array\-\_\-size@{check\-\_\-int\-\_\-array\-\_\-size}}
\index{check\-\_\-int\-\_\-array\-\_\-size@{check\-\_\-int\-\_\-array\-\_\-size}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{check\-\_\-int\-\_\-array\-\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}void check\-\_\-int\-\_\-array\-\_\-size (
\begin{DoxyParamCaption}
\item[{{\bf int} $\ast$$\ast$}]{a, }
\item[{{\bf int}}]{len, }
\item[{{\bf int} $\ast$}]{lenmax}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_afc94a8fa44763a2b1014cf6dc5d41a34}


Definition at line 326 of file spring\-\_\-electrical.\-c.



References M\-A\-X, and R\-E\-A\-L\-L\-O\-C.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!check\-\_\-real\-\_\-array\-\_\-size@{check\-\_\-real\-\_\-array\-\_\-size}}
\index{check\-\_\-real\-\_\-array\-\_\-size@{check\-\_\-real\-\_\-array\-\_\-size}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{check\-\_\-real\-\_\-array\-\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}void check\-\_\-real\-\_\-array\-\_\-size (
\begin{DoxyParamCaption}
\item[{{\bf real} $\ast$$\ast$}]{a, }
\item[{{\bf int}}]{len, }
\item[{{\bf int} $\ast$}]{lenmax}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a0e5c16df35a156d9226f3a8bc08ca1b7}


Definition at line 319 of file spring\-\_\-electrical.\-c.



References M\-A\-X, real, and R\-E\-A\-L\-L\-O\-C.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!comp\-\_\-real@{comp\-\_\-real}}
\index{comp\-\_\-real@{comp\-\_\-real}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{comp\-\_\-real}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} comp\-\_\-real (
\begin{DoxyParamCaption}
\item[{const void $\ast$}]{x, }
\item[{const void $\ast$}]{y}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_ab29c613ca5b94a8cdecec912f083e7e9}


Definition at line 355 of file spring\-\_\-electrical.\-c.



References real.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!export\-\_\-embedding@{export\-\_\-embedding}}
\index{export\-\_\-embedding@{export\-\_\-embedding}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{export\-\_\-embedding}]{\setlength{\rightskip}{0pt plus 5cm}void export\-\_\-embedding (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{fp, }
\item[{{\bf int}}]{dim, }
\item[{{\bf Sparse\-Matrix}}]{A, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf real} $\ast$}]{width}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a29b7fad40d75583a770f3b9f80dc0e59}


Definition at line 218 of file spring\-\_\-electrical.\-c.



References Sparse\-Matrix\-\_\-struct\-::ia, Sparse\-Matrix\-\_\-struct\-::ja, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-X, M\-I\-N, real, xmax, xmin, ymax, and ymin.



Referenced by spring\-\_\-electrical\-\_\-embedding(), spring\-\_\-electrical\-\_\-embedding\-\_\-slow(), spring\-\_\-electrical\-\_\-spring\-\_\-embedding(), and spring\-\_\-maxent\-\_\-embedding().

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!force\-\_\-print@{force\-\_\-print}}
\index{force\-\_\-print@{force\-\_\-print}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{force\-\_\-print}]{\setlength{\rightskip}{0pt plus 5cm}void force\-\_\-print (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{fp, }
\item[{{\bf int}}]{n, }
\item[{{\bf int}}]{dim, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf real} $\ast$}]{force}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a33febe47933ec798066ee2b269aa1404}


Definition at line 451 of file spring\-\_\-electrical.\-c.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!get\-\_\-angle@{get\-\_\-angle}}
\index{get\-\_\-angle@{get\-\_\-angle}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{get\-\_\-angle}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real} get\-\_\-angle (
\begin{DoxyParamCaption}
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf int}}]{dim, }
\item[{{\bf int}}]{i, }
\item[{{\bf int}}]{j}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a9b12bf40f13de752b33e9013353d48a1}


Definition at line 334 of file spring\-\_\-electrical.\-c.



References A\-B\-S, P\-I, and real.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!interpolate\-\_\-coord@{interpolate\-\_\-coord}}
\index{interpolate\-\_\-coord@{interpolate\-\_\-coord}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{interpolate\-\_\-coord}]{\setlength{\rightskip}{0pt plus 5cm}void interpolate\-\_\-coord (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{dim, }
\item[{{\bf Sparse\-Matrix}}]{A, }
\item[{{\bf real} $\ast$}]{x}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a320af40a3d8be98e1b83221a65bc74e7}


Definition at line 1789 of file spring\-\_\-electrical.\-c.



References alpha, F\-R\-E\-E, Sparse\-Matrix\-\_\-struct\-::ia, Sparse\-Matrix\-\_\-struct\-::ja, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-L\-L\-O\-C, and real.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding@{multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding}}
\index{multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding@{multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding}]{\setlength{\rightskip}{0pt plus 5cm}void multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{dim, }
\item[{{\bf Sparse\-Matrix}}]{A, }
\item[{{\bf Sparse\-Matrix}}]{D, }
\item[{{\bf spring\-\_\-electrical\-\_\-control}}]{ctrl, }
\item[{{\bf real} $\ast$}]{node\-\_\-weights, }
\item[{{\bf real} $\ast$}]{label\-\_\-sizes, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf int}}]{n\-\_\-edge\-\_\-label\-\_\-nodes, }
\item[{{\bf int} $\ast$}]{edge\-\_\-label\-\_\-nodes, }
\item[{{\bf int} $\ast$}]{flag}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_ac1dac9baccaf26e965352b1c169effce}


Definition at line 2283 of file spring\-\_\-electrical.\-c.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!oned\-\_\-optimizer\-\_\-delete@{oned\-\_\-optimizer\-\_\-delete}}
\index{oned\-\_\-optimizer\-\_\-delete@{oned\-\_\-optimizer\-\_\-delete}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{oned\-\_\-optimizer\-\_\-delete}]{\setlength{\rightskip}{0pt plus 5cm}void oned\-\_\-optimizer\-\_\-delete (
\begin{DoxyParamCaption}
\item[{{\bf oned\-\_\-optimizer}}]{opt}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a02877c0e40df07a2ec1d521afdfc5ca0}


Definition at line 107 of file spring\-\_\-electrical.\-c.



References F\-R\-E\-E.



Referenced by spring\-\_\-electrical\-\_\-embedding(), spring\-\_\-electrical\-\_\-embedding\-\_\-fast(), and spring\-\_\-electrical\-\_\-embedding\-\_\-slow().

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!oned\-\_\-optimizer\-\_\-get@{oned\-\_\-optimizer\-\_\-get}}
\index{oned\-\_\-optimizer\-\_\-get@{oned\-\_\-optimizer\-\_\-get}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{oned\-\_\-optimizer\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} oned\-\_\-optimizer\-\_\-get (
\begin{DoxyParamCaption}
\item[{{\bf oned\-\_\-optimizer}}]{opt}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a36f0114f9fb61e4180a90bc459c33e0e}


Definition at line 157 of file spring\-\_\-electrical.\-c.



References oned\-\_\-optimizer\-\_\-struct\-::i.



Referenced by spring\-\_\-electrical\-\_\-embedding(), spring\-\_\-electrical\-\_\-embedding\-\_\-fast(), and spring\-\_\-electrical\-\_\-embedding\-\_\-slow().

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!oned\-\_\-optimizer\-\_\-new@{oned\-\_\-optimizer\-\_\-new}}
\index{oned\-\_\-optimizer\-\_\-new@{oned\-\_\-optimizer\-\_\-new}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{oned\-\_\-optimizer\-\_\-new}]{\setlength{\rightskip}{0pt plus 5cm}{\bf oned\-\_\-optimizer} oned\-\_\-optimizer\-\_\-new (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{i}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_afe4da2a9f21f8eda6c1259f4b21790d7}


Definition at line 111 of file spring\-\_\-electrical.\-c.



References oned\-\_\-optimizer\-\_\-struct\-::direction, oned\-\_\-optimizer\-\_\-struct\-::i, M\-A\-L\-L\-O\-C, and O\-P\-T\-\_\-\-I\-N\-I\-T.



Referenced by spring\-\_\-electrical\-\_\-embedding(), spring\-\_\-electrical\-\_\-embedding\-\_\-fast(), and spring\-\_\-electrical\-\_\-embedding\-\_\-slow().

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!oned\-\_\-optimizer\-\_\-train@{oned\-\_\-optimizer\-\_\-train}}
\index{oned\-\_\-optimizer\-\_\-train@{oned\-\_\-optimizer\-\_\-train}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{oned\-\_\-optimizer\-\_\-train}]{\setlength{\rightskip}{0pt plus 5cm}void oned\-\_\-optimizer\-\_\-train (
\begin{DoxyParamCaption}
\item[{{\bf oned\-\_\-optimizer}}]{opt, }
\item[{{\bf real}}]{work}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_aee7273b31bf106544eafa6bee332c219}


Definition at line 119 of file spring\-\_\-electrical.\-c.



References assert, oned\-\_\-optimizer\-\_\-struct\-::direction, oned\-\_\-optimizer\-\_\-struct\-::i, M\-A\-X, M\-A\-X\-\_\-\-I, M\-I\-N, O\-P\-T\-\_\-\-D\-O\-W\-N, O\-P\-T\-\_\-\-I\-N\-I\-T, O\-P\-T\-\_\-\-U\-P, and oned\-\_\-optimizer\-\_\-struct\-::work.



Referenced by spring\-\_\-electrical\-\_\-embedding(), spring\-\_\-electrical\-\_\-embedding\-\_\-fast(), and spring\-\_\-electrical\-\_\-embedding\-\_\-slow().

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!pcp\-\_\-rotate@{pcp\-\_\-rotate}}
\index{pcp\-\_\-rotate@{pcp\-\_\-rotate}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{pcp\-\_\-rotate}]{\setlength{\rightskip}{0pt plus 5cm}void pcp\-\_\-rotate (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf int}}]{dim, }
\item[{{\bf real} $\ast$}]{x}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_ac09c64028c7d1a0c064b614cbf722b37}


Definition at line 1858 of file spring\-\_\-electrical.\-c.



References assert, dist(), and real.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!power\-\_\-law\-\_\-graph@{power\-\_\-law\-\_\-graph}}
\index{power\-\_\-law\-\_\-graph@{power\-\_\-law\-\_\-graph}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{power\-\_\-law\-\_\-graph}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} power\-\_\-law\-\_\-graph (
\begin{DoxyParamCaption}
\item[{{\bf Sparse\-Matrix}}]{A}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_ab826ba296818f68780571f94ac2b052e}


Definition at line 1834 of file spring\-\_\-electrical.\-c.



References F\-A\-L\-S\-E, F\-R\-E\-E, Sparse\-Matrix\-\_\-struct\-::ia, Sparse\-Matrix\-\_\-struct\-::ja, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-L\-L\-O\-C, M\-A\-X, max, and T\-R\-U\-E.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!print\-\_\-matrix@{print\-\_\-matrix}}
\index{print\-\_\-matrix@{print\-\_\-matrix}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{print\-\_\-matrix}]{\setlength{\rightskip}{0pt plus 5cm}void print\-\_\-matrix (
\begin{DoxyParamCaption}
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf int}}]{n, }
\item[{{\bf int}}]{dim}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_abb0c0e37b1f7e49f19d2cddbc30b598f}


Definition at line 1746 of file spring\-\_\-electrical.\-c.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!spring\-\_\-electrical\-\_\-control\-\_\-delete@{spring\-\_\-electrical\-\_\-control\-\_\-delete}}
\index{spring\-\_\-electrical\-\_\-control\-\_\-delete@{spring\-\_\-electrical\-\_\-control\-\_\-delete}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{spring\-\_\-electrical\-\_\-control\-\_\-delete}]{\setlength{\rightskip}{0pt plus 5cm}void spring\-\_\-electrical\-\_\-control\-\_\-delete (
\begin{DoxyParamCaption}
\item[{{\bf spring\-\_\-electrical\-\_\-control}}]{ctrl}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_ac5a27abf642574a876e60804e73f444e}


Definition at line 73 of file spring\-\_\-electrical.\-c.



References F\-R\-E\-E.



Referenced by sfdp\-\_\-layout(), and Spring\-Smoother\-\_\-delete().

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!spring\-\_\-electrical\-\_\-control\-\_\-new@{spring\-\_\-electrical\-\_\-control\-\_\-new}}
\index{spring\-\_\-electrical\-\_\-control\-\_\-new@{spring\-\_\-electrical\-\_\-control\-\_\-new}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{spring\-\_\-electrical\-\_\-control\-\_\-new}]{\setlength{\rightskip}{0pt plus 5cm}{\bf spring\-\_\-electrical\-\_\-control} spring\-\_\-electrical\-\_\-control\-\_\-new (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a21a4e653f136f655e6f60648a618fb92}


Definition at line 33 of file spring\-\_\-electrical.\-c.



References spring\-\_\-electrical\-\_\-control\-\_\-struct\-::adaptive\-\_\-cooling, A\-U\-T\-O\-P, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::beautify\-\_\-leaves, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::bh, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-C, C\-O\-A\-R\-S\-E\-N\-\_\-\-I\-N\-D\-E\-P\-E\-N\-D\-E\-N\-T\-\_\-\-E\-D\-G\-E\-\_\-\-S\-E\-T\-\_\-\-H\-E\-A\-V\-E\-S\-T\-\_\-\-E\-D\-G\-E\-\_\-\-P\-E\-R\-N\-O\-D\-E\-\_\-\-S\-U\-P\-E\-R\-N\-O\-D\-E\-S\-\_\-\-F\-I\-R\-S\-T, C\-O\-A\-R\-S\-E\-N\-\_\-\-M\-O\-D\-E\-\_\-\-F\-O\-R\-C\-E\-F\-U\-L, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::cool, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::do\-\_\-shrinking, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::edge\-\_\-labeling\-\_\-scheme, F\-A\-L\-S\-E, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::initial\-\_\-scaling, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-K, M\-A\-L\-L\-O\-C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::max\-\_\-qtree\-\_\-level, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::maxiter, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::method, M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-E\-L\-E\-C\-T\-R\-I\-C\-A\-L, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::multilevel\-\_\-coarsen\-\_\-mode, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::multilevel\-\_\-coarsen\-\_\-scheme, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::multilevels, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::overlap, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::p, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::q, Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::quadtree\-\_\-size, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-seed, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-start, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::rotation, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::smoothing, S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-N\-O\-N\-E, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::step, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::tol, T\-R\-U\-E, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::tscheme, and spring\-\_\-electrical\-\_\-control\-\_\-struct\-::use\-\_\-node\-\_\-weights.



Referenced by sfdp\-\_\-layout(), and Spring\-Smoother\-\_\-new().

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!spring\-\_\-electrical\-\_\-control\-\_\-print@{spring\-\_\-electrical\-\_\-control\-\_\-print}}
\index{spring\-\_\-electrical\-\_\-control\-\_\-print@{spring\-\_\-electrical\-\_\-control\-\_\-print}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{spring\-\_\-electrical\-\_\-control\-\_\-print}]{\setlength{\rightskip}{0pt plus 5cm}void spring\-\_\-electrical\-\_\-control\-\_\-print (
\begin{DoxyParamCaption}
\item[{{\bf spring\-\_\-electrical\-\_\-control}}]{ctrl}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a360d66750e4adbc9571254656557ae1b}


Definition at line 89 of file spring\-\_\-electrical.\-c.



References spring\-\_\-electrical\-\_\-control\-\_\-struct\-::adaptive\-\_\-cooling, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::beautify\-\_\-leaves, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::bh, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::cool, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::do\-\_\-shrinking, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::edge\-\_\-labeling\-\_\-scheme, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::initial\-\_\-scaling, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-K, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::max\-\_\-qtree\-\_\-level, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::maxiter, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::method, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::multilevel\-\_\-coarsen\-\_\-mode, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::multilevel\-\_\-coarsen\-\_\-scheme, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::multilevels, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::overlap, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::p, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::q, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::quadtree\-\_\-size, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-seed, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-start, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::rotation, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::smoothing, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::step, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::tol, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::tscheme, and spring\-\_\-electrical\-\_\-control\-\_\-struct\-::use\-\_\-node\-\_\-weights.



Referenced by sfdp\-\_\-layout().

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!spring\-\_\-electrical\-\_\-embedding@{spring\-\_\-electrical\-\_\-embedding}}
\index{spring\-\_\-electrical\-\_\-embedding@{spring\-\_\-electrical\-\_\-embedding}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{spring\-\_\-electrical\-\_\-embedding}]{\setlength{\rightskip}{0pt plus 5cm}void spring\-\_\-electrical\-\_\-embedding (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{dim, }
\item[{{\bf Sparse\-Matrix}}]{A0, }
\item[{{\bf spring\-\_\-electrical\-\_\-control}}]{ctrl, }
\item[{{\bf real} $\ast$}]{node\-\_\-weights, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf int} $\ast$}]{flag}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a71cdc7eabbc9a20aa45e45f15909bd84}


Definition at line 948 of file spring\-\_\-electrical.\-c.



References spring\-\_\-electrical\-\_\-control\-\_\-struct\-::adaptive\-\_\-cooling, assert, average\-\_\-edge\-\_\-length(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::beautify\-\_\-leaves, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::bh, C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::cool, dist(), distance(), distance\-\_\-cropped(), drand(), E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X, export\-\_\-embedding(), F\-A\-L\-S\-E, Sparse\-Matrix\-\_\-struct\-::format, F\-O\-R\-M\-A\-T\-\_\-\-C\-S\-R, F\-R\-E\-E, Sparse\-Matrix\-\_\-struct\-::ia, Sparse\-Matrix\-\_\-struct\-::ja, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-K, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-L\-L\-O\-C, M\-A\-X, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::max\-\_\-qtree\-\_\-level, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::maxiter, M\-E\-M\-C\-P\-Y, M\-I\-N\-D\-I\-S\-T, Sparse\-Matrix\-\_\-struct\-::n, N\-U\-L\-L, Sparse\-Matrix\-\_\-struct\-::nz, oned\-\_\-optimizer\-\_\-delete(), oned\-\_\-optimizer\-\_\-get(), oned\-\_\-optimizer\-\_\-new(), oned\-\_\-optimizer\-\_\-train(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::p, Quad\-Tree\-\_\-delete(), Quad\-Tree\-\_\-get\-\_\-supernodes(), Quad\-Tree\-\_\-new\-\_\-from\-\_\-point\-\_\-list(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::quadtree\-\_\-size, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-seed, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-start, real, Sparse\-Matrix\-\_\-delete(), Sparse\-Matrix\-\_\-symmetrize(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::step, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::tol, T\-R\-U\-E, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::use\-\_\-node\-\_\-weights, and Verbose.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!spring\-\_\-electrical\-\_\-embedding\-\_\-fast@{spring\-\_\-electrical\-\_\-embedding\-\_\-fast}}
\index{spring\-\_\-electrical\-\_\-embedding\-\_\-fast@{spring\-\_\-electrical\-\_\-embedding\-\_\-fast}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{spring\-\_\-electrical\-\_\-embedding\-\_\-fast}]{\setlength{\rightskip}{0pt plus 5cm}void spring\-\_\-electrical\-\_\-embedding\-\_\-fast (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{dim, }
\item[{{\bf Sparse\-Matrix}}]{A0, }
\item[{{\bf spring\-\_\-electrical\-\_\-control}}]{ctrl, }
\item[{{\bf real} $\ast$}]{node\-\_\-weights, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf int} $\ast$}]{flag}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_ab1e1ef777a5652b9018ef71a98f1b576}


Definition at line 488 of file spring\-\_\-electrical.\-c.



References spring\-\_\-electrical\-\_\-control\-\_\-struct\-::adaptive\-\_\-cooling, assert, average\-\_\-edge\-\_\-length(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::beautify\-\_\-leaves, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::bh, C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::cool, dist(), distance(), drand(), E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X, Sparse\-Matrix\-\_\-struct\-::format, F\-O\-R\-M\-A\-T\-\_\-\-C\-S\-R, F\-R\-E\-E, Sparse\-Matrix\-\_\-struct\-::ia, Sparse\-Matrix\-\_\-struct\-::ja, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-K, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-L\-L\-O\-C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::max\-\_\-qtree\-\_\-level, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::maxiter, M\-E\-M\-C\-P\-Y, Sparse\-Matrix\-\_\-struct\-::n, N\-U\-L\-L, Sparse\-Matrix\-\_\-struct\-::nz, oned\-\_\-optimizer\-\_\-delete(), oned\-\_\-optimizer\-\_\-get(), oned\-\_\-optimizer\-\_\-new(), oned\-\_\-optimizer\-\_\-train(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::p, Quad\-Tree\-\_\-delete(), Quad\-Tree\-\_\-get\-\_\-repulsive\-\_\-force(), Quad\-Tree\-\_\-new\-\_\-from\-\_\-point\-\_\-list(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-seed, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-start, real, Sparse\-Matrix\-\_\-delete(), Sparse\-Matrix\-\_\-symmetrize(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::step, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::tol, T\-R\-U\-E, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::use\-\_\-node\-\_\-weights, and Verbose.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!spring\-\_\-electrical\-\_\-embedding\-\_\-slow@{spring\-\_\-electrical\-\_\-embedding\-\_\-slow}}
\index{spring\-\_\-electrical\-\_\-embedding\-\_\-slow@{spring\-\_\-electrical\-\_\-embedding\-\_\-slow}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{spring\-\_\-electrical\-\_\-embedding\-\_\-slow}]{\setlength{\rightskip}{0pt plus 5cm}void spring\-\_\-electrical\-\_\-embedding\-\_\-slow (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{dim, }
\item[{{\bf Sparse\-Matrix}}]{A0, }
\item[{{\bf spring\-\_\-electrical\-\_\-control}}]{ctrl, }
\item[{{\bf real} $\ast$}]{node\-\_\-weights, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf int} $\ast$}]{flag}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_ae7ce1071406ba4a887310f632aaf7209}


Definition at line 686 of file spring\-\_\-electrical.\-c.



References spring\-\_\-electrical\-\_\-control\-\_\-struct\-::adaptive\-\_\-cooling, assert, average\-\_\-edge\-\_\-length(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::beautify\-\_\-leaves, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::bh, C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::cool, dist(), distance(), distance\-\_\-cropped(), drand(), E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X, export\-\_\-embedding(), F\-A\-L\-S\-E, Sparse\-Matrix\-\_\-struct\-::format, F\-O\-R\-M\-A\-T\-\_\-\-C\-S\-R, F\-R\-E\-E, Sparse\-Matrix\-\_\-struct\-::ia, Sparse\-Matrix\-\_\-struct\-::ja, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-K, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-L\-L\-O\-C, M\-A\-X, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::max\-\_\-qtree\-\_\-level, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::maxiter, M\-E\-M\-C\-P\-Y, M\-I\-N\-D\-I\-S\-T, Sparse\-Matrix\-\_\-struct\-::n, N\-U\-L\-L, Sparse\-Matrix\-\_\-struct\-::nz, oned\-\_\-optimizer\-\_\-delete(), oned\-\_\-optimizer\-\_\-get(), oned\-\_\-optimizer\-\_\-new(), oned\-\_\-optimizer\-\_\-train(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::p, Quad\-Tree\-\_\-delete(), Quad\-Tree\-\_\-get\-\_\-supernodes(), Quad\-Tree\-\_\-new\-\_\-from\-\_\-point\-\_\-list(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::quadtree\-\_\-size, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-seed, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-start, real, Sparse\-Matrix\-\_\-delete(), Sparse\-Matrix\-\_\-symmetrize(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::step, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::tol, T\-R\-U\-E, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::use\-\_\-node\-\_\-weights, and Verbose.

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!spring\-\_\-electrical\-\_\-spring\-\_\-embedding@{spring\-\_\-electrical\-\_\-spring\-\_\-embedding}}
\index{spring\-\_\-electrical\-\_\-spring\-\_\-embedding@{spring\-\_\-electrical\-\_\-spring\-\_\-embedding}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{spring\-\_\-electrical\-\_\-spring\-\_\-embedding}]{\setlength{\rightskip}{0pt plus 5cm}void spring\-\_\-electrical\-\_\-spring\-\_\-embedding (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{dim, }
\item[{{\bf Sparse\-Matrix}}]{A0, }
\item[{{\bf Sparse\-Matrix}}]{D, }
\item[{{\bf spring\-\_\-electrical\-\_\-control}}]{ctrl, }
\item[{{\bf real} $\ast$}]{node\-\_\-weights, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf int} $\ast$}]{flag}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_afc91db2c3bb0e871f11b6194f1bd6628}


Definition at line 1535 of file spring\-\_\-electrical.\-c.



References Sparse\-Matrix\-\_\-struct\-::a, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::adaptive\-\_\-cooling, assert, average\-\_\-edge\-\_\-length(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::beautify\-\_\-leaves, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::bh, C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::cool, dist(), distance(), distance\-\_\-cropped(), drand(), E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X, export\-\_\-embedding(), F\-A\-L\-S\-E, Sparse\-Matrix\-\_\-struct\-::format, F\-O\-R\-M\-A\-T\-\_\-\-C\-S\-R, F\-R\-E\-E, Sparse\-Matrix\-\_\-struct\-::ia, if(), Sparse\-Matrix\-\_\-struct\-::ja, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-K, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-L\-L\-O\-C, M\-A\-X, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::maxiter, M\-E\-M\-C\-P\-Y, M\-I\-N\-D\-I\-S\-T, Sparse\-Matrix\-\_\-struct\-::n, N\-U\-L\-L, Sparse\-Matrix\-\_\-struct\-::nz, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::p, Quad\-Tree\-\_\-delete(), Quad\-Tree\-\_\-get\-\_\-supernodes(), Quad\-Tree\-\_\-new\-\_\-from\-\_\-point\-\_\-list(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::quadtree\-\_\-size, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-seed, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-start, real, Sparse\-Matrix\-\_\-delete(), Sparse\-Matrix\-\_\-symmetrize(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::step, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::tol, T\-R\-U\-E, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::use\-\_\-node\-\_\-weights, and Verbose.



Referenced by Spring\-Smoother\-\_\-smooth().

\index{spring\-\_\-electrical.\-c@{spring\-\_\-electrical.\-c}!spring\-\_\-maxent\-\_\-embedding@{spring\-\_\-maxent\-\_\-embedding}}
\index{spring\-\_\-maxent\-\_\-embedding@{spring\-\_\-maxent\-\_\-embedding}!spring_electrical.c@{spring\-\_\-electrical.\-c}}
\subsubsection[{spring\-\_\-maxent\-\_\-embedding}]{\setlength{\rightskip}{0pt plus 5cm}void spring\-\_\-maxent\-\_\-embedding (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{dim, }
\item[{{\bf Sparse\-Matrix}}]{A0, }
\item[{{\bf Sparse\-Matrix}}]{D, }
\item[{{\bf spring\-\_\-electrical\-\_\-control}}]{ctrl, }
\item[{{\bf real} $\ast$}]{node\-\_\-weights, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf real}}]{rho, }
\item[{{\bf int} $\ast$}]{flag}
\end{DoxyParamCaption}
)}\label{spring__electrical_8c_a51fc02c89148b210b9ed9638fba43752}


Definition at line 1258 of file spring\-\_\-electrical.\-c.



References Sparse\-Matrix\-\_\-struct\-::a, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::adaptive\-\_\-cooling, assert, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::beautify\-\_\-leaves, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::bh, C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::\-C, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::cool, dist(), distance\-\_\-cropped(), drand(), E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X, export\-\_\-embedding(), F\-A\-L\-S\-E, Sparse\-Matrix\-\_\-struct\-::format, F\-O\-R\-M\-A\-T\-\_\-\-C\-S\-R, F\-R\-E\-E, Sparse\-Matrix\-\_\-struct\-::ia, if(), Sparse\-Matrix\-\_\-struct\-::ja, Sparse\-Matrix\-\_\-struct\-::m, M\-A\-L\-L\-O\-C, M\-A\-X, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::maxiter, M\-E\-M\-C\-P\-Y, M\-I\-N\-D\-I\-S\-T, Sparse\-Matrix\-\_\-struct\-::n, N\-U\-L\-L, Sparse\-Matrix\-\_\-struct\-::nz, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::p, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::q, Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-N\-E, Quad\-Tree\-\_\-delete(), Quad\-Tree\-\_\-get\-\_\-supernodes(), Quad\-Tree\-\_\-new\-\_\-from\-\_\-point\-\_\-list(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::quadtree\-\_\-size, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-seed, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::random\-\_\-start, real, Sparse\-Matrix\-\_\-delete(), Sparse\-Matrix\-\_\-symmetrize(), spring\-\_\-electrical\-\_\-control\-\_\-struct\-::step, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::tol, T\-R\-U\-E, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::tscheme, spring\-\_\-electrical\-\_\-control\-\_\-struct\-::use\-\_\-node\-\_\-weights, and Verbose.

