An annotated example of an input file for testing the generalized singular value decomposition driver routine is shown below.
GSV: Data file for testing Generalized SVD routines 8 Number of values of M, P, N 0 5 9 10 20 12 12 40 Values of M (row dimension) 4 0 12 14 10 10 20 15 Values of P (row dimension) 3 10 15 12 8 20 8 20 Values of N (column dimension) 40.0 Threshold value of test ratio. T Put T to test the error exits 1 Code to interpret the seed GSV 8 List matrix types on next line if 0 < NTYPES < 8
The first line of the input file must contain the characters GSV in columns 1-3. Lines 2-9 are read using list-directed input and specify the following values:
| line 2: | The number of values M, P, and N |
| line 3: | Values of M (row dimension) |
| line 4: | Values of P (row dimension) |
| line 5: | Values of N (column dimension) |
| line 6: | THRESH, the threshold value for the test ratios |
| line 7: | TSTERR, flag to test the error exits |
| line 8: | An integer code to interpret the random number seed. |
| = 0: Set the seed to a default value before each run | |
| = 1: Initialize the seed to a default value only before the first run | |
| = 2: Like 1, but use the seed values on the next line | |
| line 9 : | If line 8 was 2, four integer values for the random number seed |
| Otherwise, the path GSV followed by the number of matrix types NTYPES | |
| line 10: | If 535#535, then specifies matrix types to be tested. |