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.

zchkee.F 94 kB

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