\section{lib/sparse/general.h File Reference}
\label{general_8h}\index{lib/sparse/general.\-h@{lib/sparse/general.\-h}}
{\ttfamily \#include $<$stdlib.\-h$>$}\\*
{\ttfamily \#include $<$stdio.\-h$>$}\\*
{\ttfamily \#include $<$math.\-h$>$}\\*
{\ttfamily \#include $<$string.\-h$>$}\\*
{\ttfamily \#include $<$assert.\-h$>$}\\*
{\ttfamily \#include $<$cgraph.\-h$>$}\\*
{\ttfamily \#include $<$globals.\-h$>$}\\*
{\ttfamily \#include $<$logic.\-h$>$}\\*
{\ttfamily \#include $<$arith.\-h$>$}\\*
{\ttfamily \#include $<$memory.\-h$>$}\\*
Include dependency graph for general.\-h\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{general_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]{general_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf real}~double
\item 
\#define {\bf set\-\_\-flag}(a, flag)~((a)=((a)$|$(flag)))
\item 
\#define {\bf test\-\_\-flag}(a, flag)~((a)\&(flag))
\item 
\#define {\bf clear\-\_\-flag}(a, flag)~((a) \&=($\sim$(flag)))
\item 
\#define {\bf M\-A\-L\-L\-O\-C}~{\bf gmalloc}
\item 
\#define {\bf R\-E\-A\-L\-L\-O\-C}~{\bf grealloc}
\item 
\#define {\bf F\-R\-E\-E}~free
\item 
\#define {\bf M\-E\-M\-C\-P\-Y}~memcpy
\item 
\#define {\bf N\-D\-E\-B\-U\-G}~/$\ast$ {\bf switch} off {\bf assert}$\ast$/
\item 
\#define {\bf M\-A\-C\-H\-I\-N\-E\-A\-C\-C}~1.\-0e-\/16
\item 
\#define {\bf S\-Q\-R\-T\-\_\-\-M\-A\-C\-H\-I\-N\-E\-A\-C\-C}~1.\-0e-\/8
\item 
\#define {\bf M\-I\-N\-D\-I\-S\-T}~1.e-\/15
\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \{ {\bf U\-N\-M\-A\-T\-C\-H\-E\-D} = -\/1
 \}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf int} {\bf irand} ({\bf int} n)
\item 
{\bf real} {\bf drand} (void)
\item 
{\bf int} $\ast$ {\bf random\-\_\-permutation} ({\bf int} n)
\item 
{\bf real} $\ast$ {\bf vector\-\_\-subtract\-\_\-to} ({\bf int} n, {\bf real} $\ast$x, {\bf real} $\ast$y)
\item 
{\bf real} $\ast$ {\bf vector\-\_\-subtract\-\_\-from} ({\bf int} n, {\bf real} $\ast$x, {\bf real} $\ast$y)
\item 
{\bf real} $\ast$ {\bf vector\-\_\-add\-\_\-to} ({\bf int} n, {\bf real} $\ast$x, {\bf real} $\ast$y)
\item 
{\bf real} {\bf vector\-\_\-product} ({\bf int} n, {\bf real} $\ast$x, {\bf real} $\ast$y)
\item 
{\bf real} $\ast$ {\bf vector\-\_\-saxpy} ({\bf int} n, {\bf real} $\ast$x, {\bf real} $\ast$y, {\bf real} beta)
\item 
{\bf real} $\ast$ {\bf vector\-\_\-saxpy2} ({\bf int} n, {\bf real} $\ast$x, {\bf real} $\ast$y, {\bf real} beta)
\item 
void {\bf vector\-\_\-take} ({\bf int} n, {\bf real} $\ast$v, {\bf int} m, {\bf int} $\ast$p, {\bf real} $\ast$$\ast$u)
\item 
void {\bf vector\-\_\-float\-\_\-take} ({\bf int} n, float $\ast$v, {\bf int} m, {\bf int} $\ast$p, float $\ast$$\ast$u)
\item 
void {\bf vector\-\_\-ordering} ({\bf int} n, {\bf real} $\ast$v, {\bf int} $\ast$$\ast$p, {\bf int} ascending)
\item 
void {\bf vector\-\_\-sort\-\_\-real} ({\bf int} n, {\bf real} $\ast$v, {\bf int} ascending)
\item 
void {\bf vector\-\_\-sort\-\_\-int} ({\bf int} n, {\bf int} $\ast$v, {\bf int} ascending)
\item 
{\bf real} {\bf vector\-\_\-median} ({\bf int} n, {\bf real} $\ast$x)
\item 
{\bf real} {\bf vector\-\_\-percentile} ({\bf int} n, {\bf real} $\ast$x, {\bf real} y)
\item 
void {\bf vector\-\_\-print} (char $\ast${\bf s}, {\bf int} n, {\bf real} $\ast$x)
\item 
{\bf int} {\bf excute\-\_\-system\-\_\-command3} (char $\ast${\bf s1}, char $\ast$s2, char $\ast$s3)
\item 
{\bf int} {\bf excute\-\_\-system\-\_\-command} (char $\ast${\bf s1}, char $\ast$s2)
\item 
{\bf real} {\bf distance} ({\bf real} $\ast$x, {\bf int} dim, {\bf int} i, {\bf int} j)
\item 
{\bf real} {\bf distance\-\_\-cropped} ({\bf real} $\ast$x, {\bf int} dim, {\bf int} i, {\bf int} j)
\item 
{\bf real} {\bf point\-\_\-distance} ({\bf real} $\ast$p1, {\bf real} $\ast$p2, {\bf int} dim)
\item 
char $\ast$ {\bf strip\-\_\-dir} (char $\ast${\bf s})
\item 
void {\bf scale\-\_\-to\-\_\-box} ({\bf real} {\bf xmin}, {\bf real} {\bf ymin}, {\bf real} {\bf xmax}, {\bf real} {\bf ymax}, {\bf int} n, {\bf int} dim, {\bf real} $\ast$x)
\item 
{\bf int} {\bf valid\-Q\-\_\-int\-\_\-string} (char $\ast$to\-\_\-convert, {\bf int} $\ast$v)
\item 
{\bf int} {\bf digits\-Q} (char $\ast$to\-\_\-convert)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{general.\-h@{general.\-h}!clear\-\_\-flag@{clear\-\_\-flag}}
\index{clear\-\_\-flag@{clear\-\_\-flag}!general.h@{general.\-h}}
\subsubsection[{clear\-\_\-flag}]{\setlength{\rightskip}{0pt plus 5cm}\#define clear\-\_\-flag(
\begin{DoxyParamCaption}
\item[{}]{a, }
\item[{}]{flag}
\end{DoxyParamCaption}
)~((a) \&=($\sim$(flag)))}\label{general_8h_a409c3bde73afab68183f9ea0b6d14693}


Definition at line 38 of file general.\-h.



Referenced by Sparse\-Matrix\-\_\-remove\-\_\-upper().

\index{general.\-h@{general.\-h}!F\-R\-E\-E@{F\-R\-E\-E}}
\index{F\-R\-E\-E@{F\-R\-E\-E}!general.h@{general.\-h}}
\subsubsection[{F\-R\-E\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define F\-R\-E\-E~free}\label{general_8h_a9a8e700d56e7d858108b755ad3edb52e}


Definition at line 73 of file general.\-h.

\index{general.\-h@{general.\-h}!M\-A\-C\-H\-I\-N\-E\-A\-C\-C@{M\-A\-C\-H\-I\-N\-E\-A\-C\-C}}
\index{M\-A\-C\-H\-I\-N\-E\-A\-C\-C@{M\-A\-C\-H\-I\-N\-E\-A\-C\-C}!general.h@{general.\-h}}
\subsubsection[{M\-A\-C\-H\-I\-N\-E\-A\-C\-C}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-A\-C\-H\-I\-N\-E\-A\-C\-C~1.\-0e-\/16}\label{general_8h_ada6b0e084ddbadc85b3d079e0d020156}


Definition at line 120 of file general.\-h.



Referenced by Sparse\-Matrix\-\_\-page\-\_\-rank(), and uniform\-\_\-stress().

\index{general.\-h@{general.\-h}!M\-A\-L\-L\-O\-C@{M\-A\-L\-L\-O\-C}}
\index{M\-A\-L\-L\-O\-C@{M\-A\-L\-L\-O\-C}!general.h@{general.\-h}}
\subsubsection[{M\-A\-L\-L\-O\-C}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-A\-L\-L\-O\-C~{\bf gmalloc}}\label{general_8h_a3e218828af7ddd3f4cd0d3772562b520}


Definition at line 69 of file general.\-h.

\index{general.\-h@{general.\-h}!M\-E\-M\-C\-P\-Y@{M\-E\-M\-C\-P\-Y}}
\index{M\-E\-M\-C\-P\-Y@{M\-E\-M\-C\-P\-Y}!general.h@{general.\-h}}
\subsubsection[{M\-E\-M\-C\-P\-Y}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-E\-M\-C\-P\-Y~memcpy}\label{general_8h_afa49f5cbf45954321f45b92170a5fac2}


Definition at line 74 of file general.\-h.

\index{general.\-h@{general.\-h}!M\-I\-N\-D\-I\-S\-T@{M\-I\-N\-D\-I\-S\-T}}
\index{M\-I\-N\-D\-I\-S\-T@{M\-I\-N\-D\-I\-S\-T}!general.h@{general.\-h}}
\subsubsection[{M\-I\-N\-D\-I\-S\-T}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-I\-N\-D\-I\-S\-T~1.e-\/15}\label{general_8h_abd40c30aeb838e9729fd6ebd4c4787d8}


Definition at line 127 of file general.\-h.

\index{general.\-h@{general.\-h}!N\-D\-E\-B\-U\-G@{N\-D\-E\-B\-U\-G}}
\index{N\-D\-E\-B\-U\-G@{N\-D\-E\-B\-U\-G}!general.h@{general.\-h}}
\subsubsection[{N\-D\-E\-B\-U\-G}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-D\-E\-B\-U\-G~/$\ast$ {\bf switch} off {\bf assert}$\ast$/}\label{general_8h_a8de3ed741dadc9c979a4ff17c0a9116e}


Definition at line 78 of file general.\-h.

\index{general.\-h@{general.\-h}!real@{real}}
\index{real@{real}!general.h@{general.\-h}}
\subsubsection[{real}]{\setlength{\rightskip}{0pt plus 5cm}\#define real~double}\label{general_8h_a5f5a64ef503db0fc824df8320929b126}


Definition at line 34 of file general.\-h.



Referenced by attached\-\_\-clustering(), average\-\_\-edge\-\_\-length(), call\-\_\-tri(), call\-\_\-tri2(), cg(), check\-\_\-or\-\_\-realloc\-\_\-arrays(), check\-\_\-real\-\_\-array\-\_\-size(), comp\-\_\-ascend(), comp\-\_\-descend(), comp\-\_\-real(), distance(), distance\-\_\-cropped(), Distance\-Matrix\-\_\-restrict\-\_\-cluster(), drand(), edgelist\-\_\-export(), export\-\_\-embedding(), get\-\_\-angle(), get\-\_\-distance\-\_\-matrix(), get\-\_\-stress(), get\-Sizes(), hue2rgb(), hue2rgb\-\_\-real(), ideal\-\_\-distance\-\_\-matrix(), Import\-\_\-coord\-\_\-clusters\-\_\-from\-\_\-dot(), interpolate\-\_\-coord(), jacobi(), main(), make\-Dot\-Graph(), make\-Matrix(), Multilevel\-\_\-coarsen(), Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-establish(), Multilevel\-\_\-\-M\-Q\-\_\-\-Clustering\-\_\-init(), Operator\-\_\-diag\-\_\-precon\-\_\-apply(), Operator\-\_\-diag\-\_\-precon\-\_\-new(), Operator\-\_\-uniform\-\_\-stress\-\_\-diag\-\_\-precon\-\_\-new(), Operator\-\_\-uniform\-\_\-stress\-\_\-matmul\-\_\-apply(), pcp\-\_\-rotate(), point\-\_\-distance(), post\-\_\-process\-\_\-smoothing(), Quad\-Tree\-\_\-get\-\_\-supernodes(), Quad\-Tree\-\_\-get\-\_\-supernodes\-\_\-internal(), Quad\-Tree\-\_\-new(), Quad\-Tree\-\_\-new\-\_\-from\-\_\-point\-\_\-list(), scale\-\_\-to\-\_\-box(), Sparse\-Matrix\-\_\-add(), Sparse\-Matrix\-\_\-apply\-\_\-fun(), Sparse\-Matrix\-\_\-apply\-\_\-fun\-\_\-general(), Sparse\-Matrix\-\_\-crop(), Sparse\-Matrix\-\_\-distance\-\_\-matrix(), Sparse\-Matrix\-\_\-distance\-\_\-matrix\-\_\-k\-\_\-centers(), Sparse\-Matrix\-\_\-distance\-\_\-matrix\-\_\-khops(), Sparse\-Matrix\-\_\-divide\-\_\-row\-\_\-by\-\_\-degree(), Sparse\-Matrix\-\_\-from\-\_\-dense(), Sparse\-Matrix\-\_\-get\-\_\-real\-\_\-adjacency\-\_\-matrix\-\_\-symmetrized(), Sparse\-Matrix\-\_\-get\-\_\-submatrix(), Sparse\-Matrix\-\_\-import\-\_\-dot(), Sparse\-Matrix\-\_\-is\-\_\-symmetric(), Sparse\-Matrix\-\_\-k\-\_\-centers(), Sparse\-Matrix\-\_\-k\-\_\-centers\-\_\-user(), Sparse\-Matrix\-\_\-multiply(), Sparse\-Matrix\-\_\-multiply3(), Sparse\-Matrix\-\_\-multiply\-\_\-by\-\_\-scaler(), Sparse\-Matrix\-\_\-multiply\-\_\-vector(), Sparse\-Matrix\-\_\-normalize\-\_\-by\-\_\-row(), Sparse\-Matrix\-\_\-normalize\-\_\-to\-\_\-rowsum1(), Sparse\-Matrix\-\_\-page\-\_\-rank(), Sparse\-Matrix\-\_\-print\-\_\-coord(), Sparse\-Matrix\-\_\-print\-\_\-csr(), Sparse\-Matrix\-\_\-pseudo\-\_\-diameter\-\_\-unweighted(), Sparse\-Matrix\-\_\-pseudo\-\_\-diameter\-\_\-weighted(), Sparse\-Matrix\-\_\-remove\-\_\-diagonal(), Sparse\-Matrix\-\_\-remove\-\_\-upper(), Sparse\-Matrix\-\_\-scaled\-\_\-by\-\_\-vector(), Sparse\-Matrix\-\_\-set\-\_\-entries\-\_\-to\-\_\-real\-\_\-one(), Sparse\-Matrix\-\_\-solve(), Sparse\-Matrix\-\_\-sum\-\_\-repeat\-\_\-entries(), Sparse\-Matrix\-\_\-to\-\_\-complex(), Sparse\-Matrix\-\_\-transpose(), Sparse\-Stress\-Majorization\-Smoother\-\_\-new(), spring\-\_\-electrical\-\_\-embedding(), spring\-\_\-electrical\-\_\-embedding\-\_\-fast(), spring\-\_\-electrical\-\_\-embedding\-\_\-slow(), spring\-\_\-electrical\-\_\-spring\-\_\-embedding(), spring\-\_\-maxent\-\_\-embedding(), Spring\-Smoother\-\_\-new(), stress\-\_\-model\-\_\-core(), Stress\-Majorization\-Smoother2\-\_\-new(), Stress\-Majorization\-Smoother\-\_\-smooth(), tree\-\_\-map(), Triangle\-Smoother\-\_\-new(), uniform\-\_\-stress(), Uniform\-Stress\-Smoother\-\_\-new(), vector\-\_\-median(), vector\-\_\-ordering(), vector\-\_\-percentile(), vector\-\_\-product(), vector\-\_\-sort\-\_\-real(), and vector\-\_\-take().

\index{general.\-h@{general.\-h}!R\-E\-A\-L\-L\-O\-C@{R\-E\-A\-L\-L\-O\-C}}
\index{R\-E\-A\-L\-L\-O\-C@{R\-E\-A\-L\-L\-O\-C}!general.h@{general.\-h}}
\subsubsection[{R\-E\-A\-L\-L\-O\-C}]{\setlength{\rightskip}{0pt plus 5cm}\#define R\-E\-A\-L\-L\-O\-C~{\bf grealloc}}\label{general_8h_a2e501a3b49991d5e526b5c52c1522df4}


Definition at line 70 of file general.\-h.

\index{general.\-h@{general.\-h}!set\-\_\-flag@{set\-\_\-flag}}
\index{set\-\_\-flag@{set\-\_\-flag}!general.h@{general.\-h}}
\subsubsection[{set\-\_\-flag}]{\setlength{\rightskip}{0pt plus 5cm}\#define set\-\_\-flag(
\begin{DoxyParamCaption}
\item[{}]{a, }
\item[{}]{flag}
\end{DoxyParamCaption}
)~((a)=((a)$|$(flag)))}\label{general_8h_acf3e4cf3dc5fa0ecba67ff53cd11e4b0}


Definition at line 36 of file general.\-h.

\index{general.\-h@{general.\-h}!S\-Q\-R\-T\-\_\-\-M\-A\-C\-H\-I\-N\-E\-A\-C\-C@{S\-Q\-R\-T\-\_\-\-M\-A\-C\-H\-I\-N\-E\-A\-C\-C}}
\index{S\-Q\-R\-T\-\_\-\-M\-A\-C\-H\-I\-N\-E\-A\-C\-C@{S\-Q\-R\-T\-\_\-\-M\-A\-C\-H\-I\-N\-E\-A\-C\-C}!general.h@{general.\-h}}
\subsubsection[{S\-Q\-R\-T\-\_\-\-M\-A\-C\-H\-I\-N\-E\-A\-C\-C}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-Q\-R\-T\-\_\-\-M\-A\-C\-H\-I\-N\-E\-A\-C\-C~1.\-0e-\/8}\label{general_8h_a60b6fa5f7a0ba52b9e1da0dcc3b67c84}


Definition at line 121 of file general.\-h.

\index{general.\-h@{general.\-h}!test\-\_\-flag@{test\-\_\-flag}}
\index{test\-\_\-flag@{test\-\_\-flag}!general.h@{general.\-h}}
\subsubsection[{test\-\_\-flag}]{\setlength{\rightskip}{0pt plus 5cm}\#define test\-\_\-flag(
\begin{DoxyParamCaption}
\item[{}]{a, }
\item[{}]{flag}
\end{DoxyParamCaption}
)~((a)\&(flag))}\label{general_8h_afd5895a9dddc943aa181453b445daea0}


Definition at line 37 of file general.\-h.



\subsection{Enumeration Type Documentation}
\subsubsection[{anonymous enum}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}\label{general_8h_a84627a72058502328269676b81780f89}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{U\-N\-M\-A\-T\-C\-H\-E\-D@{U\-N\-M\-A\-T\-C\-H\-E\-D}!general.\-h@{general.\-h}}\index{general.\-h@{general.\-h}!U\-N\-M\-A\-T\-C\-H\-E\-D@{U\-N\-M\-A\-T\-C\-H\-E\-D}}\item[{\em 
U\-N\-M\-A\-T\-C\-H\-E\-D\label{general_8h_a84627a72058502328269676b81780f89a1281ac5b7ba5b42a08b8e2dfee5ec74c}
}]\end{description}
\end{Desc}


Definition at line 129 of file general.\-h.



\subsection{Function Documentation}
\index{general.\-h@{general.\-h}!digits\-Q@{digits\-Q}}
\index{digits\-Q@{digits\-Q}!general.h@{general.\-h}}
\subsubsection[{digits\-Q}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} digits\-Q (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{to\-\_\-convert}
\end{DoxyParamCaption}
)}\label{general_8h_aeef6368de5adb1d814c7007b89bc1cbd}


Definition at line 347 of file general.\-c.

\index{general.\-h@{general.\-h}!distance@{distance}}
\index{distance@{distance}!general.h@{general.\-h}}
\subsubsection[{distance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real} distance (
\begin{DoxyParamCaption}
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf int}}]{dim, }
\item[{{\bf int}}]{i, }
\item[{{\bf int}}]{j}
\end{DoxyParamCaption}
)}\label{general_8h_a199d060ded1644574b6f58daf1877fc6}


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



References dist(), and real.



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

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


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

\index{general.\-h@{general.\-h}!drand@{drand}}
\index{drand@{drand}!general.h@{general.\-h}}
\subsubsection[{drand}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real} drand (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{general_8h_a321c7b7866cdfc4abfe08e14a065911b}


Definition at line 52 of file general.\-c.



References real.



Referenced by assign\-\_\-random\-\_\-edge\-\_\-color(), Sparse\-Stress\-Majorization\-Smoother\-\_\-new(), spring\-\_\-electrical\-\_\-embedding(), spring\-\_\-electrical\-\_\-embedding\-\_\-fast(), spring\-\_\-electrical\-\_\-embedding\-\_\-slow(), spring\-\_\-electrical\-\_\-spring\-\_\-embedding(), spring\-\_\-maxent\-\_\-embedding(), stress\-\_\-model\-\_\-core(), Stress\-Majorization\-Smoother\-\_\-smooth(), and uniform\-\_\-stress().

\index{general.\-h@{general.\-h}!excute\-\_\-system\-\_\-command@{excute\-\_\-system\-\_\-command}}
\index{excute\-\_\-system\-\_\-command@{excute\-\_\-system\-\_\-command}!general.h@{general.\-h}}
\subsubsection[{excute\-\_\-system\-\_\-command}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} excute\-\_\-system\-\_\-command (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s1, }
\item[{char $\ast$}]{s2}
\end{DoxyParamCaption}
)}\label{general_8h_a6c334a5ac6f0b8fe274da3e2ad26faef}


Definition at line 267 of file general.\-c.

\index{general.\-h@{general.\-h}!excute\-\_\-system\-\_\-command3@{excute\-\_\-system\-\_\-command3}}
\index{excute\-\_\-system\-\_\-command3@{excute\-\_\-system\-\_\-command3}!general.h@{general.\-h}}
\subsubsection[{excute\-\_\-system\-\_\-command3}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} excute\-\_\-system\-\_\-command3 (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s1, }
\item[{char $\ast$}]{s2, }
\item[{char $\ast$}]{s3}
\end{DoxyParamCaption}
)}\label{general_8h_a1b3731fa9eb98513a526d5eb7cc193b4}


Definition at line 258 of file general.\-c.

\index{general.\-h@{general.\-h}!irand@{irand}}
\index{irand@{irand}!general.h@{general.\-h}}
\subsubsection[{irand}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} irand (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n}
\end{DoxyParamCaption}
)}\label{general_8h_ab08fa6c4eacf29fe7603acd5ec657487}


Definition at line 56 of file general.\-c.



References assert.



Referenced by random\-\_\-permutation().

\index{general.\-h@{general.\-h}!point\-\_\-distance@{point\-\_\-distance}}
\index{point\-\_\-distance@{point\-\_\-distance}!general.h@{general.\-h}}
\subsubsection[{point\-\_\-distance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real} point\-\_\-distance (
\begin{DoxyParamCaption}
\item[{{\bf real} $\ast$}]{p1, }
\item[{{\bf real} $\ast$}]{p2, }
\item[{{\bf int}}]{dim}
\end{DoxyParamCaption}
)}\label{general_8h_ae4cc19c24bd9e799452756b8f452b109}


Definition at line 291 of file general.\-c.

\index{general.\-h@{general.\-h}!random\-\_\-permutation@{random\-\_\-permutation}}
\index{random\-\_\-permutation@{random\-\_\-permutation}!general.h@{general.\-h}}
\subsubsection[{random\-\_\-permutation}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int}$\ast$ random\-\_\-permutation (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n}
\end{DoxyParamCaption}
)}\label{general_8h_a9af456774f7b744234d4b039e0fcb85e}


Definition at line 63 of file general.\-c.



References irand(), M\-A\-L\-L\-O\-C, and N\-U\-L\-L.

\index{general.\-h@{general.\-h}!scale\-\_\-to\-\_\-box@{scale\-\_\-to\-\_\-box}}
\index{scale\-\_\-to\-\_\-box@{scale\-\_\-to\-\_\-box}!general.h@{general.\-h}}
\subsubsection[{scale\-\_\-to\-\_\-box}]{\setlength{\rightskip}{0pt plus 5cm}void scale\-\_\-to\-\_\-box (
\begin{DoxyParamCaption}
\item[{{\bf real}}]{xmin, }
\item[{{\bf real}}]{ymin, }
\item[{{\bf real}}]{xmax, }
\item[{{\bf real}}]{ymax, }
\item[{{\bf int}}]{n, }
\item[{{\bf int}}]{dim, }
\item[{{\bf real} $\ast$}]{x}
\end{DoxyParamCaption}
)}\label{general_8h_ac01a97348c90f61762775dca4d61d5f1}


Definition at line 312 of file general.\-c.



References M\-A\-X, max, M\-I\-N, real, xmin, and ymin.

\index{general.\-h@{general.\-h}!strip\-\_\-dir@{strip\-\_\-dir}}
\index{strip\-\_\-dir@{strip\-\_\-dir}!general.h@{general.\-h}}
\subsubsection[{strip\-\_\-dir}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ strip\-\_\-dir (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s}
\end{DoxyParamCaption}
)}\label{general_8h_a76b63a6954059c63840164fcc72ee78c}


Definition at line 299 of file general.\-c.



References F\-A\-L\-S\-E, and T\-R\-U\-E.



Referenced by dump\-\_\-coordinates(), and make\-Dot\-Graph().

\index{general.\-h@{general.\-h}!valid\-Q\-\_\-int\-\_\-string@{valid\-Q\-\_\-int\-\_\-string}}
\index{valid\-Q\-\_\-int\-\_\-string@{valid\-Q\-\_\-int\-\_\-string}!general.h@{general.\-h}}
\subsubsection[{valid\-Q\-\_\-int\-\_\-string}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} valid\-Q\-\_\-int\-\_\-string (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{to\-\_\-convert, }
\item[{{\bf int} $\ast$}]{v}
\end{DoxyParamCaption}
)}\label{general_8h_a570d6e3db0e79a589e92b5cbae61d318}


Definition at line 354 of file general.\-c.



References int, I\-N\-T\-\_\-\-M\-A\-X, and I\-N\-T\-\_\-\-M\-I\-N.

\index{general.\-h@{general.\-h}!vector\-\_\-add\-\_\-to@{vector\-\_\-add\-\_\-to}}
\index{vector\-\_\-add\-\_\-to@{vector\-\_\-add\-\_\-to}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-add\-\_\-to}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real}$\ast$ vector\-\_\-add\-\_\-to (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf real} $\ast$}]{y}
\end{DoxyParamCaption}
)}\label{general_8h_a5bb4c6784e34cf7a94da3ec23f0d9efe}


Definition at line 94 of file general.\-c.

\index{general.\-h@{general.\-h}!vector\-\_\-float\-\_\-take@{vector\-\_\-float\-\_\-take}}
\index{vector\-\_\-float\-\_\-take@{vector\-\_\-float\-\_\-take}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-float\-\_\-take}]{\setlength{\rightskip}{0pt plus 5cm}void vector\-\_\-float\-\_\-take (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{float $\ast$}]{v, }
\item[{{\bf int}}]{m, }
\item[{{\bf int} $\ast$}]{p, }
\item[{float $\ast$$\ast$}]{u}
\end{DoxyParamCaption}
)}\label{general_8h_aa5a5f33a5361f56d4ea5b76a8655a45e}


Definition at line 145 of file general.\-c.



References assert, and M\-A\-L\-L\-O\-C.

\index{general.\-h@{general.\-h}!vector\-\_\-median@{vector\-\_\-median}}
\index{vector\-\_\-median@{vector\-\_\-median}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-median}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real} vector\-\_\-median (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{x}
\end{DoxyParamCaption}
)}\label{general_8h_a30cd043ec97c489a572fd796e1e87d87}


Definition at line 21 of file general.\-c.



References F\-R\-E\-E, N\-U\-L\-L, real, T\-R\-U\-E, and vector\-\_\-ordering().

\index{general.\-h@{general.\-h}!vector\-\_\-ordering@{vector\-\_\-ordering}}
\index{vector\-\_\-ordering@{vector\-\_\-ordering}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-ordering}]{\setlength{\rightskip}{0pt plus 5cm}void vector\-\_\-ordering (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{v, }
\item[{{\bf int} $\ast$$\ast$}]{p, }
\item[{{\bf int}}]{ascending}
\end{DoxyParamCaption}
)}\label{general_8h_aa247b4558125623a0e1faca816be2e09}


Definition at line 210 of file general.\-c.



References comp\-\_\-ascend(), comp\-\_\-descend(), F\-R\-E\-E, int, M\-A\-L\-L\-O\-C, and real.



Referenced by vector\-\_\-median(), and vector\-\_\-percentile().

\index{general.\-h@{general.\-h}!vector\-\_\-percentile@{vector\-\_\-percentile}}
\index{vector\-\_\-percentile@{vector\-\_\-percentile}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-percentile}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real} vector\-\_\-percentile (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf real}}]{y}
\end{DoxyParamCaption}
)}\label{general_8h_a52f4d5bd87525a459bc88124ba5e45c3}


Definition at line 35 of file general.\-c.



References F\-R\-E\-E, M\-A\-X, M\-I\-N, N\-U\-L\-L, real, T\-R\-U\-E, and vector\-\_\-ordering().

\index{general.\-h@{general.\-h}!vector\-\_\-print@{vector\-\_\-print}}
\index{vector\-\_\-print@{vector\-\_\-print}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-print}]{\setlength{\rightskip}{0pt plus 5cm}void vector\-\_\-print (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s, }
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{x}
\end{DoxyParamCaption}
)}\label{general_8h_a450cb2ce16b128227160c50668e2baf9}


Definition at line 122 of file general.\-c.

\index{general.\-h@{general.\-h}!vector\-\_\-product@{vector\-\_\-product}}
\index{vector\-\_\-product@{vector\-\_\-product}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-product}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real} vector\-\_\-product (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf real} $\ast$}]{y}
\end{DoxyParamCaption}
)}\label{general_8h_ab001835c66998293bf7d8937e77e9917}


Definition at line 101 of file general.\-c.



References real.



Referenced by Stress\-Majorization\-Smoother\-\_\-smooth().

\index{general.\-h@{general.\-h}!vector\-\_\-saxpy@{vector\-\_\-saxpy}}
\index{vector\-\_\-saxpy@{vector\-\_\-saxpy}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-saxpy}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real}$\ast$ vector\-\_\-saxpy (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf real} $\ast$}]{y, }
\item[{{\bf real}}]{beta}
\end{DoxyParamCaption}
)}\label{general_8h_a2f4b4b8b03a78e9f20dd27fca5d0198a}


Definition at line 108 of file general.\-c.

\index{general.\-h@{general.\-h}!vector\-\_\-saxpy2@{vector\-\_\-saxpy2}}
\index{vector\-\_\-saxpy2@{vector\-\_\-saxpy2}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-saxpy2}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real}$\ast$ vector\-\_\-saxpy2 (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf real} $\ast$}]{y, }
\item[{{\bf real}}]{beta}
\end{DoxyParamCaption}
)}\label{general_8h_aa44ee7f37f62b7cfd9780019a034ebe7}


Definition at line 115 of file general.\-c.

\index{general.\-h@{general.\-h}!vector\-\_\-sort\-\_\-int@{vector\-\_\-sort\-\_\-int}}
\index{vector\-\_\-sort\-\_\-int@{vector\-\_\-sort\-\_\-int}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-sort\-\_\-int}]{\setlength{\rightskip}{0pt plus 5cm}void vector\-\_\-sort\-\_\-int (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf int} $\ast$}]{v, }
\item[{{\bf int}}]{ascending}
\end{DoxyParamCaption}
)}\label{general_8h_ac8efb5c9a9f15fe2c779b803bc775cb5}


Definition at line 250 of file general.\-c.



References comp\-\_\-ascend\-\_\-int(), and comp\-\_\-descend\-\_\-int().

\index{general.\-h@{general.\-h}!vector\-\_\-sort\-\_\-real@{vector\-\_\-sort\-\_\-real}}
\index{vector\-\_\-sort\-\_\-real@{vector\-\_\-sort\-\_\-real}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-sort\-\_\-real}]{\setlength{\rightskip}{0pt plus 5cm}void vector\-\_\-sort\-\_\-real (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{v, }
\item[{{\bf int}}]{ascending}
\end{DoxyParamCaption}
)}\label{general_8h_a9fde1f7f7ed8b4124be7528106775c77}


Definition at line 243 of file general.\-c.



References comp\-\_\-ascend(), comp\-\_\-descend(), and real.

\index{general.\-h@{general.\-h}!vector\-\_\-subtract\-\_\-from@{vector\-\_\-subtract\-\_\-from}}
\index{vector\-\_\-subtract\-\_\-from@{vector\-\_\-subtract\-\_\-from}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-subtract\-\_\-from}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real}$\ast$ vector\-\_\-subtract\-\_\-from (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf real} $\ast$}]{y}
\end{DoxyParamCaption}
)}\label{general_8h_a9f63278e2ba937def96c6993c47da9c9}


Definition at line 82 of file general.\-c.

\index{general.\-h@{general.\-h}!vector\-\_\-subtract\-\_\-to@{vector\-\_\-subtract\-\_\-to}}
\index{vector\-\_\-subtract\-\_\-to@{vector\-\_\-subtract\-\_\-to}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-subtract\-\_\-to}]{\setlength{\rightskip}{0pt plus 5cm}{\bf real}$\ast$ vector\-\_\-subtract\-\_\-to (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{x, }
\item[{{\bf real} $\ast$}]{y}
\end{DoxyParamCaption}
)}\label{general_8h_af8a7b8dadd568eba633934a1ab8b2d19}


Definition at line 88 of file general.\-c.

\index{general.\-h@{general.\-h}!vector\-\_\-take@{vector\-\_\-take}}
\index{vector\-\_\-take@{vector\-\_\-take}!general.h@{general.\-h}}
\subsubsection[{vector\-\_\-take}]{\setlength{\rightskip}{0pt plus 5cm}void vector\-\_\-take (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{n, }
\item[{{\bf real} $\ast$}]{v, }
\item[{{\bf int}}]{m, }
\item[{{\bf int} $\ast$}]{p, }
\item[{{\bf real} $\ast$$\ast$}]{u}
\end{DoxyParamCaption}
)}\label{general_8h_a3902ec87b44bb85b8f25f66d26a02a53}


Definition at line 132 of file general.\-c.



References assert, M\-A\-L\-L\-O\-C, and real.

