You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

dchkee.f 90 kB

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