\section{lib/sparse/general.c File Reference}
\label{general_8c}\index{lib/sparse/general.\-c@{lib/sparse/general.\-c}}
{\ttfamily \#include \char`\"{}general.\-h\char`\"{}}\\*
{\ttfamily \#include $<$errno.\-h$>$}\\*
Include dependency graph for general.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{general_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\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 
{\bf real} {\bf drand} ()
\item 
{\bf int} {\bf irand} ({\bf int} n)
\item 
{\bf int} $\ast$ {\bf random\-\_\-permutation} ({\bf int} n)
\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\-\_\-subtract\-\_\-to} ({\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\-\_\-print} (char $\ast${\bf s}, {\bf int} n, {\bf real} $\ast$x)
\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 
{\bf int} {\bf comp\-\_\-ascend} (const void $\ast${\bf s1}, const void $\ast$s2)
\item 
{\bf int} {\bf comp\-\_\-descend} (const void $\ast${\bf s1}, const void $\ast$s2)
\item 
{\bf int} {\bf comp\-\_\-descend\-\_\-int} (const void $\ast${\bf s1}, const void $\ast$s2)
\item 
{\bf int} {\bf comp\-\_\-ascend\-\_\-int} (const void $\ast${\bf s1}, const void $\ast$s2)
\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 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\-\_\-cropped} ({\bf real} $\ast$x, {\bf int} dim, {\bf int} i, {\bf int} j)
\item 
{\bf real} {\bf distance} ({\bf real} $\ast$x, {\bf int} dim, {\bf int} i, {\bf int} j)
\item 
{\bf 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 digits\-Q} (char $\ast${\bf s})
\item 
{\bf int} {\bf valid\-Q\-\_\-int\-\_\-string} (char $\ast$to\-\_\-convert, {\bf int} $\ast$v)
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\index{general.\-c@{general.\-c}!comp\-\_\-ascend@{comp\-\_\-ascend}}
\index{comp\-\_\-ascend@{comp\-\_\-ascend}!general.c@{general.\-c}}
\subsubsection[{comp\-\_\-ascend}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} comp\-\_\-ascend (
\begin{DoxyParamCaption}
\item[{const void $\ast$}]{s1, }
\item[{const void $\ast$}]{s2}
\end{DoxyParamCaption}
)}\label{general_8c_a25ca75ce520f5b1e9053f30353a46c8c}


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



References real.



Referenced by vector\-\_\-ordering(), and vector\-\_\-sort\-\_\-real().

\index{general.\-c@{general.\-c}!comp\-\_\-ascend\-\_\-int@{comp\-\_\-ascend\-\_\-int}}
\index{comp\-\_\-ascend\-\_\-int@{comp\-\_\-ascend\-\_\-int}!general.c@{general.\-c}}
\subsubsection[{comp\-\_\-ascend\-\_\-int}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} comp\-\_\-ascend\-\_\-int (
\begin{DoxyParamCaption}
\item[{const void $\ast$}]{s1, }
\item[{const void $\ast$}]{s2}
\end{DoxyParamCaption}
)}\label{general_8c_a2463ffb615df312f46b0cd3de1e5fb35}


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



Referenced by vector\-\_\-sort\-\_\-int().

\index{general.\-c@{general.\-c}!comp\-\_\-descend@{comp\-\_\-descend}}
\index{comp\-\_\-descend@{comp\-\_\-descend}!general.c@{general.\-c}}
\subsubsection[{comp\-\_\-descend}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} comp\-\_\-descend (
\begin{DoxyParamCaption}
\item[{const void $\ast$}]{s1, }
\item[{const void $\ast$}]{s2}
\end{DoxyParamCaption}
)}\label{general_8c_ad5dd921d3cf5243d32629fe69692209f}


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



References real.



Referenced by vector\-\_\-ordering(), and vector\-\_\-sort\-\_\-real().

\index{general.\-c@{general.\-c}!comp\-\_\-descend\-\_\-int@{comp\-\_\-descend\-\_\-int}}
\index{comp\-\_\-descend\-\_\-int@{comp\-\_\-descend\-\_\-int}!general.c@{general.\-c}}
\subsubsection[{comp\-\_\-descend\-\_\-int}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} comp\-\_\-descend\-\_\-int (
\begin{DoxyParamCaption}
\item[{const void $\ast$}]{s1, }
\item[{const void $\ast$}]{s2}
\end{DoxyParamCaption}
)}\label{general_8c_af38f4035ef629241b4dbe69bc67cd26d}


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



Referenced by vector\-\_\-sort\-\_\-int().

\index{general.\-c@{general.\-c}!digits\-Q@{digits\-Q}}
\index{digits\-Q@{digits\-Q}!general.c@{general.\-c}}
\subsubsection[{digits\-Q}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} digits\-Q (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s}
\end{DoxyParamCaption}
)}\label{general_8c_ac9128c76ad02ed5c74516c6783c528eb}


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

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


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



References dist(), and real.

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


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



References dist(), M\-A\-X, M\-I\-N\-D\-I\-S\-T, and real.

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


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.\-c@{general.\-c}!excute\-\_\-system\-\_\-command@{excute\-\_\-system\-\_\-command}}
\index{excute\-\_\-system\-\_\-command@{excute\-\_\-system\-\_\-command}!general.c@{general.\-c}}
\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_8c_a6c334a5ac6f0b8fe274da3e2ad26faef}


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

\index{general.\-c@{general.\-c}!excute\-\_\-system\-\_\-command3@{excute\-\_\-system\-\_\-command3}}
\index{excute\-\_\-system\-\_\-command3@{excute\-\_\-system\-\_\-command3}!general.c@{general.\-c}}
\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_8c_a1b3731fa9eb98513a526d5eb7cc193b4}


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

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


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



References assert.



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

\index{general.\-c@{general.\-c}!point\-\_\-distance@{point\-\_\-distance}}
\index{point\-\_\-distance@{point\-\_\-distance}!general.c@{general.\-c}}
\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_8c_ae4cc19c24bd9e799452756b8f452b109}


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



References dist(), and real.



Referenced by Quad\-Tree\-\_\-get\-\_\-supernodes\-\_\-internal().

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


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



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

\index{general.\-c@{general.\-c}!scale\-\_\-to\-\_\-box@{scale\-\_\-to\-\_\-box}}
\index{scale\-\_\-to\-\_\-box@{scale\-\_\-to\-\_\-box}!general.c@{general.\-c}}
\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_8c_ac01a97348c90f61762775dca4d61d5f1}


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



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



Referenced by uniform\-\_\-stress().

\index{general.\-c@{general.\-c}!strip\-\_\-dir@{strip\-\_\-dir}}
\index{strip\-\_\-dir@{strip\-\_\-dir}!general.c@{general.\-c}}
\subsubsection[{strip\-\_\-dir}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ strip\-\_\-dir (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s}
\end{DoxyParamCaption}
)}\label{general_8c_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.\-c@{general.\-c}!valid\-Q\-\_\-int\-\_\-string@{valid\-Q\-\_\-int\-\_\-string}}
\index{valid\-Q\-\_\-int\-\_\-string@{valid\-Q\-\_\-int\-\_\-string}!general.c@{general.\-c}}
\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_8c_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.\-c@{general.\-c}!vector\-\_\-add\-\_\-to@{vector\-\_\-add\-\_\-to}}
\index{vector\-\_\-add\-\_\-to@{vector\-\_\-add\-\_\-to}!general.c@{general.\-c}}
\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_8c_a5bb4c6784e34cf7a94da3ec23f0d9efe}


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

\index{general.\-c@{general.\-c}!vector\-\_\-float\-\_\-take@{vector\-\_\-float\-\_\-take}}
\index{vector\-\_\-float\-\_\-take@{vector\-\_\-float\-\_\-take}!general.c@{general.\-c}}
\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_8c_aa5a5f33a5361f56d4ea5b76a8655a45e}


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



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

\index{general.\-c@{general.\-c}!vector\-\_\-median@{vector\-\_\-median}}
\index{vector\-\_\-median@{vector\-\_\-median}!general.c@{general.\-c}}
\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_8c_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.\-c@{general.\-c}!vector\-\_\-ordering@{vector\-\_\-ordering}}
\index{vector\-\_\-ordering@{vector\-\_\-ordering}!general.c@{general.\-c}}
\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_8c_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.\-c@{general.\-c}!vector\-\_\-percentile@{vector\-\_\-percentile}}
\index{vector\-\_\-percentile@{vector\-\_\-percentile}!general.c@{general.\-c}}
\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_8c_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.\-c@{general.\-c}!vector\-\_\-print@{vector\-\_\-print}}
\index{vector\-\_\-print@{vector\-\_\-print}!general.c@{general.\-c}}
\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_8c_a450cb2ce16b128227160c50668e2baf9}


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

\index{general.\-c@{general.\-c}!vector\-\_\-product@{vector\-\_\-product}}
\index{vector\-\_\-product@{vector\-\_\-product}!general.c@{general.\-c}}
\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_8c_ab001835c66998293bf7d8937e77e9917}


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



References real.



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

\index{general.\-c@{general.\-c}!vector\-\_\-saxpy@{vector\-\_\-saxpy}}
\index{vector\-\_\-saxpy@{vector\-\_\-saxpy}!general.c@{general.\-c}}
\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_8c_a2f4b4b8b03a78e9f20dd27fca5d0198a}


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

\index{general.\-c@{general.\-c}!vector\-\_\-saxpy2@{vector\-\_\-saxpy2}}
\index{vector\-\_\-saxpy2@{vector\-\_\-saxpy2}!general.c@{general.\-c}}
\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_8c_aa44ee7f37f62b7cfd9780019a034ebe7}


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

\index{general.\-c@{general.\-c}!vector\-\_\-sort\-\_\-int@{vector\-\_\-sort\-\_\-int}}
\index{vector\-\_\-sort\-\_\-int@{vector\-\_\-sort\-\_\-int}!general.c@{general.\-c}}
\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_8c_ac8efb5c9a9f15fe2c779b803bc775cb5}


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



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

\index{general.\-c@{general.\-c}!vector\-\_\-sort\-\_\-real@{vector\-\_\-sort\-\_\-real}}
\index{vector\-\_\-sort\-\_\-real@{vector\-\_\-sort\-\_\-real}!general.c@{general.\-c}}
\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_8c_a9fde1f7f7ed8b4124be7528106775c77}


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



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

\index{general.\-c@{general.\-c}!vector\-\_\-subtract\-\_\-from@{vector\-\_\-subtract\-\_\-from}}
\index{vector\-\_\-subtract\-\_\-from@{vector\-\_\-subtract\-\_\-from}!general.c@{general.\-c}}
\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_8c_a9f63278e2ba937def96c6993c47da9c9}


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

\index{general.\-c@{general.\-c}!vector\-\_\-subtract\-\_\-to@{vector\-\_\-subtract\-\_\-to}}
\index{vector\-\_\-subtract\-\_\-to@{vector\-\_\-subtract\-\_\-to}!general.c@{general.\-c}}
\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_8c_af8a7b8dadd568eba633934a1ab8b2d19}


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

\index{general.\-c@{general.\-c}!vector\-\_\-take@{vector\-\_\-take}}
\index{vector\-\_\-take@{vector\-\_\-take}!general.c@{general.\-c}}
\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_8c_a3902ec87b44bb85b8f25f66d26a02a53}


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



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

