1: \begin{definition}[see~\cite{NSScS99}, Definition~A.18]\label{def-sf}
2: The \textit{spectral flow} of the family $\{B_t\}$, $t\in[0,1]$, is
3: the number\footnote{The right-hand side of formula~\eqref{e4} is
4: independent of the choice of the partition $\{t_j\}$ and the
5: numbers $\gamma_j$ by Theorem~A.19 in~\cite{NSScS99}.}
6: \begin{equation}\label{e4}
7: \operatorname{sf}\{B_t\}
8: =\sum_{j=1}^nm_j\operatorname{sign}(\gamma_j-\gamma_{j+1}),
9: \end{equation}
10: where $m_j$ is the number of eigenvalues \textup(counting
11: multiplicities\textup) of the operator $B_{t_j}$ on the interval
12: between $\gamma_j$ and $\gamma_{j+1}$.
13: \end{definition}