@@ -9,6 +9,13 @@ In particular, this script uses the [loadtxt](https://docs.scipy.org/doc/numpy-1
...
@@ -9,6 +9,13 @@ In particular, this script uses the [loadtxt](https://docs.scipy.org/doc/numpy-1
and [savetxt](https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.savetxt.html) numpy functions, to read the data stored
and [savetxt](https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.savetxt.html) numpy functions, to read the data stored
in the [data.txt](data.txt) file, modify those and write the modified data into [data_double.txt](data_double.txt).
in the [data.txt](data.txt) file, modify those and write the modified data into [data_double.txt](data_double.txt).
## [callFortranRoutine.py](callFortranRoutine.py)
Perform the [Rutishauser-Kahan-Pal-Walker algorithm](https://link.springer.com/content/pdf/10.1007/BF01405565.pdf) to transform an arrow matrix (with non-zero elements
in the first row and column, and diagonal) into a symmetric trifdiagonal matrix.
It uses the [f2py](https://www.numfys.net/howto/F2PY/) sub-module of numpy to compile a fortran subroutine that can be called in python.