Example program for dsprfs
This example solves the system of equations
A
X
=
B
using iterative refinement and to compute the forward and backward error bounds, where
A
=
2.07
3.87
4.20
-
1.15
3.87
-
0.21
1.87
0.63
4.20
1.87
1.15
2.06
-
1.15
0.63
2.06
-
1.81
and
B
=
-
9.50
27.85
-
8.38
9.90
-
6.07
19.25
-
0.96
3.93
.
Here
A
is symmetric indefinite, stored in packed form, and must first be factorized by
dsptrf
.
f90 source code
Input data file
Expected results