next up previous contents index
Next: LA_SPSVX / LA_HPSVX Up: Examples Previous: Examples   Contents   Index

Example 2 (from Program LA_SPSV_EXAMPLE)

The results below are computed with $\epsilon = 1.19209 \times 10^{-7}$.

\begin{displaymath}
A = \left( \begin{array}{rrrrr}
0 & 2 & 3 & 5 & 4 \\
2 &...
...egin{array}{r}
14 \\ 19 \\ 63 \\ 69 \\ 96 \end{array} \right)
\end{displaymath}

Arrays AP and B on entry:

\begin{displaymath}
\begin{array}{c} {\bf AP} \\
\begin{array}{\vert rrrrrrrr...
...e
14 \\ 19 \\ 63 \\ 69 \\ 96 \\ \hline \end{array} \end{array}\end{displaymath}

The call:
CALL LA_SPSV( AP, B,
'L', IPIV )

AP, B and IPIV on exit:

\begin{displaymath}
\begin{array}{c} {\bf AP} \\
\begin{array}{l}
\begin{arr...
...^{-1} & -4.01098 \\ \hline
\end{array} \end{array} \end{array}\end{displaymath}


\begin{displaymath}
\begin{array}{c} {\bf B} \\
\begin{array}{\vert r\vert} \...
...line -4 \\ -4 \\ 3 \\ 4 \\ 5 \\ \hline
\end{array} \end{array}\end{displaymath}

The solution of the system $A\,x = b$ is:

\begin{displaymath}x = \left( \begin{array}{r}
1.00000 \\ 1.00000 \\ 1.00000 \\ 1.00000 \\ 1.00000
\end{array} \right). \end{displaymath}



Susan Blackford 2001-08-19