\section{jvector.h File Reference}
\label{jvector_h}\index{jvector.h@{jvector.h}}
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$signal.h$>$}\par
{\tt \#include $<$iostream.h$>$}\par
{\tt \#include $<$math.h$>$}\par
{\tt \#include "jsmisc.h"}\par
{\tt \#include "dynstring.h"}\par
{\tt \#include "ajiobin.h"}\par
{\tt \#include "streamoper.h"}\par


Include dependency graph for jvector.h:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=388pt]{jvector_h_incl}
\end{center}
\end{figure}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=405pt]{jvector_h_dep_incl}
\end{center}
\end{figure}
\subsection*{Compounds}
\begin{CompactItemize}
\item 
class {\bf j\-Vector}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf doublecompare} (const void $\ast$x, const void $\ast$y)
\item 
int {\bf binsearch} (const {\bf j\-Vector} \&v, double d)
\item 
int {\bf dcomp} (const void $\ast$x, const void $\ast$y)
\item 
void {\bf JVqsort} ({\bf j\-Vector} \&v)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
const int {\bf DEFAULTLEN} = 3
\end{CompactItemize}


\subsection{Function Documentation}
\index{jvector.h@{jvector.h}!JVqsort@{JVqsort}}
\index{JVqsort@{JVqsort}!jvector.h@{jvector.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void JVqsort ({\bf j\-Vector} \& {\em v})\hspace{0.3cm}{\tt  [inline]}}\label{jvector_h_a4}




Definition at line 329 of file jvector.h.\footnotesize\begin{verbatim}00329                          { qsort((void *) v.V, v.L, sizeof(double), dcomp); }
00330 \end{verbatim}\normalsize 
\index{jvector.h@{jvector.h}!binsearch@{binsearch}}
\index{binsearch@{binsearch}!jvector.h@{jvector.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int binsearch (const {\bf j\-Vector} \& {\em v}, double {\em d})\hspace{0.3cm}{\tt  [inline]}}\label{jvector_h_a2}




Definition at line 299 of file jvector.h.\footnotesize\begin{verbatim}00300 {
00301   // left index, right index, pivot, respectively.
00302   //
00303   int i=0;
00304   int j=v.L-1;
00305   int p;
00306 
00307   while((i<=j) && (j>=0))
00308     {
00309       p = (j+i)/2;
00310       if(d < v.V[p]) j = p-1;
00311       else if(d > v.V[p]) i = p+1;
00312       else return p;
00313     }
00314 \end{verbatim}\normalsize 
\index{jvector.h@{jvector.h}!dcomp@{dcomp}}
\index{dcomp@{dcomp}!jvector.h@{jvector.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int dcomp (const void $\ast$ {\em x}, const void $\ast$ {\em y})\hspace{0.3cm}{\tt  [inline]}}\label{jvector_h_a3}




Definition at line 319 of file jvector.h.\footnotesize\begin{verbatim}00320 {
00321   const double * X = (const double *) x;
00322   const double * Y = (const double *) y;
00323   if(*X < *Y) return -1;
00324   if(*X > *Y) return  1;
00325   return 0;
00326 \end{verbatim}\normalsize 
\index{jvector.h@{jvector.h}!doublecompare@{doublecompare}}
\index{doublecompare@{doublecompare}!jvector.h@{jvector.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int doublecompare (const void $\ast$ {\em x}, const void $\ast$ {\em y})}\label{jvector_h_a1}




\subsection{Variable Documentation}
\index{jvector.h@{jvector.h}!DEFAULTLEN@{DEFAULTLEN}}
\index{DEFAULTLEN@{DEFAULTLEN}!jvector.h@{jvector.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const int DEFAULTLEN = 3}\label{jvector_h_a0}




Definition at line 25 of file jvector.h.