\section{lib/sfdpgen/spring\-\_\-electrical.h File Reference}
\label{spring__electrical_8h}\index{lib/sfdpgen/spring\-\_\-electrical.\-h@{lib/sfdpgen/spring\-\_\-electrical.\-h}}
{\ttfamily \#include $<$Sparse\-Matrix.\-h$>$}\\*
Include dependency graph for spring\-\_\-electrical.\-h\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{spring__electrical_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]{spring__electrical_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf spring\-\_\-electrical\-\_\-control\-\_\-struct}
\item 
struct {\bf oned\-\_\-optimizer\-\_\-struct}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf A\-U\-T\-O\-P}~-\/1.\-0001234
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \\*
{\bf spring\-\_\-electrical\-\_\-control\-\_\-struct} $\ast$ {\bf spring\-\_\-electrical\-\_\-control}
\item 
typedef struct \\*
{\bf oned\-\_\-optimizer\-\_\-struct} $\ast$ {\bf oned\-\_\-optimizer}
\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \{ {\bf E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X} = -\/100
 \}
\item 
enum \{ \\*
{\bf S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-N\-O\-N\-E}, 
{\bf S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-G\-R\-A\-P\-H\-\_\-\-D\-I\-S\-T}, 
{\bf S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-A\-V\-G\-\_\-\-D\-I\-S\-T}, 
{\bf S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-P\-O\-W\-E\-R\-\_\-\-D\-I\-S\-T}, 
\\*
{\bf S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-P\-R\-I\-N\-G}, 
{\bf S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-T\-R\-I\-A\-N\-G\-L\-E}, 
{\bf S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-R\-N\-G}
 \}
\item 
enum \{ {\bf Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D\-\_\-\-S\-I\-Z\-E} = 10000
 \}
\item 
enum \{ {\bf Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-N\-E} = 0, 
{\bf Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-R\-M\-A\-L}, 
{\bf Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-F\-A\-S\-T}, 
{\bf Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D}
 \}
\item 
enum \{ \\*
{\bf M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-A} = -\/1, 
{\bf M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-E\-L\-E\-C\-T\-R\-I\-C\-A\-L}, 
{\bf M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-M\-A\-X\-E\-N\-T}, 
{\bf M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-X\-E\-N\-T}, 
\\*
{\bf M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-A\-P\-P\-R\-O\-X}, 
{\bf M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S}, 
{\bf M\-E\-T\-H\-O\-D\-\_\-\-U\-N\-I\-F\-O\-R\-M\-\_\-\-S\-T\-R\-E\-S\-S}, 
{\bf M\-E\-T\-H\-O\-D\-\_\-\-F\-U\-L\-L\-\_\-\-S\-T\-R\-E\-S\-S}, 
\\*
{\bf M\-E\-T\-H\-O\-D\-\_\-\-N\-O\-N\-E}, 
{\bf M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-O}
 \}
\item 
enum \{ {\bf M\-A\-X\-\_\-\-I} = 20, 
{\bf O\-P\-T\-\_\-\-U\-P} = 1, 
{\bf O\-P\-T\-\_\-\-D\-O\-W\-N} = -\/1, 
{\bf O\-P\-T\-\_\-\-I\-N\-I\-T} = 0
 \}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf spring\-\_\-electrical\-\_\-control} {\bf spring\-\_\-electrical\-\_\-control\-\_\-new} (void)
\item 
void {\bf spring\-\_\-electrical\-\_\-control\-\_\-print} ({\bf spring\-\_\-electrical\-\_\-control} ctrl)
\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\-\_\-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 multilevel\-\_\-spring\-\_\-electrical\-\_\-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$label\-\_\-sizes, {\bf real} $\ast$x, {\bf int} n\-\_\-edge\-\_\-label\-\_\-nodes, {\bf int} $\ast$edge\-\_\-label\-\_\-nodes, {\bf int} $\ast$flag)
\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 spring\-\_\-electrical\-\_\-control\-\_\-delete} ({\bf spring\-\_\-electrical\-\_\-control} ctrl)
\item 
void {\bf print\-\_\-matrix} ({\bf real} $\ast$x, {\bf int} n, {\bf int} dim)
\item 
{\bf real} {\bf average\-\_\-edge\-\_\-length} ({\bf Sparse\-Matrix} A, {\bf int} dim, {\bf real} $\ast${\bf coord})
\item 
void {\bf spring\-\_\-electrical\-\_\-spring\-\_\-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$x, {\bf int} $\ast$flag)
\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 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 
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)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!A\-U\-T\-O\-P@{A\-U\-T\-O\-P}}
\index{A\-U\-T\-O\-P@{A\-U\-T\-O\-P}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\subsubsection[{A\-U\-T\-O\-P}]{\setlength{\rightskip}{0pt plus 5cm}\#define A\-U\-T\-O\-P~-\/1.\-0001234}\label{spring__electrical_8h_a834a9b602e5f7d3ff1c793202ec404c7}


Definition at line 22 of file spring\-\_\-electrical.\-h.



Referenced by spring\-\_\-electrical\-\_\-control\-\_\-new().



\subsection{Typedef Documentation}
\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!oned\-\_\-optimizer@{oned\-\_\-optimizer}}
\index{oned\-\_\-optimizer@{oned\-\_\-optimizer}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\subsubsection[{oned\-\_\-optimizer}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf oned\-\_\-optimizer\-\_\-struct}$\ast$ {\bf oned\-\_\-optimizer}}\label{spring__electrical_8h_ac0612f91d12e6d71e78156f1dc21a919}


Definition at line 94 of file spring\-\_\-electrical.\-h.

\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!spring\-\_\-electrical\-\_\-control@{spring\-\_\-electrical\-\_\-control}}
\index{spring\-\_\-electrical\-\_\-control@{spring\-\_\-electrical\-\_\-control}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\subsubsection[{spring\-\_\-electrical\-\_\-control}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf spring\-\_\-electrical\-\_\-control\-\_\-struct}$\ast$ {\bf spring\-\_\-electrical\-\_\-control}}\label{spring__electrical_8h_ac8d18bc38631a1aa7061206b631f9eb0}


Definition at line 68 of file spring\-\_\-electrical.\-h.



\subsection{Enumeration Type Documentation}
\subsubsection[{anonymous enum}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}\label{spring__electrical_8h_ab48899087cc647f0f791ed0c459adc53}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X@{E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X@{E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X}}\item[{\em 
E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-S\-Q\-U\-A\-R\-E\-\_\-\-M\-A\-T\-R\-I\-X\label{spring__electrical_8h_ab48899087cc647f0f791ed0c459adc53a07e75480403b9c6e8750080552deb375}
}]\end{description}
\end{Desc}


Definition at line 19 of file spring\-\_\-electrical.\-h.

\subsubsection[{anonymous enum}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}\label{spring__electrical_8h_a458e651af6690959efa2afb96be7d609}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-N\-O\-N\-E@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-N\-O\-N\-E}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-N\-O\-N\-E@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-N\-O\-N\-E}}\item[{\em 
S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-N\-O\-N\-E\label{spring__electrical_8h_a458e651af6690959efa2afb96be7d609a1f81e9976a5b473b9107cce38a4e8621}
}]\index{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-G\-R\-A\-P\-H\-\_\-\-D\-I\-S\-T@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-G\-R\-A\-P\-H\-\_\-\-D\-I\-S\-T}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-G\-R\-A\-P\-H\-\_\-\-D\-I\-S\-T@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-G\-R\-A\-P\-H\-\_\-\-D\-I\-S\-T}}\item[{\em 
S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-G\-R\-A\-P\-H\-\_\-\-D\-I\-S\-T\label{spring__electrical_8h_a458e651af6690959efa2afb96be7d609a737215653e5d77d5938d2e3de4a11928}
}]\index{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-A\-V\-G\-\_\-\-D\-I\-S\-T@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-A\-V\-G\-\_\-\-D\-I\-S\-T}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-A\-V\-G\-\_\-\-D\-I\-S\-T@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-A\-V\-G\-\_\-\-D\-I\-S\-T}}\item[{\em 
S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-A\-V\-G\-\_\-\-D\-I\-S\-T\label{spring__electrical_8h_a458e651af6690959efa2afb96be7d609ab3972e29dbfb07f00d8987ff5ef82865}
}]\index{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-P\-O\-W\-E\-R\-\_\-\-D\-I\-S\-T@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-P\-O\-W\-E\-R\-\_\-\-D\-I\-S\-T}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-P\-O\-W\-E\-R\-\_\-\-D\-I\-S\-T@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-P\-O\-W\-E\-R\-\_\-\-D\-I\-S\-T}}\item[{\em 
S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-J\-O\-R\-I\-Z\-A\-T\-I\-O\-N\-\_\-\-P\-O\-W\-E\-R\-\_\-\-D\-I\-S\-T\label{spring__electrical_8h_a458e651af6690959efa2afb96be7d609a84fe8d7890c651a92f5b68a58514b8b6}
}]\index{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-P\-R\-I\-N\-G@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-P\-R\-I\-N\-G}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-P\-R\-I\-N\-G@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-P\-R\-I\-N\-G}}\item[{\em 
S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-S\-P\-R\-I\-N\-G\label{spring__electrical_8h_a458e651af6690959efa2afb96be7d609a420bc48675d437fb965c0482a145cfe0}
}]\index{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-T\-R\-I\-A\-N\-G\-L\-E@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-T\-R\-I\-A\-N\-G\-L\-E}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-T\-R\-I\-A\-N\-G\-L\-E@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-T\-R\-I\-A\-N\-G\-L\-E}}\item[{\em 
S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-T\-R\-I\-A\-N\-G\-L\-E\label{spring__electrical_8h_a458e651af6690959efa2afb96be7d609aa72bc7ce34f2e5afcfa9b04686c6db1d}
}]\index{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-R\-N\-G@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-R\-N\-G}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-R\-N\-G@{S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-R\-N\-G}}\item[{\em 
S\-M\-O\-O\-T\-H\-I\-N\-G\-\_\-\-R\-N\-G\label{spring__electrical_8h_a458e651af6690959efa2afb96be7d609a43728cc276a5c1af6d0b6b4994525d74}
}]\end{description}
\end{Desc}


Definition at line 24 of file spring\-\_\-electrical.\-h.

\subsubsection[{anonymous enum}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}\label{spring__electrical_8h_a1f9aebf1de3ebbf4283a4dcf73308562}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D\-\_\-\-S\-I\-Z\-E@{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D\-\_\-\-S\-I\-Z\-E}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D\-\_\-\-S\-I\-Z\-E@{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D\-\_\-\-S\-I\-Z\-E}}\item[{\em 
Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D\-\_\-\-S\-I\-Z\-E\label{spring__electrical_8h_a1f9aebf1de3ebbf4283a4dcf73308562a358fb134f970d9a56bb3d05a3144528d}
}]\end{description}
\end{Desc}


Definition at line 26 of file spring\-\_\-electrical.\-h.

\subsubsection[{anonymous enum}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}\label{spring__electrical_8h_a77867ab4129f63159b37bca3b652a798}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-N\-E@{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-N\-E}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-N\-E@{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-N\-E}}\item[{\em 
Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-N\-E\label{spring__electrical_8h_a77867ab4129f63159b37bca3b652a798ae60ccd8c75cf2d2e58a235229709af77}
}]\index{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-R\-M\-A\-L@{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-R\-M\-A\-L}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-R\-M\-A\-L@{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-R\-M\-A\-L}}\item[{\em 
Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-N\-O\-R\-M\-A\-L\label{spring__electrical_8h_a77867ab4129f63159b37bca3b652a798a5efe66067e4b1f7a01692ad707944347}
}]\index{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-F\-A\-S\-T@{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-F\-A\-S\-T}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-F\-A\-S\-T@{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-F\-A\-S\-T}}\item[{\em 
Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-F\-A\-S\-T\label{spring__electrical_8h_a77867ab4129f63159b37bca3b652a798a81f62652a26d591dd864d1a524eb98ff}
}]\index{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D@{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D@{Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D}}\item[{\em 
Q\-U\-A\-D\-\_\-\-T\-R\-E\-E\-\_\-\-H\-Y\-B\-R\-I\-D\label{spring__electrical_8h_a77867ab4129f63159b37bca3b652a798a93b618d4c1684b7deccbd45865ecbe69}
}]\end{description}
\end{Desc}


Definition at line 28 of file spring\-\_\-electrical.\-h.

\subsubsection[{anonymous enum}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-A@{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-A}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-A@{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-A}}\item[{\em 
M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-A\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462af06c383bf515b99f8ec8089ff6af5bc7}
}]\index{M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-E\-L\-E\-C\-T\-R\-I\-C\-A\-L@{M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-E\-L\-E\-C\-T\-R\-I\-C\-A\-L}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-E\-L\-E\-C\-T\-R\-I\-C\-A\-L@{M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-E\-L\-E\-C\-T\-R\-I\-C\-A\-L}}\item[{\em 
M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-E\-L\-E\-C\-T\-R\-I\-C\-A\-L\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462a9596ad3d1d4632dd91db258b8b7914a5}
}]\index{M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-M\-A\-X\-E\-N\-T@{M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-M\-A\-X\-E\-N\-T}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-M\-A\-X\-E\-N\-T@{M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-M\-A\-X\-E\-N\-T}}\item[{\em 
M\-E\-T\-H\-O\-D\-\_\-\-S\-P\-R\-I\-N\-G\-\_\-\-M\-A\-X\-E\-N\-T\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462a1d0747e0ab6cdf020f8750c0e9a3d061}
}]\index{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-X\-E\-N\-T@{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-X\-E\-N\-T}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-X\-E\-N\-T@{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-X\-E\-N\-T}}\item[{\em 
M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-M\-A\-X\-E\-N\-T\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462a106107726271c05483fe9b005b64f7bf}
}]\index{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-A\-P\-P\-R\-O\-X@{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-A\-P\-P\-R\-O\-X}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-A\-P\-P\-R\-O\-X@{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-A\-P\-P\-R\-O\-X}}\item[{\em 
M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\-\_\-\-A\-P\-P\-R\-O\-X\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462a053e72ac9d2a311c7c6332fd827a67ac}
}]\index{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S@{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S@{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S}}\item[{\em 
M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-R\-E\-S\-S\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462a8939797d2b6fc7dea0bafaed9966d960}
}]\index{M\-E\-T\-H\-O\-D\-\_\-\-U\-N\-I\-F\-O\-R\-M\-\_\-\-S\-T\-R\-E\-S\-S@{M\-E\-T\-H\-O\-D\-\_\-\-U\-N\-I\-F\-O\-R\-M\-\_\-\-S\-T\-R\-E\-S\-S}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-E\-T\-H\-O\-D\-\_\-\-U\-N\-I\-F\-O\-R\-M\-\_\-\-S\-T\-R\-E\-S\-S@{M\-E\-T\-H\-O\-D\-\_\-\-U\-N\-I\-F\-O\-R\-M\-\_\-\-S\-T\-R\-E\-S\-S}}\item[{\em 
M\-E\-T\-H\-O\-D\-\_\-\-U\-N\-I\-F\-O\-R\-M\-\_\-\-S\-T\-R\-E\-S\-S\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462a5e07dbfacd4433e81d9d73e2abcddf69}
}]\index{M\-E\-T\-H\-O\-D\-\_\-\-F\-U\-L\-L\-\_\-\-S\-T\-R\-E\-S\-S@{M\-E\-T\-H\-O\-D\-\_\-\-F\-U\-L\-L\-\_\-\-S\-T\-R\-E\-S\-S}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-E\-T\-H\-O\-D\-\_\-\-F\-U\-L\-L\-\_\-\-S\-T\-R\-E\-S\-S@{M\-E\-T\-H\-O\-D\-\_\-\-F\-U\-L\-L\-\_\-\-S\-T\-R\-E\-S\-S}}\item[{\em 
M\-E\-T\-H\-O\-D\-\_\-\-F\-U\-L\-L\-\_\-\-S\-T\-R\-E\-S\-S\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462a697ad4e400a9dee540b7af8231d756b8}
}]\index{M\-E\-T\-H\-O\-D\-\_\-\-N\-O\-N\-E@{M\-E\-T\-H\-O\-D\-\_\-\-N\-O\-N\-E}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-E\-T\-H\-O\-D\-\_\-\-N\-O\-N\-E@{M\-E\-T\-H\-O\-D\-\_\-\-N\-O\-N\-E}}\item[{\em 
M\-E\-T\-H\-O\-D\-\_\-\-N\-O\-N\-E\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462a1d481ce5ae0cce391e31b84299c8431d}
}]\index{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-O@{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-O}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-O@{M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-O}}\item[{\em 
M\-E\-T\-H\-O\-D\-\_\-\-S\-T\-O\label{spring__electrical_8h_a16685eea158879e41b101ca3634de462aa5da1bd3ce0ccd7f9229def7888c148b}
}]\end{description}
\end{Desc}


Definition at line 30 of file spring\-\_\-electrical.\-h.

\subsubsection[{anonymous enum}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}\label{spring__electrical_8h_a2970898e8a43ce21e1cc510d49f1b89d}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{M\-A\-X\-\_\-\-I@{M\-A\-X\-\_\-\-I}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!M\-A\-X\-\_\-\-I@{M\-A\-X\-\_\-\-I}}\item[{\em 
M\-A\-X\-\_\-\-I\label{spring__electrical_8h_a2970898e8a43ce21e1cc510d49f1b89dafbddb6460ae1a86763e5d152d6899523}
}]\index{O\-P\-T\-\_\-\-U\-P@{O\-P\-T\-\_\-\-U\-P}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!O\-P\-T\-\_\-\-U\-P@{O\-P\-T\-\_\-\-U\-P}}\item[{\em 
O\-P\-T\-\_\-\-U\-P\label{spring__electrical_8h_a2970898e8a43ce21e1cc510d49f1b89dadec8cc8f27b600f6e99f7efd90d0ac24}
}]\index{O\-P\-T\-\_\-\-D\-O\-W\-N@{O\-P\-T\-\_\-\-D\-O\-W\-N}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!O\-P\-T\-\_\-\-D\-O\-W\-N@{O\-P\-T\-\_\-\-D\-O\-W\-N}}\item[{\em 
O\-P\-T\-\_\-\-D\-O\-W\-N\label{spring__electrical_8h_a2970898e8a43ce21e1cc510d49f1b89dad9301c685c84994f58e84f8d69cd3d50}
}]\index{O\-P\-T\-\_\-\-I\-N\-I\-T@{O\-P\-T\-\_\-\-I\-N\-I\-T}!spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}}\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!O\-P\-T\-\_\-\-I\-N\-I\-T@{O\-P\-T\-\_\-\-I\-N\-I\-T}}\item[{\em 
O\-P\-T\-\_\-\-I\-N\-I\-T\label{spring__electrical_8h_a2970898e8a43ce21e1cc510d49f1b89da9ed6c2285a9bfe860f03036a420afb72}
}]\end{description}
\end{Desc}


Definition at line 88 of file spring\-\_\-electrical.\-h.



\subsection{Function Documentation}
\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!average\-\_\-edge\-\_\-length@{average\-\_\-edge\-\_\-length}}
\index{average\-\_\-edge\-\_\-length@{average\-\_\-edge\-\_\-length}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!export\-\_\-embedding@{export\-\_\-embedding}}
\index{export\-\_\-embedding@{export\-\_\-embedding}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!force\-\_\-print@{force\-\_\-print}}
\index{force\-\_\-print@{force\-\_\-print}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_a33febe47933ec798066ee2b269aa1404}


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

\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!interpolate\-\_\-coord@{interpolate\-\_\-coord}}
\index{interpolate\-\_\-coord@{interpolate\-\_\-coord}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding@{multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding}}
\index{multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding@{multilevel\-\_\-spring\-\_\-electrical\-\_\-embedding}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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}}]{A0, }
\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_8h_a559e94e732929e58ccdf105b1f835ae1}


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

\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!oned\-\_\-optimizer\-\_\-delete@{oned\-\_\-optimizer\-\_\-delete}}
\index{oned\-\_\-optimizer\-\_\-delete@{oned\-\_\-optimizer\-\_\-delete}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!oned\-\_\-optimizer\-\_\-get@{oned\-\_\-optimizer\-\_\-get}}
\index{oned\-\_\-optimizer\-\_\-get@{oned\-\_\-optimizer\-\_\-get}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!oned\-\_\-optimizer\-\_\-new@{oned\-\_\-optimizer\-\_\-new}}
\index{oned\-\_\-optimizer\-\_\-new@{oned\-\_\-optimizer\-\_\-new}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!oned\-\_\-optimizer\-\_\-train@{oned\-\_\-optimizer\-\_\-train}}
\index{oned\-\_\-optimizer\-\_\-train@{oned\-\_\-optimizer\-\_\-train}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!pcp\-\_\-rotate@{pcp\-\_\-rotate}}
\index{pcp\-\_\-rotate@{pcp\-\_\-rotate}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_ac09c64028c7d1a0c064b614cbf722b37}


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



References assert, dist(), and real.

\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!power\-\_\-law\-\_\-graph@{power\-\_\-law\-\_\-graph}}
\index{power\-\_\-law\-\_\-graph@{power\-\_\-law\-\_\-graph}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!print\-\_\-matrix@{print\-\_\-matrix}}
\index{print\-\_\-matrix@{print\-\_\-matrix}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_abb0c0e37b1f7e49f19d2cddbc30b598f}


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

\index{spring\-\_\-electrical.\-h@{spring\-\_\-electrical.\-h}!spring\-\_\-electrical\-\_\-control\-\_\-delete@{spring\-\_\-electrical\-\_\-control\-\_\-delete}}
\index{spring\-\_\-electrical\-\_\-control\-\_\-delete@{spring\-\_\-electrical\-\_\-control\-\_\-delete}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!spring\-\_\-electrical\-\_\-control\-\_\-new@{spring\-\_\-electrical\-\_\-control\-\_\-new}}
\index{spring\-\_\-electrical\-\_\-control\-\_\-new@{spring\-\_\-electrical\-\_\-control\-\_\-new}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_a3f3eb505a10aa88dc8190c743a7782be}


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.\-h@{spring\-\_\-electrical.\-h}!spring\-\_\-electrical\-\_\-control\-\_\-print@{spring\-\_\-electrical\-\_\-control\-\_\-print}}
\index{spring\-\_\-electrical\-\_\-control\-\_\-print@{spring\-\_\-electrical\-\_\-control\-\_\-print}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!spring\-\_\-electrical\-\_\-embedding@{spring\-\_\-electrical\-\_\-embedding}}
\index{spring\-\_\-electrical\-\_\-embedding@{spring\-\_\-electrical\-\_\-embedding}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!spring\-\_\-electrical\-\_\-embedding\-\_\-fast@{spring\-\_\-electrical\-\_\-embedding\-\_\-fast}}
\index{spring\-\_\-electrical\-\_\-embedding\-\_\-fast@{spring\-\_\-electrical\-\_\-embedding\-\_\-fast}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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_8h_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.\-h@{spring\-\_\-electrical.\-h}!spring\-\_\-electrical\-\_\-spring\-\_\-embedding@{spring\-\_\-electrical\-\_\-spring\-\_\-embedding}}
\index{spring\-\_\-electrical\-\_\-spring\-\_\-embedding@{spring\-\_\-electrical\-\_\-spring\-\_\-embedding}!spring_electrical.h@{spring\-\_\-electrical.\-h}}
\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}}]{A, }
\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_8h_ac5bf773bd070704fb8814ceebc20d6f5}


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().

