Commit 9986baca authored by Werner Jürgens's avatar Werner Jürgens
Browse files

WJ: Explained the structure of binary test files.

parent b1ac6e5d
...@@ -159,19 +159,39 @@ other piece of code. ...@@ -159,19 +159,39 @@ other piece of code.
arguments 2 and 3 are the names of the files which contain matrices arguments 2 and 3 are the names of the files which contain matrices
A and B. A and B.
The record structure of the files containing matrices is as follows: The structure of the matrix files for read_real and read_real_gen
depends on the format of the files:
- 1st line containing matrix size
- then following the upper half of the matrix in column-major * ASCII format (both read_real and read_real_gen):
(i.e. Fortran) order, one number per line:
a(1,1) The files must contain the following lines:
a(1,2)
a(2,2) - 1st line containing the matrix size
... - then following the upper half of the matrix in column-major
a(1,i) (i.e. Fortran) order, one number per line:
... a(1,1)
a(i,i) a(1,2)
... a(2,2)
a(1,n) ...
... a(1,i)
a(n,n) ...
a(i,i)
...
a(1,n)
...
a(n,n)
* Binary format (read_real_gen only):
The files must contain the following records:
- 1st record: matrix size (type integer)
- 2nd record: a(1,1)
- 3rd record: a(1,2) a(2,2)
- ...
- ... a(1,i) ... a(i,i)
- ...
- ... a(1,n) ... a(n,n)
The type of the matrix elements a(i,j) is real*8.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment