PageRenderTime 67ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/structural/supporting_matl_misc_and_old/support/LAPACK/lapack-3.4.0/TESTING/EIG/dchkee.f

https://bitbucket.org/slawton/windturbinemdo-stevebitb
FORTRAN Legacy | 2455 lines | 978 code | 0 blank | 1477 comment | 0 complexity | e9380d89d5c4fd0b795f8e6c759bb6ba MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause
  1. *> \brief \b DCHKEE
  2. *
  3. * =========== DOCUMENTATION ===========
  4. *
  5. * Online html documentation available at
  6. * http://www.netlib.org/lapack/explore-html/
  7. *
  8. * Definition:
  9. * ===========
  10. *
  11. * PROGRAM DCHKEE
  12. *
  13. *
  14. *> \par Purpose:
  15. * =============
  16. *>
  17. *> \verbatim
  18. *>
  19. *> DCHKEE tests the DOUBLE PRECISION LAPACK subroutines for the matrix
  20. *> eigenvalue problem. The test paths in this version are
  21. *>
  22. *> NEP (Nonsymmetric Eigenvalue Problem):
  23. *> Test DGEHRD, DORGHR, DHSEQR, DTREVC, DHSEIN, and DORMHR
  24. *>
  25. *> SEP (Symmetric Eigenvalue Problem):
  26. *> Test DSYTRD, DORGTR, DSTEQR, DSTERF, DSTEIN, DSTEDC,
  27. *> and drivers DSYEV(X), DSBEV(X), DSPEV(X), DSTEV(X),
  28. *> DSYEVD, DSBEVD, DSPEVD, DSTEVD
  29. *>
  30. *> SVD (Singular Value Decomposition):
  31. *> Test DGEBRD, DORGBR, DBDSQR, DBDSDC
  32. *> and the drivers DGESVD, DGESDD
  33. *>
  34. *> DEV (Nonsymmetric Eigenvalue/eigenvector Driver):
  35. *> Test DGEEV
  36. *>
  37. *> DES (Nonsymmetric Schur form Driver):
  38. *> Test DGEES
  39. *>
  40. *> DVX (Nonsymmetric Eigenvalue/eigenvector Expert Driver):
  41. *> Test DGEEVX
  42. *>
  43. *> DSX (Nonsymmetric Schur form Expert Driver):
  44. *> Test DGEESX
  45. *>
  46. *> DGG (Generalized Nonsymmetric Eigenvalue Problem):
  47. *> Test DGGHRD, DGGBAL, DGGBAK, DHGEQZ, and DTGEVC
  48. *> and the driver routines DGEGS and DGEGV
  49. *>
  50. *> DGS (Generalized Nonsymmetric Schur form Driver):
  51. *> Test DGGES
  52. *>
  53. *> DGV (Generalized Nonsymmetric Eigenvalue/eigenvector Driver):
  54. *> Test DGGEV
  55. *>
  56. *> DGX (Generalized Nonsymmetric Schur form Expert Driver):
  57. *> Test DGGESX
  58. *>
  59. *> DXV (Generalized Nonsymmetric Eigenvalue/eigenvector Expert Driver):
  60. *> Test DGGEVX
  61. *>
  62. *> DSG (Symmetric Generalized Eigenvalue Problem):
  63. *> Test DSYGST, DSYGV, DSYGVD, DSYGVX, DSPGST, DSPGV, DSPGVD,
  64. *> DSPGVX, DSBGST, DSBGV, DSBGVD, and DSBGVX
  65. *>
  66. *> DSB (Symmetric Band Eigenvalue Problem):
  67. *> Test DSBTRD
  68. *>
  69. *> DBB (Band Singular Value Decomposition):
  70. *> Test DGBBRD
  71. *>
  72. *> DEC (Eigencondition estimation):
  73. *> Test DLALN2, DLASY2, DLAEQU, DLAEXC, DTRSYL, DTREXC, DTRSNA,
  74. *> DTRSEN, and DLAQTR
  75. *>
  76. *> DBL (Balancing a general matrix)
  77. *> Test DGEBAL
  78. *>
  79. *> DBK (Back transformation on a balanced matrix)
  80. *> Test DGEBAK
  81. *>
  82. *> DGL (Balancing a matrix pair)
  83. *> Test DGGBAL
  84. *>
  85. *> DGK (Back transformation on a matrix pair)
  86. *> Test DGGBAK
  87. *>
  88. *> GLM (Generalized Linear Regression Model):
  89. *> Tests DGGGLM
  90. *>
  91. *> GQR (Generalized QR and RQ factorizations):
  92. *> Tests DGGQRF and DGGRQF
  93. *>
  94. *> GSV (Generalized Singular Value Decomposition):
  95. *> Tests DGGSVD, DGGSVP, DTGSJA, DLAGS2, DLAPLL, and DLAPMT
  96. *>
  97. *> CSD (CS decomposition):
  98. *> Tests DORCSD
  99. *>
  100. *> LSE (Constrained Linear Least Squares):
  101. *> Tests DGGLSE
  102. *>
  103. *> Each test path has a different set of inputs, but the data sets for
  104. *> the driver routines xEV, xES, xVX, and xSX can be concatenated in a
  105. *> single input file. The first line of input should contain one of the
  106. *> 3-character path names in columns 1-3. The number of remaining lines
  107. *> depends on what is found on the first line.
  108. *>
  109. *> The number of matrix types used in testing is often controllable from
  110. *> the input file. The number of matrix types for each path, and the
  111. *> test routine that describes them, is as follows:
  112. *>
  113. *> Path name(s) Types Test routine
  114. *>
  115. *> DHS or NEP 21 DCHKHS
  116. *> DST or SEP 21 DCHKST (routines)
  117. *> 18 DDRVST (drivers)
  118. *> DBD or SVD 16 DCHKBD (routines)
  119. *> 5 DDRVBD (drivers)
  120. *> DEV 21 DDRVEV
  121. *> DES 21 DDRVES
  122. *> DVX 21 DDRVVX
  123. *> DSX 21 DDRVSX
  124. *> DGG 26 DCHKGG (routines)
  125. *> 26 DDRVGG (drivers)
  126. *> DGS 26 DDRGES
  127. *> DGX 5 DDRGSX
  128. *> DGV 26 DDRGEV
  129. *> DXV 2 DDRGVX
  130. *> DSG 21 DDRVSG
  131. *> DSB 15 DCHKSB
  132. *> DBB 15 DCHKBB
  133. *> DEC - DCHKEC
  134. *> DBL - DCHKBL
  135. *> DBK - DCHKBK
  136. *> DGL - DCHKGL
  137. *> DGK - DCHKGK
  138. *> GLM 8 DCKGLM
  139. *> GQR 8 DCKGQR
  140. *> GSV 8 DCKGSV
  141. *> CSD 3 DCKCSD
  142. *> LSE 8 DCKLSE
  143. *>
  144. *>-----------------------------------------------------------------------
  145. *>
  146. *> NEP input file:
  147. *>
  148. *> line 2: NN, INTEGER
  149. *> Number of values of N.
  150. *>
  151. *> line 3: NVAL, INTEGER array, dimension (NN)
  152. *> The values for the matrix dimension N.
  153. *>
  154. *> line 4: NPARMS, INTEGER
  155. *> Number of values of the parameters NB, NBMIN, NX, NS, and
  156. *> MAXB.
  157. *>
  158. *> line 5: NBVAL, INTEGER array, dimension (NPARMS)
  159. *> The values for the blocksize NB.
  160. *>
  161. *> line 6: NBMIN, INTEGER array, dimension (NPARMS)
  162. *> The values for the minimum blocksize NBMIN.
  163. *>
  164. *> line 7: NXVAL, INTEGER array, dimension (NPARMS)
  165. *> The values for the crossover point NX.
  166. *>
  167. *> line 8: INMIN, INTEGER array, dimension (NPARMS)
  168. *> LAHQR vs TTQRE crossover point, >= 11
  169. *>
  170. *> line 9: INWIN, INTEGER array, dimension (NPARMS)
  171. *> recommended deflation window size
  172. *>
  173. *> line 10: INIBL, INTEGER array, dimension (NPARMS)
  174. *> nibble crossover point
  175. *>
  176. *> line 11: ISHFTS, INTEGER array, dimension (NPARMS)
  177. *> number of simultaneous shifts)
  178. *>
  179. *> line 12: IACC22, INTEGER array, dimension (NPARMS)
  180. *> select structured matrix multiply: 0, 1 or 2)
  181. *>
  182. *> line 13: THRESH
  183. *> Threshold value for the test ratios. Information will be
  184. *> printed about each test for which the test ratio is greater
  185. *> than or equal to the threshold. To have all of the test
  186. *> ratios printed, use THRESH = 0.0 .
  187. *>
  188. *> line 14: NEWSD, INTEGER
  189. *> A code indicating how to set the random number seed.
  190. *> = 0: Set the seed to a default value before each run
  191. *> = 1: Initialize the seed to a default value only before the
  192. *> first run
  193. *> = 2: Like 1, but use the seed values on the next line
  194. *>
  195. *> If line 14 was 2:
  196. *>
  197. *> line 15: INTEGER array, dimension (4)
  198. *> Four integer values for the random number seed.
  199. *>
  200. *> lines 15-EOF: The remaining lines occur in sets of 1 or 2 and allow
  201. *> the user to specify the matrix types. Each line contains
  202. *> a 3-character path name in columns 1-3, and the number
  203. *> of matrix types must be the first nonblank item in columns
  204. *> 4-80. If the number of matrix types is at least 1 but is
  205. *> less than the maximum number of possible types, a second
  206. *> line will be read to get the numbers of the matrix types to
  207. *> be used. For example,
  208. *> NEP 21
  209. *> requests all of the matrix types for the nonsymmetric
  210. *> eigenvalue problem, while
  211. *> NEP 4
  212. *> 9 10 11 12
  213. *> requests only matrices of type 9, 10, 11, and 12.
  214. *>
  215. *> The valid 3-character path names are 'NEP' or 'SHS' for the
  216. *> nonsymmetric eigenvalue routines.
  217. *>
  218. *>-----------------------------------------------------------------------
  219. *>
  220. *> SEP or DSG input file:
  221. *>
  222. *> line 2: NN, INTEGER
  223. *> Number of values of N.
  224. *>
  225. *> line 3: NVAL, INTEGER array, dimension (NN)
  226. *> The values for the matrix dimension N.
  227. *>
  228. *> line 4: NPARMS, INTEGER
  229. *> Number of values of the parameters NB, NBMIN, and NX.
  230. *>
  231. *> line 5: NBVAL, INTEGER array, dimension (NPARMS)
  232. *> The values for the blocksize NB.
  233. *>
  234. *> line 6: NBMIN, INTEGER array, dimension (NPARMS)
  235. *> The values for the minimum blocksize NBMIN.
  236. *>
  237. *> line 7: NXVAL, INTEGER array, dimension (NPARMS)
  238. *> The values for the crossover point NX.
  239. *>
  240. *> line 8: THRESH
  241. *> Threshold value for the test ratios. Information will be
  242. *> printed about each test for which the test ratio is greater
  243. *> than or equal to the threshold.
  244. *>
  245. *> line 9: TSTCHK, LOGICAL
  246. *> Flag indicating whether or not to test the LAPACK routines.
  247. *>
  248. *> line 10: TSTDRV, LOGICAL
  249. *> Flag indicating whether or not to test the driver routines.
  250. *>
  251. *> line 11: TSTERR, LOGICAL
  252. *> Flag indicating whether or not to test the error exits for
  253. *> the LAPACK routines and driver routines.
  254. *>
  255. *> line 12: NEWSD, INTEGER
  256. *> A code indicating how to set the random number seed.
  257. *> = 0: Set the seed to a default value before each run
  258. *> = 1: Initialize the seed to a default value only before the
  259. *> first run
  260. *> = 2: Like 1, but use the seed values on the next line
  261. *>
  262. *> If line 12 was 2:
  263. *>
  264. *> line 13: INTEGER array, dimension (4)
  265. *> Four integer values for the random number seed.
  266. *>
  267. *> lines 13-EOF: Lines specifying matrix types, as for NEP.
  268. *> The 3-character path names are 'SEP' or 'SST' for the
  269. *> symmetric eigenvalue routines and driver routines, and
  270. *> 'DSG' for the routines for the symmetric generalized
  271. *> eigenvalue problem.
  272. *>
  273. *>-----------------------------------------------------------------------
  274. *>
  275. *> SVD input file:
  276. *>
  277. *> line 2: NN, INTEGER
  278. *> Number of values of M and N.
  279. *>
  280. *> line 3: MVAL, INTEGER array, dimension (NN)
  281. *> The values for the matrix row dimension M.
  282. *>
  283. *> line 4: NVAL, INTEGER array, dimension (NN)
  284. *> The values for the matrix column dimension N.
  285. *>
  286. *> line 5: NPARMS, INTEGER
  287. *> Number of values of the parameter NB, NBMIN, NX, and NRHS.
  288. *>
  289. *> line 6: NBVAL, INTEGER array, dimension (NPARMS)
  290. *> The values for the blocksize NB.
  291. *>
  292. *> line 7: NBMIN, INTEGER array, dimension (NPARMS)
  293. *> The values for the minimum blocksize NBMIN.
  294. *>
  295. *> line 8: NXVAL, INTEGER array, dimension (NPARMS)
  296. *> The values for the crossover point NX.
  297. *>
  298. *> line 9: NSVAL, INTEGER array, dimension (NPARMS)
  299. *> The values for the number of right hand sides NRHS.
  300. *>
  301. *> line 10: THRESH
  302. *> Threshold value for the test ratios. Information will be
  303. *> printed about each test for which the test ratio is greater
  304. *> than or equal to the threshold.
  305. *>
  306. *> line 11: TSTCHK, LOGICAL
  307. *> Flag indicating whether or not to test the LAPACK routines.
  308. *>
  309. *> line 12: TSTDRV, LOGICAL
  310. *> Flag indicating whether or not to test the driver routines.
  311. *>
  312. *> line 13: TSTERR, LOGICAL
  313. *> Flag indicating whether or not to test the error exits for
  314. *> the LAPACK routines and driver routines.
  315. *>
  316. *> line 14: NEWSD, INTEGER
  317. *> A code indicating how to set the random number seed.
  318. *> = 0: Set the seed to a default value before each run
  319. *> = 1: Initialize the seed to a default value only before the
  320. *> first run
  321. *> = 2: Like 1, but use the seed values on the next line
  322. *>
  323. *> If line 14 was 2:
  324. *>
  325. *> line 15: INTEGER array, dimension (4)
  326. *> Four integer values for the random number seed.
  327. *>
  328. *> lines 15-EOF: Lines specifying matrix types, as for NEP.
  329. *> The 3-character path names are 'SVD' or 'SBD' for both the
  330. *> SVD routines and the SVD driver routines.
  331. *>
  332. *>-----------------------------------------------------------------------
  333. *>
  334. *> DEV and DES data files:
  335. *>
  336. *> line 1: 'DEV' or 'DES' in columns 1 to 3.
  337. *>
  338. *> line 2: NSIZES, INTEGER
  339. *> Number of sizes of matrices to use. Should be at least 0
  340. *> and at most 20. If NSIZES = 0, no testing is done
  341. *> (although the remaining 3 lines are still read).
  342. *>
  343. *> line 3: NN, INTEGER array, dimension(NSIZES)
  344. *> Dimensions of matrices to be tested.
  345. *>
  346. *> line 4: NB, NBMIN, NX, NS, NBCOL, INTEGERs
  347. *> These integer parameters determine how blocking is done
  348. *> (see ILAENV for details)
  349. *> NB : block size
  350. *> NBMIN : minimum block size
  351. *> NX : minimum dimension for blocking
  352. *> NS : number of shifts in xHSEQR
  353. *> NBCOL : minimum column dimension for blocking
  354. *>
  355. *> line 5: THRESH, REAL
  356. *> The test threshold against which computed residuals are
  357. *> compared. Should generally be in the range from 10. to 20.
  358. *> If it is 0., all test case data will be printed.
  359. *>
  360. *> line 6: TSTERR, LOGICAL
  361. *> Flag indicating whether or not to test the error exits.
  362. *>
  363. *> line 7: NEWSD, INTEGER
  364. *> A code indicating how to set the random number seed.
  365. *> = 0: Set the seed to a default value before each run
  366. *> = 1: Initialize the seed to a default value only before the
  367. *> first run
  368. *> = 2: Like 1, but use the seed values on the next line
  369. *>
  370. *> If line 7 was 2:
  371. *>
  372. *> line 8: INTEGER array, dimension (4)
  373. *> Four integer values for the random number seed.
  374. *>
  375. *> lines 9 and following: Lines specifying matrix types, as for NEP.
  376. *> The 3-character path name is 'DEV' to test SGEEV, or
  377. *> 'DES' to test SGEES.
  378. *>
  379. *>-----------------------------------------------------------------------
  380. *>
  381. *> The DVX data has two parts. The first part is identical to DEV,
  382. *> and the second part consists of test matrices with precomputed
  383. *> solutions.
  384. *>
  385. *> line 1: 'DVX' in columns 1-3.
  386. *>
  387. *> line 2: NSIZES, INTEGER
  388. *> If NSIZES = 0, no testing of randomly generated examples
  389. *> is done, but any precomputed examples are tested.
  390. *>
  391. *> line 3: NN, INTEGER array, dimension(NSIZES)
  392. *>
  393. *> line 4: NB, NBMIN, NX, NS, NBCOL, INTEGERs
  394. *>
  395. *> line 5: THRESH, REAL
  396. *>
  397. *> line 6: TSTERR, LOGICAL
  398. *>
  399. *> line 7: NEWSD, INTEGER
  400. *>
  401. *> If line 7 was 2:
  402. *>
  403. *> line 8: INTEGER array, dimension (4)
  404. *>
  405. *> lines 9 and following: The first line contains 'DVX' in columns 1-3
  406. *> followed by the number of matrix types, possibly with
  407. *> a second line to specify certain matrix types.
  408. *> If the number of matrix types = 0, no testing of randomly
  409. *> generated examples is done, but any precomputed examples
  410. *> are tested.
  411. *>
  412. *> remaining lines : Each matrix is stored on 1+2*N lines, where N is
  413. *> its dimension. The first line contains the dimension (a
  414. *> single integer). The next N lines contain the matrix, one
  415. *> row per line. The last N lines correspond to each
  416. *> eigenvalue. Each of these last N lines contains 4 real
  417. *> values: the real part of the eigenvalue, the imaginary
  418. *> part of the eigenvalue, the reciprocal condition number of
  419. *> the eigenvalues, and the reciprocal condition number of the
  420. *> eigenvector. The end of data is indicated by dimension N=0.
  421. *> Even if no data is to be tested, there must be at least one
  422. *> line containing N=0.
  423. *>
  424. *>-----------------------------------------------------------------------
  425. *>
  426. *> The DSX data is like DVX. The first part is identical to DEV, and the
  427. *> second part consists of test matrices with precomputed solutions.
  428. *>
  429. *> line 1: 'DSX' in columns 1-3.
  430. *>
  431. *> line 2: NSIZES, INTEGER
  432. *> If NSIZES = 0, no testing of randomly generated examples
  433. *> is done, but any precomputed examples are tested.
  434. *>
  435. *> line 3: NN, INTEGER array, dimension(NSIZES)
  436. *>
  437. *> line 4: NB, NBMIN, NX, NS, NBCOL, INTEGERs
  438. *>
  439. *> line 5: THRESH, REAL
  440. *>
  441. *> line 6: TSTERR, LOGICAL
  442. *>
  443. *> line 7: NEWSD, INTEGER
  444. *>
  445. *> If line 7 was 2:
  446. *>
  447. *> line 8: INTEGER array, dimension (4)
  448. *>
  449. *> lines 9 and following: The first line contains 'DSX' in columns 1-3
  450. *> followed by the number of matrix types, possibly with
  451. *> a second line to specify certain matrix types.
  452. *> If the number of matrix types = 0, no testing of randomly
  453. *> generated examples is done, but any precomputed examples
  454. *> are tested.
  455. *>
  456. *> remaining lines : Each matrix is stored on 3+N lines, where N is its
  457. *> dimension. The first line contains the dimension N and the
  458. *> dimension M of an invariant subspace. The second line
  459. *> contains M integers, identifying the eigenvalues in the
  460. *> invariant subspace (by their position in a list of
  461. *> eigenvalues ordered by increasing real part). The next N
  462. *> lines contain the matrix. The last line contains the
  463. *> reciprocal condition number for the average of the selected
  464. *> eigenvalues, and the reciprocal condition number for the
  465. *> corresponding right invariant subspace. The end of data is
  466. *> indicated by a line containing N=0 and M=0. Even if no data
  467. *> is to be tested, there must be at least one line containing
  468. *> N=0 and M=0.
  469. *>
  470. *>-----------------------------------------------------------------------
  471. *>
  472. *> DGG input file:
  473. *>
  474. *> line 2: NN, INTEGER
  475. *> Number of values of N.
  476. *>
  477. *> line 3: NVAL, INTEGER array, dimension (NN)
  478. *> The values for the matrix dimension N.
  479. *>
  480. *> line 4: NPARMS, INTEGER
  481. *> Number of values of the parameters NB, NBMIN, NS, MAXB, and
  482. *> NBCOL.
  483. *>
  484. *> line 5: NBVAL, INTEGER array, dimension (NPARMS)
  485. *> The values for the blocksize NB.
  486. *>
  487. *> line 6: NBMIN, INTEGER array, dimension (NPARMS)
  488. *> The values for NBMIN, the minimum row dimension for blocks.
  489. *>
  490. *> line 7: NSVAL, INTEGER array, dimension (NPARMS)
  491. *> The values for the number of shifts.
  492. *>
  493. *> line 8: MXBVAL, INTEGER array, dimension (NPARMS)
  494. *> The values for MAXB, used in determining minimum blocksize.
  495. *>
  496. *> line 9: NBCOL, INTEGER array, dimension (NPARMS)
  497. *> The values for NBCOL, the minimum column dimension for
  498. *> blocks.
  499. *>
  500. *> line 10: THRESH
  501. *> Threshold value for the test ratios. Information will be
  502. *> printed about each test for which the test ratio is greater
  503. *> than or equal to the threshold.
  504. *>
  505. *> line 11: TSTCHK, LOGICAL
  506. *> Flag indicating whether or not to test the LAPACK routines.
  507. *>
  508. *> line 12: TSTDRV, LOGICAL
  509. *> Flag indicating whether or not to test the driver routines.
  510. *>
  511. *> line 13: TSTERR, LOGICAL
  512. *> Flag indicating whether or not to test the error exits for
  513. *> the LAPACK routines and driver routines.
  514. *>
  515. *> line 14: NEWSD, INTEGER
  516. *> A code indicating how to set the random number seed.
  517. *> = 0: Set the seed to a default value before each run
  518. *> = 1: Initialize the seed to a default value only before the
  519. *> first run
  520. *> = 2: Like 1, but use the seed values on the next line
  521. *>
  522. *> If line 14 was 2:
  523. *>
  524. *> line 15: INTEGER array, dimension (4)
  525. *> Four integer values for the random number seed.
  526. *>
  527. *> lines 15-EOF: Lines specifying matrix types, as for NEP.
  528. *> The 3-character path name is 'DGG' for the generalized
  529. *> eigenvalue problem routines and driver routines.
  530. *>
  531. *>-----------------------------------------------------------------------
  532. *>
  533. *> DGS and DGV input files:
  534. *>
  535. *> line 1: 'DGS' or 'DGV' in columns 1 to 3.
  536. *>
  537. *> line 2: NN, INTEGER
  538. *> Number of values of N.
  539. *>
  540. *> line 3: NVAL, INTEGER array, dimension(NN)
  541. *> Dimensions of matrices to be tested.
  542. *>
  543. *> line 4: NB, NBMIN, NX, NS, NBCOL, INTEGERs
  544. *> These integer parameters determine how blocking is done
  545. *> (see ILAENV for details)
  546. *> NB : block size
  547. *> NBMIN : minimum block size
  548. *> NX : minimum dimension for blocking
  549. *> NS : number of shifts in xHGEQR
  550. *> NBCOL : minimum column dimension for blocking
  551. *>
  552. *> line 5: THRESH, REAL
  553. *> The test threshold against which computed residuals are
  554. *> compared. Should generally be in the range from 10. to 20.
  555. *> If it is 0., all test case data will be printed.
  556. *>
  557. *> line 6: TSTERR, LOGICAL
  558. *> Flag indicating whether or not to test the error exits.
  559. *>
  560. *> line 7: NEWSD, INTEGER
  561. *> A code indicating how to set the random number seed.
  562. *> = 0: Set the seed to a default value before each run
  563. *> = 1: Initialize the seed to a default value only before the
  564. *> first run
  565. *> = 2: Like 1, but use the seed values on the next line
  566. *>
  567. *> If line 17 was 2:
  568. *>
  569. *> line 7: INTEGER array, dimension (4)
  570. *> Four integer values for the random number seed.
  571. *>
  572. *> lines 7-EOF: Lines specifying matrix types, as for NEP.
  573. *> The 3-character path name is 'DGS' for the generalized
  574. *> eigenvalue problem routines and driver routines.
  575. *>
  576. *>-----------------------------------------------------------------------
  577. *>
  578. *> DXV input files:
  579. *>
  580. *> line 1: 'DXV' in columns 1 to 3.
  581. *>
  582. *> line 2: N, INTEGER
  583. *> Value of N.
  584. *>
  585. *> line 3: NB, NBMIN, NX, NS, NBCOL, INTEGERs
  586. *> These integer parameters determine how blocking is done
  587. *> (see ILAENV for details)
  588. *> NB : block size
  589. *> NBMIN : minimum block size
  590. *> NX : minimum dimension for blocking
  591. *> NS : number of shifts in xHGEQR
  592. *> NBCOL : minimum column dimension for blocking
  593. *>
  594. *> line 4: THRESH, REAL
  595. *> The test threshold against which computed residuals are
  596. *> compared. Should generally be in the range from 10. to 20.
  597. *> Information will be printed about each test for which the
  598. *> test ratio is greater than or equal to the threshold.
  599. *>
  600. *> line 5: TSTERR, LOGICAL
  601. *> Flag indicating whether or not to test the error exits for
  602. *> the LAPACK routines and driver routines.
  603. *>
  604. *> line 6: NEWSD, INTEGER
  605. *> A code indicating how to set the random number seed.
  606. *> = 0: Set the seed to a default value before each run
  607. *> = 1: Initialize the seed to a default value only before the
  608. *> first run
  609. *> = 2: Like 1, but use the seed values on the next line
  610. *>
  611. *> If line 6 was 2:
  612. *>
  613. *> line 7: INTEGER array, dimension (4)
  614. *> Four integer values for the random number seed.
  615. *>
  616. *> If line 2 was 0:
  617. *>
  618. *> line 7-EOF: Precomputed examples are tested.
  619. *>
  620. *> remaining lines : Each example is stored on 3+2*N lines, where N is
  621. *> its dimension. The first line contains the dimension (a
  622. *> single integer). The next N lines contain the matrix A, one
  623. *> row per line. The next N lines contain the matrix B. The
  624. *> next line contains the reciprocals of the eigenvalue
  625. *> condition numbers. The last line contains the reciprocals of
  626. *> the eigenvector condition numbers. The end of data is
  627. *> indicated by dimension N=0. Even if no data is to be tested,
  628. *> there must be at least one line containing N=0.
  629. *>
  630. *>-----------------------------------------------------------------------
  631. *>
  632. *> DGX input files:
  633. *>
  634. *> line 1: 'DGX' in columns 1 to 3.
  635. *>
  636. *> line 2: N, INTEGER
  637. *> Value of N.
  638. *>
  639. *> line 3: NB, NBMIN, NX, NS, NBCOL, INTEGERs
  640. *> These integer parameters determine how blocking is done
  641. *> (see ILAENV for details)
  642. *> NB : block size
  643. *> NBMIN : minimum block size
  644. *> NX : minimum dimension for blocking
  645. *> NS : number of shifts in xHGEQR
  646. *> NBCOL : minimum column dimension for blocking
  647. *>
  648. *> line 4: THRESH, REAL
  649. *> The test threshold against which computed residuals are
  650. *> compared. Should generally be in the range from 10. to 20.
  651. *> Information will be printed about each test for which the
  652. *> test ratio is greater than or equal to the threshold.
  653. *>
  654. *> line 5: TSTERR, LOGICAL
  655. *> Flag indicating whether or not to test the error exits for
  656. *> the LAPACK routines and driver routines.
  657. *>
  658. *> line 6: NEWSD, INTEGER
  659. *> A code indicating how to set the random number seed.
  660. *> = 0: Set the seed to a default value before each run
  661. *> = 1: Initialize the seed to a default value only before the
  662. *> first run
  663. *> = 2: Like 1, but use the seed values on the next line
  664. *>
  665. *> If line 6 was 2:
  666. *>
  667. *> line 7: INTEGER array, dimension (4)
  668. *> Four integer values for the random number seed.
  669. *>
  670. *> If line 2 was 0:
  671. *>
  672. *> line 7-EOF: Precomputed examples are tested.
  673. *>
  674. *> remaining lines : Each example is stored on 3+2*N lines, where N is
  675. *> its dimension. The first line contains the dimension (a
  676. *> single integer). The next line contains an integer k such
  677. *> that only the last k eigenvalues will be selected and appear
  678. *> in the leading diagonal blocks of $A$ and $B$. The next N
  679. *> lines contain the matrix A, one row per line. The next N
  680. *> lines contain the matrix B. The last line contains the
  681. *> reciprocal of the eigenvalue cluster condition number and the
  682. *> reciprocal of the deflating subspace (associated with the
  683. *> selected eigencluster) condition number. The end of data is
  684. *> indicated by dimension N=0. Even if no data is to be tested,
  685. *> there must be at least one line containing N=0.
  686. *>
  687. *>-----------------------------------------------------------------------
  688. *>
  689. *> DSB input file:
  690. *>
  691. *> line 2: NN, INTEGER
  692. *> Number of values of N.
  693. *>
  694. *> line 3: NVAL, INTEGER array, dimension (NN)
  695. *> The values for the matrix dimension N.
  696. *>
  697. *> line 4: NK, INTEGER
  698. *> Number of values of K.
  699. *>
  700. *> line 5: KVAL, INTEGER array, dimension (NK)
  701. *> The values for the matrix dimension K.
  702. *>
  703. *> line 6: THRESH
  704. *> Threshold value for the test ratios. Information will be
  705. *> printed about each test for which the test ratio is greater
  706. *> than or equal to the threshold.
  707. *>
  708. *> line 7: NEWSD, INTEGER
  709. *> A code indicating how to set the random number seed.
  710. *> = 0: Set the seed to a default value before each run
  711. *> = 1: Initialize the seed to a default value only before the
  712. *> first run
  713. *> = 2: Like 1, but use the seed values on the next line
  714. *>
  715. *> If line 7 was 2:
  716. *>
  717. *> line 8: INTEGER array, dimension (4)
  718. *> Four integer values for the random number seed.
  719. *>
  720. *> lines 8-EOF: Lines specifying matrix types, as for NEP.
  721. *> The 3-character path name is 'DSB'.
  722. *>
  723. *>-----------------------------------------------------------------------
  724. *>
  725. *> DBB input file:
  726. *>
  727. *> line 2: NN, INTEGER
  728. *> Number of values of M and N.
  729. *>
  730. *> line 3: MVAL, INTEGER array, dimension (NN)
  731. *> The values for the matrix row dimension M.
  732. *>
  733. *> line 4: NVAL, INTEGER array, dimension (NN)
  734. *> The values for the matrix column dimension N.
  735. *>
  736. *> line 4: NK, INTEGER
  737. *> Number of values of K.
  738. *>
  739. *> line 5: KVAL, INTEGER array, dimension (NK)
  740. *> The values for the matrix bandwidth K.
  741. *>
  742. *> line 6: NPARMS, INTEGER
  743. *> Number of values of the parameter NRHS
  744. *>
  745. *> line 7: NSVAL, INTEGER array, dimension (NPARMS)
  746. *> The values for the number of right hand sides NRHS.
  747. *>
  748. *> line 8: THRESH
  749. *> Threshold value for the test ratios. Information will be
  750. *> printed about each test for which the test ratio is greater
  751. *> than or equal to the threshold.
  752. *>
  753. *> line 9: NEWSD, INTEGER
  754. *> A code indicating how to set the random number seed.
  755. *> = 0: Set the seed to a default value before each run
  756. *> = 1: Initialize the seed to a default value only before the
  757. *> first run
  758. *> = 2: Like 1, but use the seed values on the next line
  759. *>
  760. *> If line 9 was 2:
  761. *>
  762. *> line 10: INTEGER array, dimension (4)
  763. *> Four integer values for the random number seed.
  764. *>
  765. *> lines 10-EOF: Lines specifying matrix types, as for SVD.
  766. *> The 3-character path name is 'DBB'.
  767. *>
  768. *>-----------------------------------------------------------------------
  769. *>
  770. *> DEC input file:
  771. *>
  772. *> line 2: THRESH, REAL
  773. *> Threshold value for the test ratios. Information will be
  774. *> printed about each test for which the test ratio is greater
  775. *> than or equal to the threshold.
  776. *>
  777. *> lines 3-EOF:
  778. *>
  779. *> Input for testing the eigencondition routines consists of a set of
  780. *> specially constructed test cases and their solutions. The data
  781. *> format is not intended to be modified by the user.
  782. *>
  783. *>-----------------------------------------------------------------------
  784. *>
  785. *> DBL and DBK input files:
  786. *>
  787. *> line 1: 'DBL' in columns 1-3 to test SGEBAL, or 'DBK' in
  788. *> columns 1-3 to test SGEBAK.
  789. *>
  790. *> The remaining lines consist of specially constructed test cases.
  791. *>
  792. *>-----------------------------------------------------------------------
  793. *>
  794. *> DGL and DGK input files:
  795. *>
  796. *> line 1: 'DGL' in columns 1-3 to test DGGBAL, or 'DGK' in
  797. *> columns 1-3 to test DGGBAK.
  798. *>
  799. *> The remaining lines consist of specially constructed test cases.
  800. *>
  801. *>-----------------------------------------------------------------------
  802. *>
  803. *> GLM data file:
  804. *>
  805. *> line 1: 'GLM' in columns 1 to 3.
  806. *>
  807. *> line 2: NN, INTEGER
  808. *> Number of values of M, P, and N.
  809. *>
  810. *> line 3: MVAL, INTEGER array, dimension(NN)
  811. *> Values of M (row dimension).
  812. *>
  813. *> line 4: PVAL, INTEGER array, dimension(NN)
  814. *> Values of P (row dimension).
  815. *>
  816. *> line 5: NVAL, INTEGER array, dimension(NN)
  817. *> Values of N (column dimension), note M <= N <= M+P.
  818. *>
  819. *> line 6: THRESH, REAL
  820. *> Threshold value for the test ratios. Information will be
  821. *> printed about each test for which the test ratio is greater
  822. *> than or equal to the threshold.
  823. *>
  824. *> line 7: TSTERR, LOGICAL
  825. *> Flag indicating whether or not to test the error exits for
  826. *> the LAPACK routines and driver routines.
  827. *>
  828. *> line 8: NEWSD, INTEGER
  829. *> A code indicating how to set the random number seed.
  830. *> = 0: Set the seed to a default value before each run
  831. *> = 1: Initialize the seed to a default value only before the
  832. *> first run
  833. *> = 2: Like 1, but use the seed values on the next line
  834. *>
  835. *> If line 8 was 2:
  836. *>
  837. *> line 9: INTEGER array, dimension (4)
  838. *> Four integer values for the random number seed.
  839. *>
  840. *> lines 9-EOF: Lines specifying matrix types, as for NEP.
  841. *> The 3-character path name is 'GLM' for the generalized
  842. *> linear regression model routines.
  843. *>
  844. *>-----------------------------------------------------------------------
  845. *>
  846. *> GQR data file:
  847. *>
  848. *> line 1: 'GQR' in columns 1 to 3.
  849. *>
  850. *> line 2: NN, INTEGER
  851. *> Number of values of M, P, and N.
  852. *>
  853. *> line 3: MVAL, INTEGER array, dimension(NN)
  854. *> Values of M.
  855. *>
  856. *> line 4: PVAL, INTEGER array, dimension(NN)
  857. *> Values of P.
  858. *>
  859. *> line 5: NVAL, INTEGER array, dimension(NN)
  860. *> Values of N.
  861. *>
  862. *> line 6: THRESH, REAL
  863. *> Threshold value for the test ratios. Information will be
  864. *> printed about each test for which the test ratio is greater
  865. *> than or equal to the threshold.
  866. *>
  867. *> line 7: TSTERR, LOGICAL
  868. *> Flag indicating whether or not to test the error exits for
  869. *> the LAPACK routines and driver routines.
  870. *>
  871. *> line 8: NEWSD, INTEGER
  872. *> A code indicating how to set the random number seed.
  873. *> = 0: Set the seed to a default value before each run
  874. *> = 1: Initialize the seed to a default value only before the
  875. *> first run
  876. *> = 2: Like 1, but use the seed values on the next line
  877. *>
  878. *> If line 8 was 2:
  879. *>
  880. *> line 9: INTEGER array, dimension (4)
  881. *> Four integer values for the random number seed.
  882. *>
  883. *> lines 9-EOF: Lines specifying matrix types, as for NEP.
  884. *> The 3-character path name is 'GQR' for the generalized
  885. *> QR and RQ routines.
  886. *>
  887. *>-----------------------------------------------------------------------
  888. *>
  889. *> GSV data file:
  890. *>
  891. *> line 1: 'GSV' in columns 1 to 3.
  892. *>
  893. *> line 2: NN, INTEGER
  894. *> Number of values of M, P, and N.
  895. *>
  896. *> line 3: MVAL, INTEGER array, dimension(NN)
  897. *> Values of M (row dimension).
  898. *>
  899. *> line 4: PVAL, INTEGER array, dimension(NN)
  900. *> Values of P (row dimension).
  901. *>
  902. *> line 5: NVAL, INTEGER array, dimension(NN)
  903. *> Values of N (column dimension).
  904. *>
  905. *> line 6: THRESH, REAL
  906. *> Threshold value for the test ratios. Information will be
  907. *> printed about each test for which the test ratio is greater
  908. *> than or equal to the threshold.
  909. *>
  910. *> line 7: TSTERR, LOGICAL
  911. *> Flag indicating whether or not to test the error exits for
  912. *> the LAPACK routines and driver routines.
  913. *>
  914. *> line 8: NEWSD, INTEGER
  915. *> A code indicating how to set the random number seed.
  916. *> = 0: Set the seed to a default value before each run
  917. *> = 1: Initialize the seed to a default value only before the
  918. *> first run
  919. *> = 2: Like 1, but use the seed values on the next line
  920. *>
  921. *> If line 8 was 2:
  922. *>
  923. *> line 9: INTEGER array, dimension (4)
  924. *> Four integer values for the random number seed.
  925. *>
  926. *> lines 9-EOF: Lines specifying matrix types, as for NEP.
  927. *> The 3-character path name is 'GSV' for the generalized
  928. *> SVD routines.
  929. *>
  930. *>-----------------------------------------------------------------------
  931. *>
  932. *> CSD data file:
  933. *>
  934. *> line 1: 'CSD' in columns 1 to 3.
  935. *>
  936. *> line 2: NM, INTEGER
  937. *> Number of values of M, P, and N.
  938. *>
  939. *> line 3: MVAL, INTEGER array, dimension(NM)
  940. *> Values of M (row and column dimension of orthogonal matrix).
  941. *>
  942. *> line 4: PVAL, INTEGER array, dimension(NM)
  943. *> Values of P (row dimension of top-left block).
  944. *>
  945. *> line 5: NVAL, INTEGER array, dimension(NM)
  946. *> Values of N (column dimension of top-left block).
  947. *>
  948. *> line 6: THRESH, REAL
  949. *> Threshold value for the test ratios. Information will be
  950. *> printed about each test for which the test ratio is greater
  951. *> than or equal to the threshold.
  952. *>
  953. *> line 7: TSTERR, LOGICAL
  954. *> Flag indicating whether or not to test the error exits for
  955. *> the LAPACK routines and driver routines.
  956. *>
  957. *> line 8: NEWSD, INTEGER
  958. *> A code indicating how to set the random number seed.
  959. *> = 0: Set the seed to a default value before each run
  960. *> = 1: Initialize the seed to a default value only before the
  961. *> first run
  962. *> = 2: Like 1, but use the seed values on the next line
  963. *>
  964. *> If line 8 was 2:
  965. *>
  966. *> line 9: INTEGER array, dimension (4)
  967. *> Four integer values for the random number seed.
  968. *>
  969. *> lines 9-EOF: Lines specifying matrix types, as for NEP.
  970. *> The 3-character path name is 'CSD' for the CSD routine.
  971. *>
  972. *>-----------------------------------------------------------------------
  973. *>
  974. *> LSE data file:
  975. *>
  976. *> line 1: 'LSE' in columns 1 to 3.
  977. *>
  978. *> line 2: NN, INTEGER
  979. *> Number of values of M, P, and N.
  980. *>
  981. *> line 3: MVAL, INTEGER array, dimension(NN)
  982. *> Values of M.
  983. *>
  984. *> line 4: PVAL, INTEGER array, dimension(NN)
  985. *> Values of P.
  986. *>
  987. *> line 5: NVAL, INTEGER array, dimension(NN)
  988. *> Values of N, note P <= N <= P+M.
  989. *>
  990. *> line 6: THRESH, REAL
  991. *> Threshold value for the test ratios. Information will be
  992. *> printed about each test for which the test ratio is greater
  993. *> than or equal to the threshold.
  994. *>
  995. *> line 7: TSTERR, LOGICAL
  996. *> Flag indicating whether or not to test the error exits for
  997. *> the LAPACK routines and driver routines.
  998. *>
  999. *> line 8: NEWSD, INTEGER
  1000. *> A code indicating how to set the random number seed.
  1001. *> = 0: Set the seed to a default value before each run
  1002. *> = 1: Initialize the seed to a default value only before the
  1003. *> first run
  1004. *> = 2: Like 1, but use the seed values on the next line
  1005. *>
  1006. *> If line 8 was 2:
  1007. *>
  1008. *> line 9: INTEGER array, dimension (4)
  1009. *> Four integer values for the random number seed.
  1010. *>
  1011. *> lines 9-EOF: Lines specifying matrix types, as for NEP.
  1012. *> The 3-character path name is 'GSV' for the generalized
  1013. *> SVD routines.
  1014. *>
  1015. *>-----------------------------------------------------------------------
  1016. *>
  1017. *> NMAX is currently set to 132 and must be at least 12 for some of the
  1018. *> precomputed examples, and LWORK = NMAX*(5*NMAX+5)+1 in the parameter
  1019. *> statements below. For SVD, we assume NRHS may be as big as N. The
  1020. *> parameter NEED is set to 14 to allow for 14 N-by-N matrices for DGG.
  1021. *> \endverbatim
  1022. *
  1023. * Arguments:
  1024. * ==========
  1025. *
  1026. *
  1027. * Authors:
  1028. * ========
  1029. *
  1030. *> \author Univ. of Tennessee
  1031. *> \author Univ. of California Berkeley
  1032. *> \author Univ. of Colorado Denver
  1033. *> \author NAG Ltd.
  1034. *
  1035. *> \date November 2011
  1036. *
  1037. *> \ingroup double_eig
  1038. *
  1039. * ===================================================================== PROGRAM DCHKEE
  1040. *
  1041. * -- LAPACK test routine (version 3.4.0) --
  1042. * -- LAPACK is a software package provided by Univ. of Tennessee, --
  1043. * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
  1044. * November 2011
  1045. *
  1046. * =====================================================================
  1047. *
  1048. * .. Parameters ..
  1049. INTEGER NMAX
  1050. PARAMETER ( NMAX = 132 )
  1051. INTEGER NCMAX
  1052. PARAMETER ( NCMAX = 20 )
  1053. INTEGER NEED
  1054. PARAMETER ( NEED = 14 )
  1055. INTEGER LWORK
  1056. PARAMETER ( LWORK = NMAX*( 5*NMAX+5 )+1 )
  1057. INTEGER LIWORK
  1058. PARAMETER ( LIWORK = NMAX*( 5*NMAX+20 ) )
  1059. INTEGER MAXIN
  1060. PARAMETER ( MAXIN = 20 )
  1061. INTEGER MAXT
  1062. PARAMETER ( MAXT = 30 )
  1063. INTEGER NIN, NOUT
  1064. PARAMETER ( NIN = 5, NOUT = 6 )
  1065. * ..
  1066. * .. Local Scalars ..
  1067. LOGICAL CSD, DBB, DGG, DSB, FATAL, GLM, GQR, GSV, LSE,
  1068. $ NEP, DBK, DBL, SEP, DES, DEV, DGK, DGL, DGS,
  1069. $ DGV, DGX, DSX, SVD, DVX, DXV, TSTCHK, TSTDIF,
  1070. $ TSTDRV, TSTERR
  1071. CHARACTER C1
  1072. CHARACTER*3 C3, PATH
  1073. CHARACTER*32 VNAME
  1074. CHARACTER*10 INTSTR
  1075. CHARACTER*80 LINE
  1076. INTEGER I, I1, IC, INFO, ITMP, K, LENP, MAXTYP, NEWSD,
  1077. $ NK, NN, NPARMS, NRHS, NTYPES,
  1078. $ VERS_MAJOR, VERS_MINOR, VERS_PATCH
  1079. DOUBLE PRECISION EPS, S1, S2, THRESH, THRSHN
  1080. * ..
  1081. * .. Local Arrays ..
  1082. LOGICAL DOTYPE( MAXT ), LOGWRK( NMAX )
  1083. INTEGER IOLDSD( 4 ), ISEED( 4 ), IWORK( LIWORK ),
  1084. $ KVAL( MAXIN ), MVAL( MAXIN ), MXBVAL( MAXIN ),
  1085. $ NBCOL( MAXIN ), NBMIN( MAXIN ), NBVAL( MAXIN ),
  1086. $ NSVAL( MAXIN ), NVAL( MAXIN ), NXVAL( MAXIN ),
  1087. $ PVAL( MAXIN )
  1088. INTEGER INMIN( MAXIN ), INWIN( MAXIN ), INIBL( MAXIN ),
  1089. $ ISHFTS( MAXIN ), IACC22( MAXIN )
  1090. DOUBLE PRECISION A( NMAX*NMAX, NEED ), B( NMAX*NMAX, 5 ),
  1091. $ C( NCMAX*NCMAX, NCMAX*NCMAX ), D( NMAX, 12 ),
  1092. $ RESULT( 500 ), TAUA( NMAX ), TAUB( NMAX ),
  1093. $ WORK( LWORK ), X( 5*NMAX )
  1094. * ..
  1095. * .. External Functions ..
  1096. LOGICAL LSAMEN
  1097. DOUBLE PRECISION DLAMCH, DSECND
  1098. EXTERNAL LSAMEN, DLAMCH, DSECND
  1099. * ..
  1100. * .. External Subroutines ..
  1101. EXTERNAL ALAREQ, DCHKBB, DCHKBD, DCHKBK, DCHKBL, DCHKEC,
  1102. $ DCHKGG, DCHKGK, DCHKGL, DCHKHS, DCHKSB, DCHKST,
  1103. $ DCKCSD, DCKGLM, DCKGQR, DCKGSV, DCKLSE, DDRGES,
  1104. $ DDRGEV, DDRGSX, DDRGVX, DDRVBD, DDRVES, DDRVEV,
  1105. $ DDRVGG, DDRVSG, DDRVST, DDRVSX, DDRVVX, DERRBD,
  1106. $ DERRED, DERRGG, DERRHS, DERRST, ILAVER, XLAENV
  1107. * ..
  1108. * .. Intrinsic Functions ..
  1109. INTRINSIC LEN, MIN
  1110. * ..
  1111. * .. Scalars in Common ..
  1112. LOGICAL LERR, OK
  1113. CHARACTER*32 SRNAMT
  1114. INTEGER INFOT, MAXB, NPROC, NSHIFT, NUNIT, SELDIM,
  1115. $ SELOPT
  1116. * ..
  1117. * .. Arrays in Common ..
  1118. LOGICAL SELVAL( 20 )
  1119. INTEGER IPARMS( 100 )
  1120. DOUBLE PRECISION SELWI( 20 ), SELWR( 20 )
  1121. * ..
  1122. * .. Common blocks ..
  1123. COMMON / CENVIR / NPROC, NSHIFT, MAXB
  1124. COMMON / INFOC / INFOT, NUNIT, OK, LERR
  1125. COMMON / SRNAMC / SRNAMT
  1126. COMMON / SSLCT / SELOPT, SELDIM, SELVAL, SELWR, SELWI
  1127. COMMON / CLAENV / IPARMS
  1128. * ..
  1129. * .. Data statements ..
  1130. DATA INTSTR / '0123456789' /
  1131. DATA IOLDSD / 0, 0, 0, 1 /
  1132. * ..
  1133. * .. Executable Statements ..
  1134. *
  1135. S1 = DSECND( )
  1136. FATAL = .FALSE.
  1137. NUNIT = NOUT
  1138. *
  1139. * Return to here to read multiple sets of data
  1140. *
  1141. 10 CONTINUE
  1142. *
  1143. * Read the first line and set the 3-character test path
  1144. *
  1145. READ( NIN, FMT = '(A80)', END = 380 )LINE
  1146. PATH = LINE( 1: 3 )
  1147. NEP = LSAMEN( 3, PATH, 'NEP' ) .OR. LSAMEN( 3, PATH, 'DHS' )
  1148. SEP = LSAMEN( 3, PATH, 'SEP' ) .OR. LSAMEN( 3, PATH, 'DST' ) .OR.
  1149. $ LSAMEN( 3, PATH, 'DSG' )
  1150. SVD = LSAMEN( 3, PATH, 'SVD' ) .OR. LSAMEN( 3, PATH, 'DBD' )
  1151. DEV = LSAMEN( 3, PATH, 'DEV' )
  1152. DES = LSAMEN( 3, PATH, 'DES' )
  1153. DVX = LSAMEN( 3, PATH, 'DVX' )
  1154. DSX = LSAMEN( 3, PATH, 'DSX' )
  1155. DGG = LSAMEN( 3, PATH, 'DGG' )
  1156. DGS = LSAMEN( 3, PATH, 'DGS' )
  1157. DGX = LSAMEN( 3, PATH, 'DGX' )
  1158. DGV = LSAMEN( 3, PATH, 'DGV' )
  1159. DXV = LSAMEN( 3, PATH, 'DXV' )
  1160. DSB = LSAMEN( 3, PATH, 'DSB' )
  1161. DBB = LSAMEN( 3, PATH, 'DBB' )
  1162. GLM = LSAMEN( 3, PATH, 'GLM' )
  1163. GQR = LSAMEN( 3, PATH, 'GQR' ) .OR. LSAMEN( 3, PATH, 'GRQ' )
  1164. GSV = LSAMEN( 3, PATH, 'GSV' )
  1165. CSD = LSAMEN( 3, PATH, 'CSD' )
  1166. LSE = LSAMEN( 3, PATH, 'LSE' )
  1167. DBL = LSAMEN( 3, PATH, 'DBL' )
  1168. DBK = LSAMEN( 3, PATH, 'DBK' )
  1169. DGL = LSAMEN( 3, PATH, 'DGL' )
  1170. DGK = LSAMEN( 3, PATH, 'DGK' )
  1171. *
  1172. * Report values of parameters.
  1173. *
  1174. IF( PATH.EQ.' ' ) THEN
  1175. GO TO 10
  1176. ELSE IF( NEP ) THEN
  1177. WRITE( NOUT, FMT = 9987 )
  1178. ELSE IF( SEP ) THEN
  1179. WRITE( NOUT, FMT = 9986 )
  1180. ELSE IF( SVD ) THEN
  1181. WRITE( NOUT, FMT = 9985 )
  1182. ELSE IF( DEV ) THEN
  1183. WRITE( NOUT, FMT = 9979 )
  1184. ELSE IF( DES ) THEN
  1185. WRITE( NOUT, FMT = 9978 )
  1186. ELSE IF( DVX ) THEN
  1187. WRITE( NOUT, FMT = 9977 )
  1188. ELSE IF( DSX ) THEN
  1189. WRITE( NOUT, FMT = 9976 )
  1190. ELSE IF( DGG ) THEN
  1191. WRITE( NOUT, FMT = 9975 )
  1192. ELSE IF( DGS ) THEN
  1193. WRITE( NOUT, FMT = 9964 )
  1194. ELSE IF( DGX ) THEN
  1195. WRITE( NOUT, FMT = 9965 )
  1196. ELSE IF( DGV ) THEN
  1197. WRITE( NOUT, FMT = 9963 )
  1198. ELSE IF( DXV ) THEN
  1199. WRITE( NOUT, FMT = 9962 )
  1200. ELSE IF( DSB ) THEN
  1201. WRITE( NOUT, FMT = 9974 )
  1202. ELSE IF( DBB ) THEN
  1203. WRITE( NOUT, FMT = 9967 )
  1204. ELSE IF( GLM ) THEN
  1205. WRITE( NOUT, FMT = 9971 )
  1206. ELSE IF( GQR ) THEN
  1207. WRITE( NOUT, FMT = 9970 )
  1208. ELSE IF( GSV ) THEN
  1209. WRITE( NOUT, FMT = 9969 )
  1210. ELSE IF( CSD ) THEN
  1211. WRITE( NOUT, FMT = 9960 )
  1212. ELSE IF( LSE ) THEN
  1213. WRITE( NOUT, FMT = 9968 )
  1214. ELSE IF( DBL ) THEN
  1215. *
  1216. * DGEBAL: Balancing
  1217. *
  1218. CALL DCHKBL( NIN, NOUT )
  1219. GO TO 10
  1220. ELSE IF( DBK ) THEN
  1221. *
  1222. * DGEBAK: Back transformation
  1223. *
  1224. CALL DCHKBK( NIN, NOUT )
  1225. GO TO 10
  1226. ELSE IF( DGL ) THEN
  1227. *
  1228. * DGGBAL: Balancing
  1229. *
  1230. CALL DCHKGL( NIN, NOUT )
  1231. GO TO 10
  1232. ELSE IF( DGK ) THEN
  1233. *
  1234. * DGGBAK: Back transformation
  1235. *
  1236. CALL DCHKGK( NIN, NOUT )
  1237. GO TO 10
  1238. ELSE IF( LSAMEN( 3, PATH, 'DEC' ) ) THEN
  1239. *
  1240. * DEC: Eigencondition estimation
  1241. *
  1242. READ( NIN, FMT = * )THRESH
  1243. CALL XLAENV( 1, 1 )
  1244. CALL XLAENV( 12, 11 )
  1245. CALL XLAENV( 13, 2 )
  1246. CALL XLAENV( 14, 0 )
  1247. CALL XLAENV( 15, 2 )
  1248. CALL XLAENV( 16, 2 )
  1249. TSTERR = .TRUE.
  1250. CALL DCHKEC( THRESH, TSTERR, NIN, NOUT )
  1251. GO TO 10
  1252. ELSE
  1253. WRITE( NOUT, FMT = 9992 )PATH
  1254. GO TO 10
  1255. END IF
  1256. CALL ILAVER( VERS_MAJOR, VERS_MINOR, VERS_PATCH )
  1257. WRITE( NOUT, FMT = 9972 ) VERS_MAJOR, VERS_MINOR, VERS_PATCH
  1258. WRITE( NOUT, FMT = 9984 )
  1259. *
  1260. * Read the number of values of M, P, and N.
  1261. *
  1262. READ( NIN, FMT = * )NN
  1263. IF( NN.LT.0 ) THEN
  1264. WRITE( NOUT, FMT = 9989 )' NN ', NN, 1
  1265. NN = 0
  1266. FATAL = .TRUE.
  1267. ELSE IF( NN.GT.MAXIN ) THEN
  1268. WRITE( NOUT, FMT = 9988 )' NN ', NN, MAXIN
  1269. NN = 0
  1270. FATAL = .TRUE.
  1271. END IF
  1272. *
  1273. * Read the values of M
  1274. *
  1275. IF( .NOT.( DGX .OR. DXV ) ) THEN
  1276. READ( NIN, FMT = * )( MVAL( I ), I = 1, NN )
  1277. IF( SVD ) THEN
  1278. VNAME = ' M '
  1279. ELSE
  1280. VNAME = ' N '
  1281. END IF
  1282. DO 20 I = 1, NN
  1283. IF( MVAL( I ).LT.0 ) THEN
  1284. WRITE( NOUT, FMT = 9989 )VNAME, MVAL( I ), 0
  1285. FATAL = .TRUE.
  1286. ELSE IF( MVAL( I ).GT.NMAX ) THEN
  1287. WRITE( NOUT, FMT = 9988 )VNAME, MVAL( I ), NMAX
  1288. FATAL = .TRUE.
  1289. END IF
  1290. 20 CONTINUE
  1291. WRITE( NOUT, FMT = 9983 )'M: ', ( MVAL( I ), I = 1, NN )
  1292. END IF
  1293. *
  1294. * Read the values of P
  1295. *
  1296. IF( GLM .OR. GQR .OR. GSV .OR. CSD .OR. LSE ) THEN
  1297. READ( NIN, FMT = * )( PVAL( I ), I = 1, NN )
  1298. DO 30 I = 1, NN
  1299. IF( PVAL( I ).LT.0 ) THEN
  1300. WRITE( NOUT, FMT = 9989 )' P ', PVAL( I ), 0
  1301. FATAL = .TRUE.
  1302. ELSE IF( PVAL( I ).GT.NMAX ) THEN
  1303. WRITE( NOUT, FMT = 9988 )' P ', PVAL( I ), NMAX
  1304. FATAL = .TRUE.
  1305. END IF
  1306. 30 CONTINUE
  1307. WRITE( NOUT, FMT = 9983 )'P: ', ( PVAL( I ), I = 1, NN )
  1308. END IF
  1309. *
  1310. * Read the values of N
  1311. *
  1312. IF( SVD .OR. DBB .OR. GLM .OR. GQR .OR. GSV .OR. CSD .OR.
  1313. $ LSE ) THEN
  1314. READ( NIN, FMT = * )( NVAL( I ), I = 1, NN )
  1315. DO 40 I = 1, NN
  1316. IF( NVAL( I ).LT.0 ) THEN
  1317. WRITE( NOUT, FMT = 9989 )' N ', NVAL( I ), 0
  1318. FATAL = .TRUE.
  1319. ELSE IF( NVAL( I ).GT.NMAX ) THEN
  1320. WRITE( NOUT, FMT = 9988 )' N ', NVAL( I ), NMAX
  1321. FATAL = .TRUE.
  1322. END IF
  1323. 40 CONTINUE
  1324. ELSE
  1325. DO 50 I = 1, NN
  1326. NVAL( I ) = MVAL( I )
  1327. 50 CONTINUE
  1328. END IF
  1329. IF( .NOT.( DGX .OR. DXV ) ) THEN
  1330. WRITE( NOUT, FMT = 9983 )'N: ', ( NVAL( I ), I = 1, NN )
  1331. ELSE
  1332. WRITE( NOUT, FMT = 9983 )'N: ', NN
  1333. END IF
  1334. *
  1335. * Read the number of values of K, followed by the values of K
  1336. *
  1337. IF( DSB .OR. DBB ) THEN
  1338. READ( NIN, FMT = * )NK
  1339. READ( NIN, FMT = * )( KVAL( I ), I = 1, NK )
  1340. DO 60 I = 1, NK
  1341. IF( KVAL( I ).LT.0 ) THEN
  1342. WRITE( NOUT, FMT = 9989 )' K ', KVAL( I ), 0
  1343. FATAL = .TRUE.
  1344. ELSE IF( KVAL( I ).GT.NMAX ) THEN
  1345. WRITE( NOUT, FMT = 9988 )' K ', KVAL( I ), NMAX
  1346. FATAL = .TRUE.
  1347. END IF
  1348. 60 CONTINUE
  1349. WRITE( NOUT, FMT = 9983 )'K: ', ( KVAL( I ), I = 1, NK )
  1350. END IF
  1351. *
  1352. IF( DEV .OR. DES .OR. DVX .OR. DSX ) THEN
  1353. *
  1354. * For the nonsymmetric QR driver routines, only one set of
  1355. * parameters is allowed.
  1356. *
  1357. READ( NIN, FMT = * )NBVAL( 1 ), NBMIN( 1 ), NXVAL( 1 ),
  1358. $ INMIN( 1 ), INWIN( 1 ), INIBL(1), ISHFTS(1), IACC22(1)
  1359. IF( NBVAL( 1 ).LT.1 ) THEN
  1360. WRITE( NOUT, FMT = 9989 )' NB ', NBVAL( 1 ), 1
  1361. FATAL = .TRUE.
  1362. ELSE IF( NBMIN( 1 ).LT.1 ) THEN
  1363. WRITE( NOUT, FMT = 9989 )'NBMIN ', NBMIN( 1 ), 1
  1364. FATAL = .TRUE.
  1365. ELSE IF( NXVAL( 1 ).LT.1 ) THEN
  1366. WRITE( NOUT, FMT = 9989 )' NX ', NXVAL( 1 ), 1
  1367. FATAL = .TRUE.
  1368. ELSE IF( INMIN( 1 ).LT.1 ) THEN
  1369. WRITE( NOUT, FMT = 9989 )' INMIN ', INMIN( 1 ), 1
  1370. FATAL = .TRUE.
  1371. ELSE IF( INWIN( 1 ).LT.1 ) THEN
  1372. WRITE( NOUT, FMT = 9989 )' INWIN ', INWIN( 1 ), 1
  1373. FATAL = .TRUE.
  1374. ELSE IF( INIBL( 1 ).LT.1 ) THEN
  1375. WRITE( NOUT, FMT = 9989 )' INIBL ', INIBL( 1 ), 1
  1376. FATAL = .TRUE.
  1377. ELSE IF( ISHFTS( 1 ).LT.1 ) THEN
  1378. WRITE( NOUT, FMT = 9989 )' ISHFTS ', ISHFTS( 1 ), 1
  1379. FATAL = .TRUE.
  1380. ELSE IF( IACC22( 1 ).LT.0 ) THEN
  1381. WRITE( NOUT, FMT = 9989 )' IACC22 ', IACC22( 1 ), 0
  1382. FATAL = .TRUE.
  1383. END IF
  1384. CALL XLAENV( 1, NBVAL( 1 ) )
  1385. CALL XLAENV( 2, NBMIN( 1 ) )
  1386. CALL XLAENV( 3, NXVAL( 1 ) )
  1387. CALL XLAENV(12, MAX( 11, INMIN( 1 ) ) )
  1388. CALL XLAENV(13, INWIN( 1 ) )
  1389. CALL XLAENV(14, INIBL( 1 ) )
  1390. CALL XLAENV(15, ISHFTS( 1 ) )
  1391. CALL XLAENV(16, IACC22( 1 ) )
  1392. WRITE( NOUT, FMT = 9983 )'NB: ', NBVAL( 1 )
  1393. WRITE( NOUT, FMT = 9983 )'NBMIN:', NBMIN( 1 )
  1394. WRITE( NOUT, FMT = 9983 )'NX: ', NXVAL( 1 )
  1395. WRITE( NOUT, FMT = 9983 )'INMIN: ', INMIN( 1 )
  1396. WRITE( NOUT, FMT = 9983 )'INWIN: ', INWIN( 1 )
  1397. WRITE( NOUT, FMT = 9983 )'INIBL: ', INIBL( 1 )
  1398. WRITE( NOUT, FMT = 9983 )'ISHFTS: ', ISHFTS( 1 )
  1399. WRITE( NOUT, FMT = 9983 )'IACC22: ', IACC22( 1 )
  1400. *
  1401. ELSEIF( DGS .OR. DGX .OR. DGV .OR. DXV ) THEN
  1402. *
  1403. * For the nonsymmetric generalized driver routines, only one set
  1404. * of parameters is allowed.
  1405. *
  1406. READ( NIN, FMT = * )NBVAL( 1 ), NBMIN( 1 ), NXVAL( 1 ),
  1407. $ NSVAL( 1 ), MXBVAL( 1 )
  1408. IF( NBVAL( 1 ).LT.1 ) THEN
  1409. WRITE( NOUT, FMT = 9989 )' NB ', NBVAL( 1 ), 1
  1410. FATAL = .TRUE.
  1411. ELSE IF( NBMIN( 1 ).LT.1 ) THEN
  1412. WRITE( NOUT, FMT = 9989 )'NBMIN ', NBMIN( 1 ), 1
  1413. FATAL = .TRUE.
  1414. ELSE IF( NXVAL( 1 ).LT.1 ) THEN
  1415. WRITE( NOUT, FMT = 9989 )' NX ', NXVAL( 1 ), 1
  1416. FATAL = .TRUE.
  1417. ELSE IF( NSVAL( 1 ).LT.2 ) THEN
  1418. WRITE( NOUT, FMT = 9989 )' NS ', NSVAL( 1 ), 2
  1419. FATAL = .TRUE.
  1420. ELSE IF( MXBVAL( 1 ).LT.1 ) THEN
  1421. WRITE( NOUT, FMT = 9989 )' MAXB ', MXBVAL( 1 ), 1
  1422. FATAL = .TRUE.
  1423. END IF
  1424. CALL XLAENV( 1, NBVAL( 1 ) )
  1425. CALL XLAENV( 2, NBMIN( 1 ) )
  1426. CALL XLAENV( 3, NXVAL( 1 ) )
  1427. CALL XLAENV( 4, NSVAL( 1 ) )
  1428. CALL XLAENV( 8, MXBVAL( 1 ) )
  1429. WRITE( NOUT, FMT = 9983 )'NB: ', NBVAL( 1 )
  1430. WRITE( NOUT, FMT = 9983 )'NBMIN:', NBMIN( 1 )
  1431. WRITE( NOUT, FMT = 9983 )'NX: ', NXVAL( 1 )
  1432. WRITE( NOUT, FMT = 9983 )'NS: ', NSVAL( 1 )
  1433. WRITE( NOUT, FMT = 9983 )'MAXB: ', MXBVAL( 1 )
  1434. *
  1435. ELSE IF( .NOT.DSB .AND. .NOT.GLM .AND. .NOT.GQR .AND. .NOT.
  1436. $ GSV .AND. .NOT.CSD .AND. .NOT.LSE ) THEN
  1437. *
  1438. * For the other paths, the number of parameters can be varied
  1439. * from the input file. Read the number of parameter values.
  1440. *
  1441. READ( NIN, FMT = * )NPARMS
  1442. IF( NPARMS.LT.1 ) THEN
  1443. WRITE( NOUT, FMT = 9989 )'NPARMS', NPARMS, 1
  1444. NPARMS = 0
  1445. FATAL = .TRUE.
  1446. ELSE IF( NPARMS.GT.MAXIN ) THEN
  1447. WRITE( NOUT, FMT = 9988 )'NPARMS', NPARMS, MAXIN
  1448. NPARMS = 0
  1449. FATAL = .TRUE.
  1450. END IF
  1451. *
  1452. * Read the values of NB
  1453. *
  1454. IF( .NOT.DBB ) THEN
  1455. READ( NIN, FMT = * )( NBVAL( I ), I = 1, NPARMS )
  1456. DO 70 I = 1, NPARMS
  1457. IF( NBVAL( I ).LT.0 ) THEN
  1458. WRITE( NOUT, FMT = 9989 )' NB ', NBVAL( I ), 0
  1459. FATAL = .TRUE.
  1460. ELSE IF( NBVAL( I ).GT.NMAX ) THEN
  1461. WRITE( NOUT, FMT = 9988 )' NB ', NBVAL( I ), NMAX
  1462. FATAL = .TRUE.
  1463. END IF
  1464. 70 CONTINUE
  1465. WRITE( NOUT, FMT = 9983 )'NB: ',
  1466. $ ( NBVAL( I ), I = 1, NPARMS )
  1467. END IF
  1468. *
  1469. * Read the values of NBMIN
  1470. *
  1471. IF( NEP .OR. SEP .OR. SVD .OR. DGG ) THEN
  1472. READ( NIN, FMT = * )( NBMIN( I ), I = 1, NPARMS )
  1473. DO 80 I = 1, NPARMS
  1474. IF( NBMIN( I ).LT.0 ) THEN
  1475. WRITE( NOUT, FMT = 9989 )'NBMIN ', NBMIN( I ), 0
  1476. FATAL = .TRUE.
  1477. ELSE IF( NBMIN( I ).GT.NMAX ) THEN
  1478. WRITE( NOUT, FMT = 9988 )'NBMIN ', NBMIN( I ), NMAX
  1479. FATAL = .TRUE.
  1480. END IF
  1481. 80 CONTINUE
  1482. WRITE( NOUT, FMT = 9983 )'NBMIN:',
  1483. $ ( NBMIN( I ), I = 1, NPARMS )
  1484. ELSE
  1485. DO 90 I = 1, NPARMS
  1486. NBMIN( I ) = 1
  1487. 90 CONTINUE
  1488. END IF
  1489. *
  1490. * Read the values of NX
  1491. *
  1492. IF( NEP .OR. SEP .OR. SVD ) THEN
  1493. READ( NIN, FMT = * )( NXVAL( I ), I = 1, NPARMS )
  1494. DO 100 I = 1, NPARMS
  1495. IF( NXVAL( I ).LT.0 ) THEN
  1496. WRITE( NOUT, FMT = 9989 )' NX ', NXVAL( I ), 0
  1497. FATAL = .TRUE.
  1498. ELSE IF( NXVAL( I ).GT.NMAX ) THEN
  1499. WRITE( NOUT, FMT = 9988 )' NX ', NXVAL( I ), NMAX
  1500. FATAL = .TRUE.
  1501. END IF
  1502. 100 CONTINUE
  1503. WRITE( NOUT, FMT = 9983 )'NX: ',
  1504. $ ( NXVAL( I ), I = 1, NPARMS )
  1505. ELSE
  1506. DO 110 I = 1, NPARMS
  1507. NXVAL( I ) = 1
  1508. 110 CONTINUE
  1509. END IF
  1510. *
  1511. * Read the values of NSHIFT (if DGG) or NRHS (if SVD
  1512. * or DBB).
  1513. *
  1514. IF( SVD .OR. DBB .OR. DGG ) THEN
  1515. READ( NIN, FMT = * )( NSVAL( I ), I = 1, NPARMS )
  1516. DO 120 I = 1, NPARMS
  1517. IF( NSVAL( I ).LT.0 ) THEN
  1518. WRITE( NOUT, FMT = 9989 )' NS ', NSVAL( I ), 0
  1519. FATAL = .TRUE.
  1520. ELSE IF( NSVAL( I ).GT.NMAX ) THEN
  1521. WRITE( NOUT, FMT = 9988 )' NS ', NSVAL( I ), NMAX
  1522. FATAL = .TRUE.
  1523. END IF
  1524. 120 CONTINUE
  1525. WRITE( NOUT, FMT = 9983 )'NS: ',
  1526. $ ( NSVAL( I ), I = 1, NPARMS )
  1527. ELSE
  1528. DO 130 I = 1, NPARMS
  1529. NSVAL( I ) = 1
  1530. 130 CONTINUE
  1531. END IF
  1532. *
  1533. * Read the values for MAXB.
  1534. *
  1535. IF( DGG ) THEN
  1536. READ( NIN, FMT = * )( MXBVAL( I ), I = 1, NPARMS )
  1537. DO 140 I = 1, NPARMS
  1538. IF( MXBVAL( I ).LT.0 ) THEN
  1539. WRITE( NOUT, FMT = 9989 )' MAXB ', MXBVAL( I ), 0
  1540. FATAL = .TRUE.
  1541. ELSE IF( MXBVAL( I ).GT.NMAX ) THEN
  1542. WRITE( NOUT, FMT = 9988 )' MAXB ', MXBVAL( I ), NMAX
  1543. FATAL = .TRUE.
  1544. END IF
  1545. 140 CONTINUE
  1546. WRITE( NOUT, FMT = 9983 )'MAXB: ',
  1547. $ ( MXBVAL( I ), I = 1, NPARMS )
  1548. ELSE
  1549. DO 150 I = 1, NPARMS
  1550. MXBVAL( I ) = 1
  1551. 150 CONTINUE
  1552. END IF
  1553. *
  1554. * Read the values for INMIN.
  1555. *
  1556. IF( NEP ) THEN
  1557. READ( NIN, FMT = * )( INMIN( I ), I = 1, NPARMS )
  1558. DO 540 I = 1, NPARMS
  1559. IF( INMIN( I ).LT.0 ) THEN
  1560. WRITE( NOUT, FMT = 9989 )' INMIN ', INMIN( I ), 0
  1561. FATAL = .TRUE.
  1562. END IF
  1563. 540 CONTINUE
  1564. WRITE( NOUT, FMT = 9983 )'INMIN: ',
  1565. $ ( INMIN( I ), I = 1, NPARMS )
  1566. ELSE
  1567. DO 550 I = 1, NPARMS
  1568. INMIN( I ) = 1
  1569. 550 CONTINUE
  1570. END IF
  1571. *
  1572. * Read the values for INWIN.
  1573. *
  1574. IF( NEP ) THEN
  1575. READ( NIN, FMT = * )( INWIN( I ), I = 1, NPARMS )
  1576. DO 560 I = 1, NPARMS
  1577. IF( INWIN( I ).LT.0 ) THEN
  1578. WRITE( NOUT, FMT = 9989 )' INWIN ', INWIN( I ), 0
  1579. FATAL = .TRUE.
  1580. END IF
  1581. 560 CONTINUE
  1582. WRITE( NOUT, FMT = 9983 )'INWIN: ',
  1583. $ ( INWIN( I ), I = 1, NPARMS )
  1584. ELSE
  1585. DO 570 I = 1, NPARMS
  1586. INWIN( I ) = 1
  1587. 570 CONTINUE
  1588. END IF
  1589. *
  1590. * Read the values for INIBL.
  1591. *
  1592. IF( NEP ) THEN
  1593. READ( NIN, FMT = * )( INIBL( I ), I = 1, NPARMS )
  1594. DO 580 I = 1, NPARMS
  1595. IF( INIBL( I ).LT.0 ) THEN
  1596. WRITE( NOUT, FMT = 9989 )' INIBL ', INIBL( I ), 0
  1597. FATAL = .TRUE.
  1598. END IF
  1599. 580 CONTINUE
  1600. WRITE( NOUT, FMT = 9983 )'INIBL: ',
  1601. $ ( INIBL( I ), I = 1, NPARMS )
  1602. ELSE
  1603. DO 590 I = 1, NPARMS
  1604. INIBL( I ) = 1
  1605. 590 CONTINUE
  1606. END IF
  1607. *
  1608. * Read the values for ISHFTS.
  1609. *
  1610. IF( NEP ) THEN
  1611. READ( NIN, FMT = * )( ISHFTS( I ), I = 1, NPARMS )
  1612. DO 600 I = 1, NPARMS
  1613. IF( ISHFTS( I ).LT.0 ) THEN
  1614. WRITE( NOUT, FMT = 9989 )' ISHFTS ', ISHFTS( I ), 0
  1615. FATAL = .TRUE.
  1616. END IF
  1617. 600 CONTINUE
  1618. WRITE( NOUT, FMT = 9983 )'ISHFTS: ',
  1619. $ ( ISHFTS( I ), I = 1, NPARMS )
  1620. ELSE
  1621. DO 610 I = 1, NPARMS
  1622. ISHFTS( I ) = 1
  1623. 610 CONTINUE
  1624. END IF
  1625. *
  1626. * Read the values for IACC22.
  1627. *
  1628. IF( NEP ) THEN
  1629. READ( NIN, FMT = * )( IACC22( I ), I = 1, NPARMS )
  1630. DO 620 I = 1, NPARMS
  1631. IF( IACC22( I ).LT.0 ) THEN
  1632. WRITE( NOUT, FMT = 9989 )' IACC22 ', IACC22( I ), 0
  1633. FATAL = .TRUE.
  1634. END IF
  1635. 620 CONTINUE
  1636. WRITE( NOUT, FMT = 9983 )'IACC22: ',
  1637. $ ( IACC22( I ), I = 1, NPARMS )
  1638. ELSE
  1639. DO 630 I = 1, NPARMS
  1640. IACC22( I ) = 1
  1641. 630 CONTINUE
  1642. END IF
  1643. *
  1644. * Read the values for NBCOL.
  1645. *
  1646. IF( DGG ) THEN
  1647. READ( NIN, FMT = * )( NBCOL( I ), I = 1, NPARMS )
  1648. DO 160 I = 1, NPARMS
  1649. IF( NBCOL( I ).LT.0 ) THEN
  1650. WRITE( NOUT, FMT = 9989 )'NBCOL ', NBCOL( I ), 0
  1651. FATAL = .TRUE.
  1652. ELSE IF( NBCOL( I ).GT.NMAX ) THEN
  1653. WRITE( NOUT, FMT = 9988 )'NBCOL ', NBCOL( I ), NMAX
  1654. FATAL = .TRUE.
  1655. END IF
  1656. 160 CONTINUE
  1657. WRITE( NOUT, FMT = 9983 )'NBCOL:',
  1658. $ ( NBCOL( I ), I = 1, NPARMS )
  1659. ELSE
  1660. DO 170 I = 1, NPARMS
  1661. NBCOL( I ) = 1
  1662. 170 CONTINUE
  1663. END IF
  1664. END IF
  1665. *
  1666. * Calculate and print the machine dependent constants.
  1667. *
  1668. WRITE( NOUT, FMT = * )
  1669. EPS = DLAMCH( 'Underflow threshold' )
  1670. WRITE( NOUT, FMT = 9981 )'underflow', EPS
  1671. EPS = DLAMCH( 'Overflow threshold' )
  1672. WRITE( NOUT, FMT = 9981 )'overflow ', EPS
  1673. EPS = DLAMCH( 'Epsilon' )
  1674. WRITE( NOUT, FMT = 9981 )'precision', EPS
  1675. *
  1676. * Read the threshold value for the test ratios.
  1677. *
  1678. READ( NIN, FMT = * )THRESH
  1679. WRITE( NOUT, FMT = 9982 )THRESH
  1680. IF( SEP .OR. SVD .OR. DGG ) THEN
  1681. *
  1682. * Read the flag that indicates whether to test LAPACK routines.
  1683. *
  1684. READ( NIN, FMT = * )TSTCHK
  1685. *
  1686. * Read the flag that indicates whether to test driver routines.
  1687. *
  1688. READ( NIN, FMT = * )TSTDRV
  1689. END IF
  1690. *
  1691. * Read the flag that indicates whether to test the error exits.
  1692. *
  1693. READ( NIN, FMT = * )TSTERR
  1694. *
  1695. * Read the code describing how to set the random number seed.
  1696. *
  1697. READ( NIN, FMT = * )NEWSD
  1698. *
  1699. * If NEWSD = 2, read another line with 4 integers for the seed.
  1700. *
  1701. IF( NEWSD.EQ.2 )
  1702. $ READ( NIN, FMT = * )( IOLDSD( I ), I = 1, 4 )
  1703. *
  1704. DO 180 I = 1, 4
  1705. ISEED( I ) = IOLDSD( I )
  1706. 180 CONTINUE
  1707. *
  1708. IF( FATAL ) THEN
  1709. WRITE( NOUT, FMT = 9999 )
  1710. STOP
  1711. END IF
  1712. *
  1713. * Read the input lines indicating the test path and its parameters.
  1714. * The first three characters indicate the test path, and the number
  1715. * of test matrix types must be the first nonblank item in columns
  1716. * 4-80.
  1717. *
  1718. 190 CONTINUE
  1719. *
  1720. IF( .NOT.( DGX .OR. DXV ) ) THEN
  1721. *
  1722. 200 CONTINUE
  1723. READ( NIN, FMT = '(A80)', END = 380 )LINE
  1724. C3 = LINE( 1: 3 )
  1725. LENP = LEN( LINE )
  1726. I = 3
  1727. ITMP = 0
  1728. I1 = 0
  1729. 210 CONTINUE
  1730. I = I + 1
  1731. IF( I.GT.LENP ) THEN
  1732. IF( I1.GT.0 ) THEN
  1733. GO TO 240
  1734. ELSE
  1735. NTYPES = MAXT
  1736. GO TO 240
  1737. END IF
  1738. END IF
  1739. IF( LINE( I: I ).NE.' ' .AND. LINE( I: I ).NE.',' ) THEN
  1740. I1 = I
  1741. C1 = LINE( I1: I1 )
  1742. *
  1743. * Check that a valid integer was read
  1744. *
  1745. DO 220 K = 1, 10
  1746. IF( C1.EQ.INTSTR( K: K ) ) THEN
  1747. IC = K - 1
  1748. GO TO 230
  1749. END IF
  1750. 220 CONTINUE
  1751. WRITE( NOUT, FMT = 9991 )I, LINE
  1752. GO TO 200
  1753. 230 CONTINUE
  1754. ITMP = 10*ITMP + IC
  1755. GO TO 210
  1756. ELSE IF( I1.GT.0 ) THEN
  1757. GO TO 240
  1758. ELSE
  1759. GO TO 210
  1760. END IF
  1761. 240 CONTINUE
  1762. NTYPES = ITMP
  1763. *
  1764. * Skip the tests if NTYPES is <= 0.
  1765. *
  1766. IF( .NOT.( DEV .OR. DES .OR. DVX .OR. DSX .OR. DGV .OR.
  1767. $ DGS ) .AND. NTYPES.LE.0 ) THEN
  1768. WRITE( NOUT, FMT = 9990 )C3
  1769. GO TO 200
  1770. END IF
  1771. *
  1772. ELSE
  1773. IF( DXV )
  1774. $ C3 = 'DXV'
  1775. IF( DGX )
  1776. $ C3 = 'DGX'
  1777. END IF
  1778. *
  1779. * Reset the random number seed.
  1780. *
  1781. IF( NEWSD.EQ.0 ) THEN
  1782. DO 250 K = 1, 4
  1783. ISEED( K ) = IOLDSD( K )
  1784. 250 CONTINUE
  1785. END IF
  1786. *
  1787. IF( LSAMEN( 3, C3, 'DHS' ) .OR. LSAMEN( 3, C3, 'NEP' ) ) THEN
  1788. *
  1789. * -------------------------------------
  1790. * NEP: Nonsymmetric Eigenvalue Problem
  1791. * -------------------------------------
  1792. * Vary the parameters
  1793. * NB = block size
  1794. * NBMIN = minimum block size
  1795. * NX = crossover point
  1796. * NS = number of shifts
  1797. * MAXB = minimum submatrix size
  1798. *
  1799. MAXTYP = 21
  1800. NTYPES = MIN( MAXTYP, NTYPES )
  1801. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  1802. CALL XLAENV( 1, 1 )
  1803. IF( TSTERR )
  1804. $ CALL DERRHS( 'DHSEQR', NOUT )
  1805. DO 270 I = 1, NPARMS
  1806. CALL XLAENV( 1, NBVAL( I ) )
  1807. CALL XLAENV( 2, NBMIN( I ) )
  1808. CALL XLAENV( 3, NXVAL( I ) )
  1809. CALL XLAENV(12, MAX( 11, INMIN( I ) ) )
  1810. CALL XLAENV(13, INWIN( I ) )
  1811. CALL XLAENV(14, INIBL( I ) )
  1812. CALL XLAENV(15, ISHFTS( I ) )
  1813. CALL XLAENV(16, IACC22( I ) )
  1814. *
  1815. IF( NEWSD.EQ.0 ) THEN
  1816. DO 260 K = 1, 4
  1817. ISEED( K ) = IOLDSD( K )
  1818. 260 CONTINUE
  1819. END IF
  1820. WRITE( NOUT, FMT = 9961 )C3, NBVAL( I ), NBMIN( I ),
  1821. $ NXVAL( I ), MAX( 11, INMIN(I)),
  1822. $ INWIN( I ), INIBL( I ), ISHFTS( I ), IACC22( I )
  1823. CALL DCHKHS( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH, NOUT,
  1824. $ A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  1825. $ A( 1, 4 ), A( 1, 5 ), NMAX, A( 1, 6 ),
  1826. $ A( 1, 7 ), D( 1, 1 ), D( 1, 2 ), D( 1, 3 ),
  1827. $ D( 1, 4 ), A( 1, 8 ), A( 1, 9 ), A( 1, 10 ),
  1828. $ A( 1, 11 ), A( 1, 12 ), D( 1, 5 ), WORK, LWORK,
  1829. $ IWORK, LOGWRK, RESULT, INFO )
  1830. IF( INFO.NE.0 )
  1831. $ WRITE( NOUT, FMT = 9980 )'DCHKHS', INFO
  1832. 270 CONTINUE
  1833. *
  1834. ELSE IF( LSAMEN( 3, C3, 'DST' ) .OR. LSAMEN( 3, C3, 'SEP' ) ) THEN
  1835. *
  1836. * ----------------------------------
  1837. * SEP: Symmetric Eigenvalue Problem
  1838. * ----------------------------------
  1839. * Vary the parameters
  1840. * NB = block size
  1841. * NBMIN = minimum block size
  1842. * NX = crossover point
  1843. *
  1844. MAXTYP = 21
  1845. NTYPES = MIN( MAXTYP, NTYPES )
  1846. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  1847. CALL XLAENV( 1, 1 )
  1848. CALL XLAENV( 9, 25 )
  1849. IF( TSTERR )
  1850. $ CALL DERRST( 'DST', NOUT )
  1851. DO 290 I = 1, NPARMS
  1852. CALL XLAENV( 1, NBVAL( I ) )
  1853. CALL XLAENV( 2, NBMIN( I ) )
  1854. CALL XLAENV( 3, NXVAL( I ) )
  1855. *
  1856. IF( NEWSD.EQ.0 ) THEN
  1857. DO 280 K = 1, 4
  1858. ISEED( K ) = IOLDSD( K )
  1859. 280 CONTINUE
  1860. END IF
  1861. WRITE( NOUT, FMT = 9997 )C3, NBVAL( I ), NBMIN( I ),
  1862. $ NXVAL( I )
  1863. IF( TSTCHK ) THEN
  1864. CALL DCHKST( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  1865. $ NOUT, A( 1, 1 ), NMAX, A( 1, 2 ), D( 1, 1 ),
  1866. $ D( 1, 2 ), D( 1, 3 ), D( 1, 4 ), D( 1, 5 ),
  1867. $ D( 1, 6 ), D( 1, 7 ), D( 1, 8 ), D( 1, 9 ),
  1868. $ D( 1, 10 ), D( 1, 11 ), A( 1, 3 ), NMAX,
  1869. $ A( 1, 4 ), A( 1, 5 ), D( 1, 12 ), A( 1, 6 ),
  1870. $ WORK, LWORK, IWORK, LIWORK, RESULT, INFO )
  1871. IF( INFO.NE.0 )
  1872. $ WRITE( NOUT, FMT = 9980 )'DCHKST', INFO
  1873. END IF
  1874. IF( TSTDRV ) THEN
  1875. CALL DDRVST( NN, NVAL, 18, DOTYPE, ISEED, THRESH, NOUT,
  1876. $ A( 1, 1 ), NMAX, D( 1, 3 ), D( 1, 4 ),
  1877. $ D( 1, 5 ), D( 1, 6 ), D( 1, 8 ), D( 1, 9 ),
  1878. $ D( 1, 10 ), D( 1, 11 ), A( 1, 2 ), NMAX,
  1879. $ A( 1, 3 ), D( 1, 12 ), A( 1, 4 ), WORK,
  1880. $ LWORK, IWORK, LIWORK, RESULT, INFO )
  1881. IF( INFO.NE.0 )
  1882. $ WRITE( NOUT, FMT = 9980 )'DDRVST', INFO
  1883. END IF
  1884. 290 CONTINUE
  1885. *
  1886. ELSE IF( LSAMEN( 3, C3, 'DSG' ) ) THEN
  1887. *
  1888. * ----------------------------------------------
  1889. * DSG: Symmetric Generalized Eigenvalue Problem
  1890. * ----------------------------------------------
  1891. * Vary the parameters
  1892. * NB = block size
  1893. * NBMIN = minimum block size
  1894. * NX = crossover point
  1895. *
  1896. MAXTYP = 21
  1897. NTYPES = MIN( MAXTYP, NTYPES )
  1898. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  1899. CALL XLAENV( 9, 25 )
  1900. DO 310 I = 1, NPARMS
  1901. CALL XLAENV( 1, NBVAL( I ) )
  1902. CALL XLAENV( 2, NBMIN( I ) )
  1903. CALL XLAENV( 3, NXVAL( I ) )
  1904. *
  1905. IF( NEWSD.EQ.0 ) THEN
  1906. DO 300 K = 1, 4
  1907. ISEED( K ) = IOLDSD( K )
  1908. 300 CONTINUE
  1909. END IF
  1910. WRITE( NOUT, FMT = 9997 )C3, NBVAL( I ), NBMIN( I ),
  1911. $ NXVAL( I )
  1912. IF( TSTCHK ) THEN
  1913. CALL DDRVSG( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  1914. $ NOUT, A( 1, 1 ), NMAX, A( 1, 2 ), NMAX,
  1915. $ D( 1, 3 ), A( 1, 3 ), NMAX, A( 1, 4 ),
  1916. $ A( 1, 5 ), A( 1, 6 ), A( 1, 7 ), WORK,
  1917. $ LWORK, IWORK, LIWORK, RESULT, INFO )
  1918. IF( INFO.NE.0 )
  1919. $ WRITE( NOUT, FMT = 9980 )'DDRVSG', INFO
  1920. END IF
  1921. 310 CONTINUE
  1922. *
  1923. ELSE IF( LSAMEN( 3, C3, 'DBD' ) .OR. LSAMEN( 3, C3, 'SVD' ) ) THEN
  1924. *
  1925. * ----------------------------------
  1926. * SVD: Singular Value Decomposition
  1927. * ----------------------------------
  1928. * Vary the parameters
  1929. * NB = block size
  1930. * NBMIN = minimum block size
  1931. * NX = crossover point
  1932. * NRHS = number of right hand sides
  1933. *
  1934. MAXTYP = 16
  1935. NTYPES = MIN( MAXTYP, NTYPES )
  1936. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  1937. CALL XLAENV( 1, 1 )
  1938. CALL XLAENV( 9, 25 )
  1939. *
  1940. * Test the error exits
  1941. *
  1942. IF( TSTERR .AND. TSTCHK )
  1943. $ CALL DERRBD( 'DBD', NOUT )
  1944. IF( TSTERR .AND. TSTDRV )
  1945. $ CALL DERRED( 'DBD', NOUT )
  1946. *
  1947. DO 330 I = 1, NPARMS
  1948. NRHS = NSVAL( I )
  1949. CALL XLAENV( 1, NBVAL( I ) )
  1950. CALL XLAENV( 2, NBMIN( I ) )
  1951. CALL XLAENV( 3, NXVAL( I ) )
  1952. IF( NEWSD.EQ.0 ) THEN
  1953. DO 320 K = 1, 4
  1954. ISEED( K ) = IOLDSD( K )
  1955. 320 CONTINUE
  1956. END IF
  1957. WRITE( NOUT, FMT = 9995 )C3, NBVAL( I ), NBMIN( I ),
  1958. $ NXVAL( I ), NRHS
  1959. IF( TSTCHK ) THEN
  1960. CALL DCHKBD( NN, MVAL, NVAL, MAXTYP, DOTYPE, NRHS, ISEED,
  1961. $ THRESH, A( 1, 1 ), NMAX, D( 1, 1 ),
  1962. $ D( 1, 2 ), D( 1, 3 ), D( 1, 4 ), A( 1, 2 ),
  1963. $ NMAX, A( 1, 3 ), A( 1, 4 ), A( 1, 5 ), NMAX,
  1964. $ A( 1, 6 ), NMAX, A( 1, 7 ), A( 1, 8 ), WORK,
  1965. $ LWORK, IWORK, NOUT, INFO )
  1966. IF( INFO.NE.0 )
  1967. $ WRITE( NOUT, FMT = 9980 )'DCHKBD', INFO
  1968. END IF
  1969. IF( TSTDRV )
  1970. $ CALL DDRVBD( NN, MVAL, NVAL, MAXTYP, DOTYPE, ISEED,
  1971. $ THRESH, A( 1, 1 ), NMAX, A( 1, 2 ), NMAX,
  1972. $ A( 1, 3 ), NMAX, A( 1, 4 ), A( 1, 5 ),
  1973. $ A( 1, 6 ), D( 1, 1 ), D( 1, 2 ), D( 1, 3 ),
  1974. $ WORK, LWORK, IWORK, NOUT, INFO )
  1975. 330 CONTINUE
  1976. *
  1977. ELSE IF( LSAMEN( 3, C3, 'DEV' ) ) THEN
  1978. *
  1979. * --------------------------------------------
  1980. * DEV: Nonsymmetric Eigenvalue Problem Driver
  1981. * DGEEV (eigenvalues and eigenvectors)
  1982. * --------------------------------------------
  1983. *
  1984. MAXTYP = 21
  1985. NTYPES = MIN( MAXTYP, NTYPES )
  1986. IF( NTYPES.LE.0 ) THEN
  1987. WRITE( NOUT, FMT = 9990 )C3
  1988. ELSE
  1989. IF( TSTERR )
  1990. $ CALL DERRED( C3, NOUT )
  1991. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  1992. CALL DDRVEV( NN, NVAL, NTYPES, DOTYPE, ISEED, THRESH, NOUT,
  1993. $ A( 1, 1 ), NMAX, A( 1, 2 ), D( 1, 1 ),
  1994. $ D( 1, 2 ), D( 1, 3 ), D( 1, 4 ), A( 1, 3 ),
  1995. $ NMAX, A( 1, 4 ), NMAX, A( 1, 5 ), NMAX, RESULT,
  1996. $ WORK, LWORK, IWORK, INFO )
  1997. IF( INFO.NE.0 )
  1998. $ WRITE( NOUT, FMT = 9980 )'DGEEV', INFO
  1999. END IF
  2000. WRITE( NOUT, FMT = 9973 )
  2001. GO TO 10
  2002. *
  2003. ELSE IF( LSAMEN( 3, C3, 'DES' ) ) THEN
  2004. *
  2005. * --------------------------------------------
  2006. * DES: Nonsymmetric Eigenvalue Problem Driver
  2007. * DGEES (Schur form)
  2008. * --------------------------------------------
  2009. *
  2010. MAXTYP = 21
  2011. NTYPES = MIN( MAXTYP, NTYPES )
  2012. IF( NTYPES.LE.0 ) THEN
  2013. WRITE( NOUT, FMT = 9990 )C3
  2014. ELSE
  2015. IF( TSTERR )
  2016. $ CALL DERRED( C3, NOUT )
  2017. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2018. CALL DDRVES( NN, NVAL, NTYPES, DOTYPE, ISEED, THRESH, NOUT,
  2019. $ A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  2020. $ D( 1, 1 ), D( 1, 2 ), D( 1, 3 ), D( 1, 4 ),
  2021. $ A( 1, 4 ), NMAX, RESULT, WORK, LWORK, IWORK,
  2022. $ LOGWRK, INFO )
  2023. IF( INFO.NE.0 )
  2024. $ WRITE( NOUT, FMT = 9980 )'DGEES', INFO
  2025. END IF
  2026. WRITE( NOUT, FMT = 9973 )
  2027. GO TO 10
  2028. *
  2029. ELSE IF( LSAMEN( 3, C3, 'DVX' ) ) THEN
  2030. *
  2031. * --------------------------------------------------------------
  2032. * DVX: Nonsymmetric Eigenvalue Problem Expert Driver
  2033. * DGEEVX (eigenvalues, eigenvectors and condition numbers)
  2034. * --------------------------------------------------------------
  2035. *
  2036. MAXTYP = 21
  2037. NTYPES = MIN( MAXTYP, NTYPES )
  2038. IF( NTYPES.LT.0 ) THEN
  2039. WRITE( NOUT, FMT = 9990 )C3
  2040. ELSE
  2041. IF( TSTERR )
  2042. $ CALL DERRED( C3, NOUT )
  2043. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2044. CALL DDRVVX( NN, NVAL, NTYPES, DOTYPE, ISEED, THRESH, NIN,
  2045. $ NOUT, A( 1, 1 ), NMAX, A( 1, 2 ), D( 1, 1 ),
  2046. $ D( 1, 2 ), D( 1, 3 ), D( 1, 4 ), A( 1, 3 ),
  2047. $ NMAX, A( 1, 4 ), NMAX, A( 1, 5 ), NMAX,
  2048. $ D( 1, 5 ), D( 1, 6 ), D( 1, 7 ), D( 1, 8 ),
  2049. $ D( 1, 9 ), D( 1, 10 ), D( 1, 11 ), D( 1, 12 ),
  2050. $ RESULT, WORK, LWORK, IWORK, INFO )
  2051. IF( INFO.NE.0 )
  2052. $ WRITE( NOUT, FMT = 9980 )'DGEEVX', INFO
  2053. END IF
  2054. WRITE( NOUT, FMT = 9973 )
  2055. GO TO 10
  2056. *
  2057. ELSE IF( LSAMEN( 3, C3, 'DSX' ) ) THEN
  2058. *
  2059. * ---------------------------------------------------
  2060. * DSX: Nonsymmetric Eigenvalue Problem Expert Driver
  2061. * DGEESX (Schur form and condition numbers)
  2062. * ---------------------------------------------------
  2063. *
  2064. MAXTYP = 21
  2065. NTYPES = MIN( MAXTYP, NTYPES )
  2066. IF( NTYPES.LT.0 ) THEN
  2067. WRITE( NOUT, FMT = 9990 )C3
  2068. ELSE
  2069. IF( TSTERR )
  2070. $ CALL DERRED( C3, NOUT )
  2071. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2072. CALL DDRVSX( NN, NVAL, NTYPES, DOTYPE, ISEED, THRESH, NIN,
  2073. $ NOUT, A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  2074. $ D( 1, 1 ), D( 1, 2 ), D( 1, 3 ), D( 1, 4 ),
  2075. $ D( 1, 5 ), D( 1, 6 ), A( 1, 4 ), NMAX,
  2076. $ A( 1, 5 ), RESULT, WORK, LWORK, IWORK, LOGWRK,
  2077. $ INFO )
  2078. IF( INFO.NE.0 )
  2079. $ WRITE( NOUT, FMT = 9980 )'DGEESX', INFO
  2080. END IF
  2081. WRITE( NOUT, FMT = 9973 )
  2082. GO TO 10
  2083. *
  2084. ELSE IF( LSAMEN( 3, C3, 'DGG' ) ) THEN
  2085. *
  2086. * -------------------------------------------------
  2087. * DGG: Generalized Nonsymmetric Eigenvalue Problem
  2088. * -------------------------------------------------
  2089. * Vary the parameters
  2090. * NB = block size
  2091. * NBMIN = minimum block size
  2092. * NS = number of shifts
  2093. * MAXB = minimum submatrix size
  2094. * NBCOL = minimum column dimension for blocks
  2095. *
  2096. MAXTYP = 26
  2097. NTYPES = MIN( MAXTYP, NTYPES )
  2098. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2099. IF( TSTCHK .AND. TSTERR )
  2100. $ CALL DERRGG( C3, NOUT )
  2101. DO 350 I = 1, NPARMS
  2102. CALL XLAENV( 1, NBVAL( I ) )
  2103. CALL XLAENV( 2, NBMIN( I ) )
  2104. CALL XLAENV( 4, NSVAL( I ) )
  2105. CALL XLAENV( 8, MXBVAL( I ) )
  2106. CALL XLAENV( 5, NBCOL( I ) )
  2107. *
  2108. IF( NEWSD.EQ.0 ) THEN
  2109. DO 340 K = 1, 4
  2110. ISEED( K ) = IOLDSD( K )
  2111. 340 CONTINUE
  2112. END IF
  2113. WRITE( NOUT, FMT = 9996 )C3, NBVAL( I ), NBMIN( I ),
  2114. $ NSVAL( I ), MXBVAL( I ), NBCOL( I )
  2115. TSTDIF = .FALSE.
  2116. THRSHN = 10.D0
  2117. IF( TSTCHK ) THEN
  2118. CALL DCHKGG( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  2119. $ TSTDIF, THRSHN, NOUT, A( 1, 1 ), NMAX,
  2120. $ A( 1, 2 ), A( 1, 3 ), A( 1, 4 ), A( 1, 5 ),
  2121. $ A( 1, 6 ), A( 1, 7 ), A( 1, 8 ), A( 1, 9 ),
  2122. $ NMAX, A( 1, 10 ), A( 1, 11 ), A( 1, 12 ),
  2123. $ D( 1, 1 ), D( 1, 2 ), D( 1, 3 ), D( 1, 4 ),
  2124. $ D( 1, 5 ), D( 1, 6 ), A( 1, 13 ),
  2125. $ A( 1, 14 ), WORK, LWORK, LOGWRK, RESULT,
  2126. $ INFO )
  2127. IF( INFO.NE.0 )
  2128. $ WRITE( NOUT, FMT = 9980 )'DCHKGG', INFO
  2129. END IF
  2130. CALL XLAENV( 1, 1 )
  2131. IF( TSTDRV ) THEN
  2132. CALL DDRVGG( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  2133. $ THRSHN, NOUT, A( 1, 1 ), NMAX, A( 1, 2 ),
  2134. $ A( 1, 3 ), A( 1, 4 ), A( 1, 5 ), A( 1, 6 ),
  2135. $ A( 1, 7 ), NMAX, A( 1, 8 ), D( 1, 1 ),
  2136. $ D( 1, 2 ), D( 1, 3 ), D( 1, 4 ), D( 1, 5 ),
  2137. $ D( 1, 6 ), A( 1, 13 ), A( 1, 14 ), WORK,
  2138. $ LWORK, RESULT, INFO )
  2139. IF( INFO.NE.0 )
  2140. $ WRITE( NOUT, FMT = 9980 )'DDRVGG', INFO
  2141. END IF
  2142. 350 CONTINUE
  2143. *
  2144. ELSE IF( LSAMEN( 3, C3, 'DGS' ) ) THEN
  2145. *
  2146. * -------------------------------------------------
  2147. * DGS: Generalized Nonsymmetric Eigenvalue Problem
  2148. * DGGES (Schur form)
  2149. * -------------------------------------------------
  2150. *
  2151. MAXTYP = 26
  2152. NTYPES = MIN( MAXTYP, NTYPES )
  2153. IF( NTYPES.LE.0 ) THEN
  2154. WRITE( NOUT, FMT = 9990 )C3
  2155. ELSE
  2156. IF( TSTERR )
  2157. $ CALL DERRGG( C3, NOUT )
  2158. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2159. CALL DDRGES( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH, NOUT,
  2160. $ A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  2161. $ A( 1, 4 ), A( 1, 7 ), NMAX, A( 1, 8 ),
  2162. $ D( 1, 1 ), D( 1, 2 ), D( 1, 3 ), WORK, LWORK,
  2163. $ RESULT, LOGWRK, INFO )
  2164. *
  2165. IF( INFO.NE.0 )
  2166. $ WRITE( NOUT, FMT = 9980 )'DDRGES', INFO
  2167. END IF
  2168. WRITE( NOUT, FMT = 9973 )
  2169. GO TO 10
  2170. *
  2171. ELSE IF( DGX ) THEN
  2172. *
  2173. * -------------------------------------------------
  2174. * DGX: Generalized Nonsymmetric Eigenvalue Problem
  2175. * DGGESX (Schur form and condition numbers)
  2176. * -------------------------------------------------
  2177. *
  2178. MAXTYP = 5
  2179. NTYPES = MAXTYP
  2180. IF( NN.LT.0 ) THEN
  2181. WRITE( NOUT, FMT = 9990 )C3
  2182. ELSE
  2183. IF( TSTERR )
  2184. $ CALL DERRGG( C3, NOUT )
  2185. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2186. CALL XLAENV( 5, 2 )
  2187. CALL DDRGSX( NN, NCMAX, THRESH, NIN, NOUT, A( 1, 1 ), NMAX,
  2188. $ A( 1, 2 ), A( 1, 3 ), A( 1, 4 ), A( 1, 5 ),
  2189. $ A( 1, 6 ), D( 1, 1 ), D( 1, 2 ), D( 1, 3 ),
  2190. $ C( 1, 1 ), NCMAX*NCMAX, A( 1, 12 ), WORK,
  2191. $ LWORK, IWORK, LIWORK, LOGWRK, INFO )
  2192. IF( INFO.NE.0 )
  2193. $ WRITE( NOUT, FMT = 9980 )'DDRGSX', INFO
  2194. END IF
  2195. WRITE( NOUT, FMT = 9973 )
  2196. GO TO 10
  2197. *
  2198. ELSE IF( LSAMEN( 3, C3, 'DGV' ) ) THEN
  2199. *
  2200. * -------------------------------------------------
  2201. * DGV: Generalized Nonsymmetric Eigenvalue Problem
  2202. * DGGEV (Eigenvalue/vector form)
  2203. * -------------------------------------------------
  2204. *
  2205. MAXTYP = 26
  2206. NTYPES = MIN( MAXTYP, NTYPES )
  2207. IF( NTYPES.LE.0 ) THEN
  2208. WRITE( NOUT, FMT = 9990 )C3
  2209. ELSE
  2210. IF( TSTERR )
  2211. $ CALL DERRGG( C3, NOUT )
  2212. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2213. CALL DDRGEV( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH, NOUT,
  2214. $ A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  2215. $ A( 1, 4 ), A( 1, 7 ), NMAX, A( 1, 8 ),
  2216. $ A( 1, 9 ), NMAX, D( 1, 1 ), D( 1, 2 ),
  2217. $ D( 1, 3 ), D( 1, 4 ), D( 1, 5 ), D( 1, 6 ),
  2218. $ WORK, LWORK, RESULT, INFO )
  2219. IF( INFO.NE.0 )
  2220. $ WRITE( NOUT, FMT = 9980 )'DDRGEV', INFO
  2221. END IF
  2222. WRITE( NOUT, FMT = 9973 )
  2223. GO TO 10
  2224. *
  2225. ELSE IF( DXV ) THEN
  2226. *
  2227. * -------------------------------------------------
  2228. * DXV: Generalized Nonsymmetric Eigenvalue Problem
  2229. * DGGEVX (eigenvalue/vector with condition numbers)
  2230. * -------------------------------------------------
  2231. *
  2232. MAXTYP = 2
  2233. NTYPES = MAXTYP
  2234. IF( NN.LT.0 ) THEN
  2235. WRITE( NOUT, FMT = 9990 )C3
  2236. ELSE
  2237. IF( TSTERR )
  2238. $ CALL DERRGG( C3, NOUT )
  2239. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2240. CALL DDRGVX( NN, THRESH, NIN, NOUT, A( 1, 1 ), NMAX,
  2241. $ A( 1, 2 ), A( 1, 3 ), A( 1, 4 ), D( 1, 1 ),
  2242. $ D( 1, 2 ), D( 1, 3 ), A( 1, 5 ), A( 1, 6 ),
  2243. $ IWORK( 1 ), IWORK( 2 ), D( 1, 4 ), D( 1, 5 ),
  2244. $ D( 1, 6 ), D( 1, 7 ), D( 1, 8 ), D( 1, 9 ),
  2245. $ WORK, LWORK, IWORK( 3 ), LIWORK-2, RESULT,
  2246. $ LOGWRK, INFO )
  2247. *
  2248. IF( INFO.NE.0 )
  2249. $ WRITE( NOUT, FMT = 9980 )'DDRGVX', INFO
  2250. END IF
  2251. WRITE( NOUT, FMT = 9973 )
  2252. GO TO 10
  2253. *
  2254. ELSE IF( LSAMEN( 3, C3, 'DSB' ) ) THEN
  2255. *
  2256. * ------------------------------
  2257. * DSB: Symmetric Band Reduction
  2258. * ------------------------------
  2259. *
  2260. MAXTYP = 15
  2261. NTYPES = MIN( MAXTYP, NTYPES )
  2262. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2263. IF( TSTERR )
  2264. $ CALL DERRST( 'DSB', NOUT )
  2265. CALL DCHKSB( NN, NVAL, NK, KVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  2266. $ NOUT, A( 1, 1 ), NMAX, D( 1, 1 ), D( 1, 2 ),
  2267. $ A( 1, 2 ), NMAX, WORK, LWORK, RESULT, INFO )
  2268. IF( INFO.NE.0 )
  2269. $ WRITE( NOUT, FMT = 9980 )'DCHKSB', INFO
  2270. *
  2271. ELSE IF( LSAMEN( 3, C3, 'DBB' ) ) THEN
  2272. *
  2273. * ------------------------------
  2274. * DBB: General Band Reduction
  2275. * ------------------------------
  2276. *
  2277. MAXTYP = 15
  2278. NTYPES = MIN( MAXTYP, NTYPES )
  2279. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2280. DO 370 I = 1, NPARMS
  2281. NRHS = NSVAL( I )
  2282. *
  2283. IF( NEWSD.EQ.0 ) THEN
  2284. DO 360 K = 1, 4
  2285. ISEED( K ) = IOLDSD( K )
  2286. 360 CONTINUE
  2287. END IF
  2288. WRITE( NOUT, FMT = 9966 )C3, NRHS
  2289. CALL DCHKBB( NN, MVAL, NVAL, NK, KVAL, MAXTYP, DOTYPE, NRHS,
  2290. $ ISEED, THRESH, NOUT, A( 1, 1 ), NMAX,
  2291. $ A( 1, 2 ), 2*NMAX, D( 1, 1 ), D( 1, 2 ),
  2292. $ A( 1, 4 ), NMAX, A( 1, 5 ), NMAX, A( 1, 6 ),
  2293. $ NMAX, A( 1, 7 ), WORK, LWORK, RESULT, INFO )
  2294. IF( INFO.NE.0 )
  2295. $ WRITE( NOUT, FMT = 9980 )'DCHKBB', INFO
  2296. 370 CONTINUE
  2297. *
  2298. ELSE IF( LSAMEN( 3, C3, 'GLM' ) ) THEN
  2299. *
  2300. * -----------------------------------------
  2301. * GLM: Generalized Linear Regression Model
  2302. * -----------------------------------------
  2303. *
  2304. CALL XLAENV( 1, 1 )
  2305. IF( TSTERR )
  2306. $ CALL DERRGG( 'GLM', NOUT )
  2307. CALL DCKGLM( NN, MVAL, PVAL, NVAL, NTYPES, ISEED, THRESH, NMAX,
  2308. $ A( 1, 1 ), A( 1, 2 ), B( 1, 1 ), B( 1, 2 ), X,
  2309. $ WORK, D( 1, 1 ), NIN, NOUT, INFO )
  2310. IF( INFO.NE.0 )
  2311. $ WRITE( NOUT, FMT = 9980 )'DCKGLM', INFO
  2312. *
  2313. ELSE IF( LSAMEN( 3, C3, 'GQR' ) ) THEN
  2314. *
  2315. * ------------------------------------------
  2316. * GQR: Generalized QR and RQ factorizations
  2317. * ------------------------------------------
  2318. *
  2319. CALL XLAENV( 1, 1 )
  2320. IF( TSTERR )
  2321. $ CALL DERRGG( 'GQR', NOUT )
  2322. CALL DCKGQR( NN, MVAL, NN, PVAL, NN, NVAL, NTYPES, ISEED,
  2323. $ THRESH, NMAX, A( 1, 1 ), A( 1, 2 ), A( 1, 3 ),
  2324. $ A( 1, 4 ), TAUA, B( 1, 1 ), B( 1, 2 ), B( 1, 3 ),
  2325. $ B( 1, 4 ), B( 1, 5 ), TAUB, WORK, D( 1, 1 ), NIN,
  2326. $ NOUT, INFO )
  2327. IF( INFO.NE.0 )
  2328. $ WRITE( NOUT, FMT = 9980 )'DCKGQR', INFO
  2329. *
  2330. ELSE IF( LSAMEN( 3, C3, 'GSV' ) ) THEN
  2331. *
  2332. * ----------------------------------------------
  2333. * GSV: Generalized Singular Value Decomposition
  2334. * ----------------------------------------------
  2335. *
  2336. IF( TSTERR )
  2337. $ CALL DERRGG( 'GSV', NOUT )
  2338. CALL DCKGSV( NN, MVAL, PVAL, NVAL, NTYPES, ISEED, THRESH, NMAX,
  2339. $ A( 1, 1 ), A( 1, 2 ), B( 1, 1 ), B( 1, 2 ),
  2340. $ A( 1, 3 ), B( 1, 3 ), A( 1, 4 ), TAUA, TAUB,
  2341. $ B( 1, 4 ), IWORK, WORK, D( 1, 1 ), NIN, NOUT,
  2342. $ INFO )
  2343. IF( INFO.NE.0 )
  2344. $ WRITE( NOUT, FMT = 9980 )'DCKGSV', INFO
  2345. *
  2346. ELSE IF( LSAMEN( 3, C3, 'CSD' ) ) THEN
  2347. *
  2348. * ----------------------------------------------
  2349. * CSD: CS Decomposition
  2350. * ----------------------------------------------
  2351. *
  2352. CALL XLAENV(1,1)
  2353. IF( TSTERR )
  2354. $ CALL DERRGG( 'CSD', NOUT )
  2355. CALL DCKCSD( NN, MVAL, PVAL, NVAL, NTYPES, ISEED, THRESH, NMAX,
  2356. $ A( 1, 1 ), A( 1, 2 ), A( 1, 3 ), A( 1, 4 ),
  2357. $ A( 1, 5 ), A( 1, 6 ), A( 1, 7 ), IWORK, WORK,
  2358. $ D( 1, 1 ), NIN, NOUT, INFO )
  2359. IF( INFO.NE.0 )
  2360. $ WRITE( NOUT, FMT = 9980 )'DCKCSD', INFO
  2361. *
  2362. ELSE IF( LSAMEN( 3, C3, 'LSE' ) ) THEN
  2363. *
  2364. * --------------------------------------
  2365. * LSE: Constrained Linear Least Squares
  2366. * --------------------------------------
  2367. *
  2368. CALL XLAENV( 1, 1 )
  2369. IF( TSTERR )
  2370. $ CALL DERRGG( 'LSE', NOUT )
  2371. CALL DCKLSE( NN, MVAL, PVAL, NVAL, NTYPES, ISEED, THRESH, NMAX,
  2372. $ A( 1, 1 ), A( 1, 2 ), B( 1, 1 ), B( 1, 2 ), X,
  2373. $ WORK, D( 1, 1 ), NIN, NOUT, INFO )
  2374. IF( INFO.NE.0 )
  2375. $ WRITE( NOUT, FMT = 9980 )'DCKLSE', INFO
  2376. *
  2377. ELSE
  2378. WRITE( NOUT, FMT = * )
  2379. WRITE( NOUT, FMT = * )
  2380. WRITE( NOUT, FMT = 9992 )C3
  2381. END IF
  2382. IF( .NOT.( DGX .OR. DXV ) )
  2383. $ GO TO 190
  2384. 380 CONTINUE
  2385. WRITE( NOUT, FMT = 9994 )
  2386. S2 = DSECND( )
  2387. WRITE( NOUT, FMT = 9993 )S2 - S1
  2388. *
  2389. 9999 FORMAT( / ' Execution not attempted due to input errors' )
  2390. 9997 FORMAT( / / 1X, A3, ': NB =', I4, ', NBMIN =', I4, ', NX =', I4 )
  2391. 9996 FORMAT( / / 1X, A3, ': NB =', I4, ', NBMIN =', I4, ', NS =', I4,
  2392. $ ', MAXB =', I4, ', NBCOL =', I4 )
  2393. 9995 FORMAT( / / 1X, A3, ': NB =', I4, ', NBMIN =', I4, ', NX =', I4,
  2394. $ ', NRHS =', I4 )
  2395. 9994 FORMAT( / / ' End of tests' )
  2396. 9993 FORMAT( ' Total time used = ', F12.2, ' seconds', / )
  2397. 9992 FORMAT( 1X, A3, ': Unrecognized path name' )
  2398. 9991 FORMAT( / / ' *** Invalid integer value in column ', I2,
  2399. $ ' of input', ' line:', / A79 )
  2400. 9990 FORMAT( / / 1X, A3, ' routines were not tested' )
  2401. 9989 FORMAT( ' Invalid input value: ', A, '=', I6, '; must be >=',
  2402. $ I6 )
  2403. 9988 FORMAT( ' Invalid input value: ', A, '=', I6, '; must be <=',
  2404. $ I6 )
  2405. 9987 FORMAT( ' Tests of the Nonsymmetric Eigenvalue Problem routines' )
  2406. 9986 FORMAT( ' Tests of the Symmetric Eigenvalue Problem routines' )
  2407. 9985 FORMAT( ' Tests of the Singular Value Decomposition routines' )
  2408. 9984 FORMAT( / ' The following parameter values will be used:' )
  2409. 9983 FORMAT( 4X, A, 10I6, / 10X, 10I6 )
  2410. 9982 FORMAT( / ' Routines pass computational tests if test ratio is ',
  2411. $ 'less than', F8.2, / )
  2412. 9981 FORMAT( ' Relative machine ', A, ' is taken to be', D16.6 )
  2413. 9980 FORMAT( ' *** Error code from ', A, ' = ', I4 )
  2414. 9979 FORMAT( / ' Tests of the Nonsymmetric Eigenvalue Problem Driver',
  2415. $ / ' DGEEV (eigenvalues and eigevectors)' )
  2416. 9978 FORMAT( / ' Tests of the Nonsymmetric Eigenvalue Problem Driver',
  2417. $ / ' DGEES (Schur form)' )
  2418. 9977 FORMAT( / ' Tests of the Nonsymmetric Eigenvalue Problem Expert',
  2419. $ ' Driver', / ' DGEEVX (eigenvalues, eigenvectors and',
  2420. $ ' condition numbers)' )
  2421. 9976 FORMAT( / ' Tests of the Nonsymmetric Eigenvalue Problem Expert',
  2422. $ ' Driver', / ' DGEESX (Schur form and condition',
  2423. $ ' numbers)' )
  2424. 9975 FORMAT( / ' Tests of the Generalized Nonsymmetric Eigenvalue ',
  2425. $ 'Problem routines' )
  2426. 9974 FORMAT( ' Tests of DSBTRD', / ' (reduction of a symmetric band ',
  2427. $ 'matrix to tridiagonal form)' )
  2428. 9973 FORMAT( / 1X, 71( '-' ) )
  2429. 9972 FORMAT( / ' LAPACK VERSION ', I1, '.', I1, '.', I1 )
  2430. 9971 FORMAT( / ' Tests of the Generalized Linear Regression Model ',
  2431. $ 'routines' )
  2432. 9970 FORMAT( / ' Tests of the Generalized QR and RQ routines' )
  2433. 9969 FORMAT( / ' Tests of the Generalized Singular Value',
  2434. $ ' Decomposition routines' )
  2435. 9968 FORMAT( / ' Tests of the Linear Least Squares routines' )
  2436. 9967 FORMAT( ' Tests of DGBBRD', / ' (reduction of a general band ',
  2437. $ 'matrix to real bidiagonal form)' )
  2438. 9966 FORMAT( / / 1X, A3, ': NRHS =', I4 )
  2439. 9965 FORMAT( / ' Tests of the Generalized Nonsymmetric Eigenvalue ',
  2440. $ 'Problem Expert Driver DGGESX' )
  2441. 9964 FORMAT( / ' Tests of the Generalized Nonsymmetric Eigenvalue ',
  2442. $ 'Problem Driver DGGES' )
  2443. 9963 FORMAT( / ' Tests of the Generalized Nonsymmetric Eigenvalue ',
  2444. $ 'Problem Driver DGGEV' )
  2445. 9962 FORMAT( / ' Tests of the Generalized Nonsymmetric Eigenvalue ',
  2446. $ 'Problem Expert Driver DGGEVX' )
  2447. 9961 FORMAT( / / 1X, A3, ': NB =', I4, ', NBMIN =', I4, ', NX =', I4,
  2448. $ ', INMIN=', I4,
  2449. $ ', INWIN =', I4, ', INIBL =', I4, ', ISHFTS =', I4,
  2450. $ ', IACC22 =', I4)
  2451. 9960 FORMAT( / ' Tests of the CS Decomposition routines' )
  2452. *
  2453. * End of DCHKEE
  2454. *
  2455. END