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 92 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505
  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. *> \date June 2016
  1031. *
  1032. *> \ingroup complex16_eig
  1033. *
  1034. * =====================================================================
  1035. PROGRAM ZCHKEE
  1036. *
  1037. * -- LAPACK test routine (version 3.7.0) --
  1038. * -- LAPACK is a software package provided by Univ. of Tennessee, --
  1039. * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
  1040. * June 2016
  1041. *
  1042. * =====================================================================
  1043. *
  1044. * .. Parameters ..
  1045. INTEGER NMAX
  1046. PARAMETER ( NMAX = 132 )
  1047. INTEGER NCMAX
  1048. PARAMETER ( NCMAX = 20 )
  1049. INTEGER NEED
  1050. PARAMETER ( NEED = 14 )
  1051. INTEGER LWORK
  1052. PARAMETER ( LWORK = NMAX*( 5*NMAX+20 ) )
  1053. INTEGER LIWORK
  1054. PARAMETER ( LIWORK = NMAX*( NMAX+20 ) )
  1055. INTEGER MAXIN
  1056. PARAMETER ( MAXIN = 20 )
  1057. INTEGER MAXT
  1058. PARAMETER ( MAXT = 30 )
  1059. INTEGER NIN, NOUT
  1060. PARAMETER ( NIN = 5, NOUT = 6 )
  1061. * ..
  1062. * .. Local Scalars ..
  1063. LOGICAL ZBK, ZBL, ZES, ZEV, ZGK, ZGL, ZGS, ZGV, ZGX,
  1064. $ ZSX, ZVX, ZXV, CSD, FATAL, GLM, GQR, GSV, LSE,
  1065. $ NEP, SEP, SVD, TSTCHK, TSTDIF, TSTDRV, TSTERR,
  1066. $ ZBB, ZGG, ZHB
  1067. CHARACTER C1
  1068. CHARACTER*3 C3, PATH
  1069. CHARACTER*32 VNAME
  1070. CHARACTER*10 INTSTR
  1071. CHARACTER*80 LINE
  1072. INTEGER I, I1, IC, INFO, ITMP, K, LENP, MAXTYP, NEWSD,
  1073. $ NK, NN, NPARMS, NRHS, NTYPES,
  1074. $ VERS_MAJOR, VERS_MINOR, VERS_PATCH
  1075. DOUBLE PRECISION EPS, S1, S2, THRESH, THRSHN
  1076. * ..
  1077. * .. Local Arrays ..
  1078. LOGICAL DOTYPE( MAXT ), LOGWRK( NMAX )
  1079. INTEGER IOLDSD( 4 ), ISEED( 4 ), IWORK( LIWORK ),
  1080. $ KVAL( MAXIN ), MVAL( MAXIN ), MXBVAL( MAXIN ),
  1081. $ NBCOL( MAXIN ), NBMIN( MAXIN ), NBVAL( MAXIN ),
  1082. $ NSVAL( MAXIN ), NVAL( MAXIN ), NXVAL( MAXIN ),
  1083. $ PVAL( MAXIN )
  1084. INTEGER INMIN( MAXIN ), INWIN( MAXIN ), INIBL( MAXIN ),
  1085. $ ISHFTS( MAXIN ), IACC22( MAXIN )
  1086. DOUBLE PRECISION ALPHA( NMAX ), BETA( NMAX ), DR( NMAX, 12 ),
  1087. $ RESULT( 500 ), RWORK( LWORK ), S( NMAX*NMAX )
  1088. COMPLEX*16 A( NMAX*NMAX, NEED ), B( NMAX*NMAX, 5 ),
  1089. $ C( NCMAX*NCMAX, NCMAX*NCMAX ), DC( NMAX, 6 ),
  1090. $ TAUA( NMAX ), TAUB( NMAX ), WORK( LWORK ),
  1091. $ X( 5*NMAX )
  1092. * ..
  1093. * .. External Functions ..
  1094. LOGICAL LSAMEN
  1095. DOUBLE PRECISION DLAMCH, DSECND
  1096. EXTERNAL LSAMEN, DLAMCH, DSECND
  1097. * ..
  1098. * .. External Subroutines ..
  1099. EXTERNAL ALAREQ, XLAENV, ZCHKBB, ZCHKBD, ZCHKBK, ZCHKBL,
  1100. $ ZCHKEC, ZCHKGG, ZCHKGK, ZCHKGL, ZCHKHB, ZCHKHS,
  1101. $ ZCHKST, ZCKCSD, ZCKGLM, ZCKGQR, ZCKGSV, ZCKLSE,
  1102. $ ZDRGES, ZDRGEV, ZDRGSX, ZDRGVX, ZDRVBD, ZDRVES,
  1103. $ ZDRVEV, ZDRVSG, ZDRVST, ZDRVSX, ZDRVVX,
  1104. $ ZERRBD, ZERRED, ZERRGG, ZERRHS, ZERRST, ILAVER,
  1105. $ ZDRGES3, ZDRGEV3,
  1106. $ ZCHKST2STG, ZDRVST2STG, ZCHKHB2STG
  1107. * ..
  1108. * .. Intrinsic Functions ..
  1109. INTRINSIC LEN, MIN
  1110. * ..
  1111. * .. Scalars in Common ..
  1112. LOGICAL LERR, OK
  1113. CHARACTER*32 SRNAMT
  1114. INTEGER INFOT, MAXB, NPROC, NSHIFT, NUNIT, SELDIM,
  1115. $ SELOPT
  1116. * ..
  1117. * .. Arrays in Common ..
  1118. LOGICAL SELVAL( 20 )
  1119. INTEGER IPARMS( 100 )
  1120. DOUBLE PRECISION SELWI( 20 ), SELWR( 20 )
  1121. * ..
  1122. * .. Common blocks ..
  1123. COMMON / CENVIR / NPROC, NSHIFT, MAXB
  1124. COMMON / INFOC / INFOT, NUNIT, OK, LERR
  1125. COMMON / SRNAMC / SRNAMT
  1126. COMMON / SSLCT / SELOPT, SELDIM, SELVAL, SELWR, SELWI
  1127. COMMON / CLAENV / IPARMS
  1128. * ..
  1129. * .. Data statements ..
  1130. DATA INTSTR / '0123456789' /
  1131. DATA IOLDSD / 0, 0, 0, 1 /
  1132. * ..
  1133. * .. Executable Statements ..
  1134. *
  1135. A = 0.0
  1136. B = 0.0
  1137. C = 0.0
  1138. DC = 0.0
  1139. S1 = DSECND( )
  1140. FATAL = .FALSE.
  1141. NUNIT = NOUT
  1142. *
  1143. * Return to here to read multiple sets of data
  1144. *
  1145. 10 CONTINUE
  1146. *
  1147. * Read the first line and set the 3-character test path
  1148. *
  1149. READ( NIN, FMT = '(A80)', END = 380 )LINE
  1150. PATH = LINE( 1: 3 )
  1151. NEP = LSAMEN( 3, PATH, 'NEP' ) .OR. LSAMEN( 3, PATH, 'ZHS' )
  1152. SEP = LSAMEN( 3, PATH, 'SEP' ) .OR. LSAMEN( 3, PATH, 'ZST' ) .OR.
  1153. $ LSAMEN( 3, PATH, 'ZSG' ) .OR. LSAMEN( 3, PATH, 'SE2' )
  1154. SVD = LSAMEN( 3, PATH, 'SVD' ) .OR. LSAMEN( 3, PATH, 'ZBD' )
  1155. ZEV = LSAMEN( 3, PATH, 'ZEV' )
  1156. ZES = LSAMEN( 3, PATH, 'ZES' )
  1157. ZVX = LSAMEN( 3, PATH, 'ZVX' )
  1158. ZSX = LSAMEN( 3, PATH, 'ZSX' )
  1159. ZGG = LSAMEN( 3, PATH, 'ZGG' )
  1160. ZGS = LSAMEN( 3, PATH, 'ZGS' )
  1161. ZGX = LSAMEN( 3, PATH, 'ZGX' )
  1162. ZGV = LSAMEN( 3, PATH, 'ZGV' )
  1163. ZXV = LSAMEN( 3, PATH, 'ZXV' )
  1164. ZHB = LSAMEN( 3, PATH, 'ZHB' )
  1165. ZBB = LSAMEN( 3, PATH, 'ZBB' )
  1166. GLM = LSAMEN( 3, PATH, 'GLM' )
  1167. GQR = LSAMEN( 3, PATH, 'GQR' ) .OR. LSAMEN( 3, PATH, 'GRQ' )
  1168. GSV = LSAMEN( 3, PATH, 'GSV' )
  1169. CSD = LSAMEN( 3, PATH, 'CSD' )
  1170. LSE = LSAMEN( 3, PATH, 'LSE' )
  1171. ZBL = LSAMEN( 3, PATH, 'ZBL' )
  1172. ZBK = LSAMEN( 3, PATH, 'ZBK' )
  1173. ZGL = LSAMEN( 3, PATH, 'ZGL' )
  1174. ZGK = LSAMEN( 3, PATH, 'ZGK' )
  1175. *
  1176. * Report values of parameters.
  1177. *
  1178. IF( PATH.EQ.' ' ) THEN
  1179. GO TO 10
  1180. ELSE IF( NEP ) THEN
  1181. WRITE( NOUT, FMT = 9987 )
  1182. ELSE IF( SEP ) THEN
  1183. WRITE( NOUT, FMT = 9986 )
  1184. ELSE IF( SVD ) THEN
  1185. WRITE( NOUT, FMT = 9985 )
  1186. ELSE IF( ZEV ) THEN
  1187. WRITE( NOUT, FMT = 9979 )
  1188. ELSE IF( ZES ) THEN
  1189. WRITE( NOUT, FMT = 9978 )
  1190. ELSE IF( ZVX ) THEN
  1191. WRITE( NOUT, FMT = 9977 )
  1192. ELSE IF( ZSX ) THEN
  1193. WRITE( NOUT, FMT = 9976 )
  1194. ELSE IF( ZGG ) THEN
  1195. WRITE( NOUT, FMT = 9975 )
  1196. ELSE IF( ZGS ) THEN
  1197. WRITE( NOUT, FMT = 9964 )
  1198. ELSE IF( ZGX ) THEN
  1199. WRITE( NOUT, FMT = 9965 )
  1200. ELSE IF( ZGV ) THEN
  1201. WRITE( NOUT, FMT = 9963 )
  1202. ELSE IF( ZXV ) THEN
  1203. WRITE( NOUT, FMT = 9962 )
  1204. ELSE IF( ZHB ) THEN
  1205. WRITE( NOUT, FMT = 9974 )
  1206. ELSE IF( ZBB ) THEN
  1207. WRITE( NOUT, FMT = 9967 )
  1208. ELSE IF( GLM ) THEN
  1209. WRITE( NOUT, FMT = 9971 )
  1210. ELSE IF( GQR ) THEN
  1211. WRITE( NOUT, FMT = 9970 )
  1212. ELSE IF( GSV ) THEN
  1213. WRITE( NOUT, FMT = 9969 )
  1214. ELSE IF( CSD ) THEN
  1215. WRITE( NOUT, FMT = 9960 )
  1216. ELSE IF( LSE ) THEN
  1217. WRITE( NOUT, FMT = 9968 )
  1218. ELSE IF( ZBL ) THEN
  1219. *
  1220. * ZGEBAL: Balancing
  1221. *
  1222. CALL ZCHKBL( NIN, NOUT )
  1223. GO TO 380
  1224. ELSE IF( ZBK ) THEN
  1225. *
  1226. * ZGEBAK: Back transformation
  1227. *
  1228. CALL ZCHKBK( NIN, NOUT )
  1229. GO TO 380
  1230. ELSE IF( ZGL ) THEN
  1231. *
  1232. * ZGGBAL: Balancing
  1233. *
  1234. CALL ZCHKGL( NIN, NOUT )
  1235. GO TO 380
  1236. ELSE IF( ZGK ) THEN
  1237. *
  1238. * ZGGBAK: Back transformation
  1239. *
  1240. CALL ZCHKGK( NIN, NOUT )
  1241. GO TO 380
  1242. ELSE IF( LSAMEN( 3, PATH, 'ZEC' ) ) THEN
  1243. *
  1244. * ZEC: Eigencondition estimation
  1245. *
  1246. READ( NIN, FMT = * )THRESH
  1247. CALL XLAENV( 1, 1 )
  1248. CALL XLAENV( 12, 1 )
  1249. TSTERR = .TRUE.
  1250. CALL ZCHKEC( THRESH, TSTERR, NIN, NOUT )
  1251. GO TO 380
  1252. ELSE
  1253. WRITE( NOUT, FMT = 9992 )PATH
  1254. GO TO 380
  1255. END IF
  1256. CALL ILAVER( VERS_MAJOR, VERS_MINOR, VERS_PATCH )
  1257. WRITE( NOUT, FMT = 9972 ) VERS_MAJOR, VERS_MINOR, VERS_PATCH
  1258. WRITE( NOUT, FMT = 9984 )
  1259. *
  1260. * Read the number of values of M, P, and N.
  1261. *
  1262. READ( NIN, FMT = * )NN
  1263. IF( NN.LT.0 ) THEN
  1264. WRITE( NOUT, FMT = 9989 )' NN ', NN, 1
  1265. NN = 0
  1266. FATAL = .TRUE.
  1267. ELSE IF( NN.GT.MAXIN ) THEN
  1268. WRITE( NOUT, FMT = 9988 )' NN ', NN, MAXIN
  1269. NN = 0
  1270. FATAL = .TRUE.
  1271. END IF
  1272. *
  1273. * Read the values of M
  1274. *
  1275. IF( .NOT.( ZGX .OR. ZXV ) ) THEN
  1276. READ( NIN, FMT = * )( MVAL( I ), I = 1, NN )
  1277. IF( SVD ) THEN
  1278. VNAME = ' M '
  1279. ELSE
  1280. VNAME = ' N '
  1281. END IF
  1282. DO 20 I = 1, NN
  1283. IF( MVAL( I ).LT.0 ) THEN
  1284. WRITE( NOUT, FMT = 9989 )VNAME, MVAL( I ), 0
  1285. FATAL = .TRUE.
  1286. ELSE IF( MVAL( I ).GT.NMAX ) THEN
  1287. WRITE( NOUT, FMT = 9988 )VNAME, MVAL( I ), NMAX
  1288. FATAL = .TRUE.
  1289. END IF
  1290. 20 CONTINUE
  1291. WRITE( NOUT, FMT = 9983 )'M: ', ( MVAL( I ), I = 1, NN )
  1292. END IF
  1293. *
  1294. * Read the values of P
  1295. *
  1296. IF( GLM .OR. GQR .OR. GSV .OR. CSD .OR. LSE ) THEN
  1297. READ( NIN, FMT = * )( PVAL( I ), I = 1, NN )
  1298. DO 30 I = 1, NN
  1299. IF( PVAL( I ).LT.0 ) THEN
  1300. WRITE( NOUT, FMT = 9989 )' P ', PVAL( I ), 0
  1301. FATAL = .TRUE.
  1302. ELSE IF( PVAL( I ).GT.NMAX ) THEN
  1303. WRITE( NOUT, FMT = 9988 )' P ', PVAL( I ), NMAX
  1304. FATAL = .TRUE.
  1305. END IF
  1306. 30 CONTINUE
  1307. WRITE( NOUT, FMT = 9983 )'P: ', ( PVAL( I ), I = 1, NN )
  1308. END IF
  1309. *
  1310. * Read the values of N
  1311. *
  1312. IF( SVD .OR. ZBB .OR. GLM .OR. GQR .OR. GSV .OR. CSD .OR.
  1313. $ LSE ) THEN
  1314. READ( NIN, FMT = * )( NVAL( I ), I = 1, NN )
  1315. DO 40 I = 1, NN
  1316. IF( NVAL( I ).LT.0 ) THEN
  1317. WRITE( NOUT, FMT = 9989 )' N ', NVAL( I ), 0
  1318. FATAL = .TRUE.
  1319. ELSE IF( NVAL( I ).GT.NMAX ) THEN
  1320. WRITE( NOUT, FMT = 9988 )' N ', NVAL( I ), NMAX
  1321. FATAL = .TRUE.
  1322. END IF
  1323. 40 CONTINUE
  1324. ELSE
  1325. DO 50 I = 1, NN
  1326. NVAL( I ) = MVAL( I )
  1327. 50 CONTINUE
  1328. END IF
  1329. IF( .NOT.( ZGX .OR. ZXV ) ) THEN
  1330. WRITE( NOUT, FMT = 9983 )'N: ', ( NVAL( I ), I = 1, NN )
  1331. ELSE
  1332. WRITE( NOUT, FMT = 9983 )'N: ', NN
  1333. END IF
  1334. *
  1335. * Read the number of values of K, followed by the values of K
  1336. *
  1337. IF( ZHB .OR. ZBB ) THEN
  1338. READ( NIN, FMT = * )NK
  1339. READ( NIN, FMT = * )( KVAL( I ), I = 1, NK )
  1340. DO 60 I = 1, NK
  1341. IF( KVAL( I ).LT.0 ) THEN
  1342. WRITE( NOUT, FMT = 9989 )' K ', KVAL( I ), 0
  1343. FATAL = .TRUE.
  1344. ELSE IF( KVAL( I ).GT.NMAX ) THEN
  1345. WRITE( NOUT, FMT = 9988 )' K ', KVAL( I ), NMAX
  1346. FATAL = .TRUE.
  1347. END IF
  1348. 60 CONTINUE
  1349. WRITE( NOUT, FMT = 9983 )'K: ', ( KVAL( I ), I = 1, NK )
  1350. END IF
  1351. *
  1352. IF( ZEV .OR. ZES .OR. ZVX .OR. ZSX ) THEN
  1353. *
  1354. * For the nonsymmetric QR driver routines, only one set of
  1355. * parameters is allowed.
  1356. *
  1357. READ( NIN, FMT = * )NBVAL( 1 ), NBMIN( 1 ), NXVAL( 1 ),
  1358. $ INMIN( 1 ), INWIN( 1 ), INIBL(1), ISHFTS(1), IACC22(1)
  1359. IF( NBVAL( 1 ).LT.1 ) THEN
  1360. WRITE( NOUT, FMT = 9989 )' NB ', NBVAL( 1 ), 1
  1361. FATAL = .TRUE.
  1362. ELSE IF( NBMIN( 1 ).LT.1 ) THEN
  1363. WRITE( NOUT, FMT = 9989 )'NBMIN ', NBMIN( 1 ), 1
  1364. FATAL = .TRUE.
  1365. ELSE IF( NXVAL( 1 ).LT.1 ) THEN
  1366. WRITE( NOUT, FMT = 9989 )' NX ', NXVAL( 1 ), 1
  1367. FATAL = .TRUE.
  1368. ELSE IF( INMIN( 1 ).LT.1 ) THEN
  1369. WRITE( NOUT, FMT = 9989 )' INMIN ', INMIN( 1 ), 1
  1370. FATAL = .TRUE.
  1371. ELSE IF( INWIN( 1 ).LT.1 ) THEN
  1372. WRITE( NOUT, FMT = 9989 )' INWIN ', INWIN( 1 ), 1
  1373. FATAL = .TRUE.
  1374. ELSE IF( INIBL( 1 ).LT.1 ) THEN
  1375. WRITE( NOUT, FMT = 9989 )' INIBL ', INIBL( 1 ), 1
  1376. FATAL = .TRUE.
  1377. ELSE IF( ISHFTS( 1 ).LT.1 ) THEN
  1378. WRITE( NOUT, FMT = 9989 )' ISHFTS ', ISHFTS( 1 ), 1
  1379. FATAL = .TRUE.
  1380. ELSE IF( IACC22( 1 ).LT.0 ) THEN
  1381. WRITE( NOUT, FMT = 9989 )' IACC22 ', IACC22( 1 ), 0
  1382. FATAL = .TRUE.
  1383. END IF
  1384. CALL XLAENV( 1, NBVAL( 1 ) )
  1385. CALL XLAENV( 2, NBMIN( 1 ) )
  1386. CALL XLAENV( 3, NXVAL( 1 ) )
  1387. CALL XLAENV(12, MAX( 11, INMIN( 1 ) ) )
  1388. CALL XLAENV(13, INWIN( 1 ) )
  1389. CALL XLAENV(14, INIBL( 1 ) )
  1390. CALL XLAENV(15, ISHFTS( 1 ) )
  1391. CALL XLAENV(16, IACC22( 1 ) )
  1392. WRITE( NOUT, FMT = 9983 )'NB: ', NBVAL( 1 )
  1393. WRITE( NOUT, FMT = 9983 )'NBMIN:', NBMIN( 1 )
  1394. WRITE( NOUT, FMT = 9983 )'NX: ', NXVAL( 1 )
  1395. WRITE( NOUT, FMT = 9983 )'INMIN: ', INMIN( 1 )
  1396. WRITE( NOUT, FMT = 9983 )'INWIN: ', INWIN( 1 )
  1397. WRITE( NOUT, FMT = 9983 )'INIBL: ', INIBL( 1 )
  1398. WRITE( NOUT, FMT = 9983 )'ISHFTS: ', ISHFTS( 1 )
  1399. WRITE( NOUT, FMT = 9983 )'IACC22: ', IACC22( 1 )
  1400. *
  1401. ELSE IF( ZGS .OR. ZGX .OR. ZGV .OR. ZXV ) THEN
  1402. *
  1403. * For the nonsymmetric generalized driver routines, only one set of
  1404. * parameters is allowed.
  1405. *
  1406. READ( NIN, FMT = * )NBVAL( 1 ), NBMIN( 1 ), NXVAL( 1 ),
  1407. $ NSVAL( 1 ), MXBVAL( 1 )
  1408. IF( NBVAL( 1 ).LT.1 ) THEN
  1409. WRITE( NOUT, FMT = 9989 )' NB ', NBVAL( 1 ), 1
  1410. FATAL = .TRUE.
  1411. ELSE IF( NBMIN( 1 ).LT.1 ) THEN
  1412. WRITE( NOUT, FMT = 9989 )'NBMIN ', NBMIN( 1 ), 1
  1413. FATAL = .TRUE.
  1414. ELSE IF( NXVAL( 1 ).LT.1 ) THEN
  1415. WRITE( NOUT, FMT = 9989 )' NX ', NXVAL( 1 ), 1
  1416. FATAL = .TRUE.
  1417. ELSE IF( NSVAL( 1 ).LT.2 ) THEN
  1418. WRITE( NOUT, FMT = 9989 )' NS ', NSVAL( 1 ), 2
  1419. FATAL = .TRUE.
  1420. ELSE IF( MXBVAL( 1 ).LT.1 ) THEN
  1421. WRITE( NOUT, FMT = 9989 )' MAXB ', MXBVAL( 1 ), 1
  1422. FATAL = .TRUE.
  1423. END IF
  1424. CALL XLAENV( 1, NBVAL( 1 ) )
  1425. CALL XLAENV( 2, NBMIN( 1 ) )
  1426. CALL XLAENV( 3, NXVAL( 1 ) )
  1427. CALL XLAENV( 4, NSVAL( 1 ) )
  1428. CALL XLAENV( 8, MXBVAL( 1 ) )
  1429. WRITE( NOUT, FMT = 9983 )'NB: ', NBVAL( 1 )
  1430. WRITE( NOUT, FMT = 9983 )'NBMIN:', NBMIN( 1 )
  1431. WRITE( NOUT, FMT = 9983 )'NX: ', NXVAL( 1 )
  1432. WRITE( NOUT, FMT = 9983 )'NS: ', NSVAL( 1 )
  1433. WRITE( NOUT, FMT = 9983 )'MAXB: ', MXBVAL( 1 )
  1434. ELSE IF( .NOT.ZHB .AND. .NOT.GLM .AND. .NOT.GQR .AND. .NOT.
  1435. $ GSV .AND. .NOT.CSD .AND. .NOT.LSE ) THEN
  1436. *
  1437. * For the other paths, the number of parameters can be varied
  1438. * from the input file. Read the number of parameter values.
  1439. *
  1440. READ( NIN, FMT = * )NPARMS
  1441. IF( NPARMS.LT.1 ) THEN
  1442. WRITE( NOUT, FMT = 9989 )'NPARMS', NPARMS, 1
  1443. NPARMS = 0
  1444. FATAL = .TRUE.
  1445. ELSE IF( NPARMS.GT.MAXIN ) THEN
  1446. WRITE( NOUT, FMT = 9988 )'NPARMS', NPARMS, MAXIN
  1447. NPARMS = 0
  1448. FATAL = .TRUE.
  1449. END IF
  1450. *
  1451. * Read the values of NB
  1452. *
  1453. IF( .NOT.ZBB ) THEN
  1454. READ( NIN, FMT = * )( NBVAL( I ), I = 1, NPARMS )
  1455. DO 70 I = 1, NPARMS
  1456. IF( NBVAL( I ).LT.0 ) THEN
  1457. WRITE( NOUT, FMT = 9989 )' NB ', NBVAL( I ), 0
  1458. FATAL = .TRUE.
  1459. ELSE IF( NBVAL( I ).GT.NMAX ) THEN
  1460. WRITE( NOUT, FMT = 9988 )' NB ', NBVAL( I ), NMAX
  1461. FATAL = .TRUE.
  1462. END IF
  1463. 70 CONTINUE
  1464. WRITE( NOUT, FMT = 9983 )'NB: ',
  1465. $ ( NBVAL( I ), I = 1, NPARMS )
  1466. END IF
  1467. *
  1468. * Read the values of NBMIN
  1469. *
  1470. IF( NEP .OR. SEP .OR. SVD .OR. ZGG ) THEN
  1471. READ( NIN, FMT = * )( NBMIN( I ), I = 1, NPARMS )
  1472. DO 80 I = 1, NPARMS
  1473. IF( NBMIN( I ).LT.0 ) THEN
  1474. WRITE( NOUT, FMT = 9989 )'NBMIN ', NBMIN( I ), 0
  1475. FATAL = .TRUE.
  1476. ELSE IF( NBMIN( I ).GT.NMAX ) THEN
  1477. WRITE( NOUT, FMT = 9988 )'NBMIN ', NBMIN( I ), NMAX
  1478. FATAL = .TRUE.
  1479. END IF
  1480. 80 CONTINUE
  1481. WRITE( NOUT, FMT = 9983 )'NBMIN:',
  1482. $ ( NBMIN( I ), I = 1, NPARMS )
  1483. ELSE
  1484. DO 90 I = 1, NPARMS
  1485. NBMIN( I ) = 1
  1486. 90 CONTINUE
  1487. END IF
  1488. *
  1489. * Read the values of NX
  1490. *
  1491. IF( NEP .OR. SEP .OR. SVD ) THEN
  1492. READ( NIN, FMT = * )( NXVAL( I ), I = 1, NPARMS )
  1493. DO 100 I = 1, NPARMS
  1494. IF( NXVAL( I ).LT.0 ) THEN
  1495. WRITE( NOUT, FMT = 9989 )' NX ', NXVAL( I ), 0
  1496. FATAL = .TRUE.
  1497. ELSE IF( NXVAL( I ).GT.NMAX ) THEN
  1498. WRITE( NOUT, FMT = 9988 )' NX ', NXVAL( I ), NMAX
  1499. FATAL = .TRUE.
  1500. END IF
  1501. 100 CONTINUE
  1502. WRITE( NOUT, FMT = 9983 )'NX: ',
  1503. $ ( NXVAL( I ), I = 1, NPARMS )
  1504. ELSE
  1505. DO 110 I = 1, NPARMS
  1506. NXVAL( I ) = 1
  1507. 110 CONTINUE
  1508. END IF
  1509. *
  1510. * Read the values of NSHIFT (if ZGG) or NRHS (if SVD
  1511. * or ZBB).
  1512. *
  1513. IF( SVD .OR. ZBB .OR. ZGG ) THEN
  1514. READ( NIN, FMT = * )( NSVAL( I ), I = 1, NPARMS )
  1515. DO 120 I = 1, NPARMS
  1516. IF( NSVAL( I ).LT.0 ) THEN
  1517. WRITE( NOUT, FMT = 9989 )' NS ', NSVAL( I ), 0
  1518. FATAL = .TRUE.
  1519. ELSE IF( NSVAL( I ).GT.NMAX ) THEN
  1520. WRITE( NOUT, FMT = 9988 )' NS ', NSVAL( I ), NMAX
  1521. FATAL = .TRUE.
  1522. END IF
  1523. 120 CONTINUE
  1524. WRITE( NOUT, FMT = 9983 )'NS: ',
  1525. $ ( NSVAL( I ), I = 1, NPARMS )
  1526. ELSE
  1527. DO 130 I = 1, NPARMS
  1528. NSVAL( I ) = 1
  1529. 130 CONTINUE
  1530. END IF
  1531. *
  1532. * Read the values for MAXB.
  1533. *
  1534. IF( ZGG ) THEN
  1535. READ( NIN, FMT = * )( MXBVAL( I ), I = 1, NPARMS )
  1536. DO 140 I = 1, NPARMS
  1537. IF( MXBVAL( I ).LT.0 ) THEN
  1538. WRITE( NOUT, FMT = 9989 )' MAXB ', MXBVAL( I ), 0
  1539. FATAL = .TRUE.
  1540. ELSE IF( MXBVAL( I ).GT.NMAX ) THEN
  1541. WRITE( NOUT, FMT = 9988 )' MAXB ', MXBVAL( I ), NMAX
  1542. FATAL = .TRUE.
  1543. END IF
  1544. 140 CONTINUE
  1545. WRITE( NOUT, FMT = 9983 )'MAXB: ',
  1546. $ ( MXBVAL( I ), I = 1, NPARMS )
  1547. ELSE
  1548. DO 150 I = 1, NPARMS
  1549. MXBVAL( I ) = 1
  1550. 150 CONTINUE
  1551. END IF
  1552. *
  1553. * Read the values for INMIN.
  1554. *
  1555. IF( NEP ) THEN
  1556. READ( NIN, FMT = * )( INMIN( I ), I = 1, NPARMS )
  1557. DO 540 I = 1, NPARMS
  1558. IF( INMIN( I ).LT.0 ) THEN
  1559. WRITE( NOUT, FMT = 9989 )' INMIN ', INMIN( I ), 0
  1560. FATAL = .TRUE.
  1561. END IF
  1562. 540 CONTINUE
  1563. WRITE( NOUT, FMT = 9983 )'INMIN: ',
  1564. $ ( INMIN( I ), I = 1, NPARMS )
  1565. ELSE
  1566. DO 550 I = 1, NPARMS
  1567. INMIN( I ) = 1
  1568. 550 CONTINUE
  1569. END IF
  1570. *
  1571. * Read the values for INWIN.
  1572. *
  1573. IF( NEP ) THEN
  1574. READ( NIN, FMT = * )( INWIN( I ), I = 1, NPARMS )
  1575. DO 560 I = 1, NPARMS
  1576. IF( INWIN( I ).LT.0 ) THEN
  1577. WRITE( NOUT, FMT = 9989 )' INWIN ', INWIN( I ), 0
  1578. FATAL = .TRUE.
  1579. END IF
  1580. 560 CONTINUE
  1581. WRITE( NOUT, FMT = 9983 )'INWIN: ',
  1582. $ ( INWIN( I ), I = 1, NPARMS )
  1583. ELSE
  1584. DO 570 I = 1, NPARMS
  1585. INWIN( I ) = 1
  1586. 570 CONTINUE
  1587. END IF
  1588. *
  1589. * Read the values for INIBL.
  1590. *
  1591. IF( NEP ) THEN
  1592. READ( NIN, FMT = * )( INIBL( I ), I = 1, NPARMS )
  1593. DO 580 I = 1, NPARMS
  1594. IF( INIBL( I ).LT.0 ) THEN
  1595. WRITE( NOUT, FMT = 9989 )' INIBL ', INIBL( I ), 0
  1596. FATAL = .TRUE.
  1597. END IF
  1598. 580 CONTINUE
  1599. WRITE( NOUT, FMT = 9983 )'INIBL: ',
  1600. $ ( INIBL( I ), I = 1, NPARMS )
  1601. ELSE
  1602. DO 590 I = 1, NPARMS
  1603. INIBL( I ) = 1
  1604. 590 CONTINUE
  1605. END IF
  1606. *
  1607. * Read the values for ISHFTS.
  1608. *
  1609. IF( NEP ) THEN
  1610. READ( NIN, FMT = * )( ISHFTS( I ), I = 1, NPARMS )
  1611. DO 600 I = 1, NPARMS
  1612. IF( ISHFTS( I ).LT.0 ) THEN
  1613. WRITE( NOUT, FMT = 9989 )' ISHFTS ', ISHFTS( I ), 0
  1614. FATAL = .TRUE.
  1615. END IF
  1616. 600 CONTINUE
  1617. WRITE( NOUT, FMT = 9983 )'ISHFTS: ',
  1618. $ ( ISHFTS( I ), I = 1, NPARMS )
  1619. ELSE
  1620. DO 610 I = 1, NPARMS
  1621. ISHFTS( I ) = 1
  1622. 610 CONTINUE
  1623. END IF
  1624. *
  1625. * Read the values for IACC22.
  1626. *
  1627. IF( NEP .OR. ZGG ) THEN
  1628. READ( NIN, FMT = * )( IACC22( I ), I = 1, NPARMS )
  1629. DO 620 I = 1, NPARMS
  1630. IF( IACC22( I ).LT.0 ) THEN
  1631. WRITE( NOUT, FMT = 9989 )' IACC22 ', IACC22( I ), 0
  1632. FATAL = .TRUE.
  1633. END IF
  1634. 620 CONTINUE
  1635. WRITE( NOUT, FMT = 9983 )'IACC22: ',
  1636. $ ( IACC22( I ), I = 1, NPARMS )
  1637. ELSE
  1638. DO 630 I = 1, NPARMS
  1639. IACC22( I ) = 1
  1640. 630 CONTINUE
  1641. END IF
  1642. *
  1643. * Read the values for NBCOL.
  1644. *
  1645. IF( ZGG ) THEN
  1646. READ( NIN, FMT = * )( NBCOL( I ), I = 1, NPARMS )
  1647. DO 160 I = 1, NPARMS
  1648. IF( NBCOL( I ).LT.0 ) THEN
  1649. WRITE( NOUT, FMT = 9989 )'NBCOL ', NBCOL( I ), 0
  1650. FATAL = .TRUE.
  1651. ELSE IF( NBCOL( I ).GT.NMAX ) THEN
  1652. WRITE( NOUT, FMT = 9988 )'NBCOL ', NBCOL( I ), NMAX
  1653. FATAL = .TRUE.
  1654. END IF
  1655. 160 CONTINUE
  1656. WRITE( NOUT, FMT = 9983 )'NBCOL:',
  1657. $ ( NBCOL( I ), I = 1, NPARMS )
  1658. ELSE
  1659. DO 170 I = 1, NPARMS
  1660. NBCOL( I ) = 1
  1661. 170 CONTINUE
  1662. END IF
  1663. END IF
  1664. *
  1665. * Calculate and print the machine dependent constants.
  1666. *
  1667. WRITE( NOUT, FMT = * )
  1668. EPS = DLAMCH( 'Underflow threshold' )
  1669. WRITE( NOUT, FMT = 9981 )'underflow', EPS
  1670. EPS = DLAMCH( 'Overflow threshold' )
  1671. WRITE( NOUT, FMT = 9981 )'overflow ', EPS
  1672. EPS = DLAMCH( 'Epsilon' )
  1673. WRITE( NOUT, FMT = 9981 )'precision', EPS
  1674. *
  1675. * Read the threshold value for the test ratios.
  1676. *
  1677. READ( NIN, FMT = * )THRESH
  1678. WRITE( NOUT, FMT = 9982 )THRESH
  1679. IF( SEP .OR. SVD .OR. ZGG ) THEN
  1680. *
  1681. * Read the flag that indicates whether to test LAPACK routines.
  1682. *
  1683. READ( NIN, FMT = * )TSTCHK
  1684. *
  1685. * Read the flag that indicates whether to test driver routines.
  1686. *
  1687. READ( NIN, FMT = * )TSTDRV
  1688. END IF
  1689. *
  1690. * Read the flag that indicates whether to test the error exits.
  1691. *
  1692. READ( NIN, FMT = * )TSTERR
  1693. *
  1694. * Read the code describing how to set the random number seed.
  1695. *
  1696. READ( NIN, FMT = * )NEWSD
  1697. *
  1698. * If NEWSD = 2, read another line with 4 integers for the seed.
  1699. *
  1700. IF( NEWSD.EQ.2 )
  1701. $ READ( NIN, FMT = * )( IOLDSD( I ), I = 1, 4 )
  1702. *
  1703. DO 180 I = 1, 4
  1704. ISEED( I ) = IOLDSD( I )
  1705. 180 CONTINUE
  1706. *
  1707. IF( FATAL ) THEN
  1708. WRITE( NOUT, FMT = 9999 )
  1709. STOP
  1710. END IF
  1711. *
  1712. * Read the input lines indicating the test path and its parameters.
  1713. * The first three characters indicate the test path, and the number
  1714. * of test matrix types must be the first nonblank item in columns
  1715. * 4-80.
  1716. *
  1717. 190 CONTINUE
  1718. *
  1719. IF( .NOT.( ZGX .OR. ZXV ) ) THEN
  1720. *
  1721. 200 CONTINUE
  1722. READ( NIN, FMT = '(A80)', END = 380 )LINE
  1723. C3 = LINE( 1: 3 )
  1724. LENP = LEN( LINE )
  1725. I = 3
  1726. ITMP = 0
  1727. I1 = 0
  1728. 210 CONTINUE
  1729. I = I + 1
  1730. IF( I.GT.LENP ) THEN
  1731. IF( I1.GT.0 ) THEN
  1732. GO TO 240
  1733. ELSE
  1734. NTYPES = MAXT
  1735. GO TO 240
  1736. END IF
  1737. END IF
  1738. IF( LINE( I: I ).NE.' ' .AND. LINE( I: I ).NE.',' ) THEN
  1739. I1 = I
  1740. C1 = LINE( I1: I1 )
  1741. *
  1742. * Check that a valid integer was read
  1743. *
  1744. DO 220 K = 1, 10
  1745. IF( C1.EQ.INTSTR( K: K ) ) THEN
  1746. IC = K - 1
  1747. GO TO 230
  1748. END IF
  1749. 220 CONTINUE
  1750. WRITE( NOUT, FMT = 9991 )I, LINE
  1751. GO TO 200
  1752. 230 CONTINUE
  1753. ITMP = 10*ITMP + IC
  1754. GO TO 210
  1755. ELSE IF( I1.GT.0 ) THEN
  1756. GO TO 240
  1757. ELSE
  1758. GO TO 210
  1759. END IF
  1760. 240 CONTINUE
  1761. NTYPES = ITMP
  1762. *
  1763. * Skip the tests if NTYPES is <= 0.
  1764. *
  1765. IF( .NOT.( ZEV .OR. ZES .OR. ZVX .OR. ZSX .OR. ZGV .OR.
  1766. $ ZGS ) .AND. NTYPES.LE.0 ) THEN
  1767. WRITE( NOUT, FMT = 9990 )C3
  1768. GO TO 200
  1769. END IF
  1770. *
  1771. ELSE
  1772. IF( ZGX )
  1773. $ C3 = 'ZGX'
  1774. IF( ZXV )
  1775. $ C3 = 'ZXV'
  1776. END IF
  1777. *
  1778. * Reset the random number seed.
  1779. *
  1780. IF( NEWSD.EQ.0 ) THEN
  1781. DO 250 K = 1, 4
  1782. ISEED( K ) = IOLDSD( K )
  1783. 250 CONTINUE
  1784. END IF
  1785. *
  1786. IF( LSAMEN( 3, C3, 'ZHS' ) .OR. LSAMEN( 3, C3, 'NEP' ) ) THEN
  1787. *
  1788. * -------------------------------------
  1789. * NEP: Nonsymmetric Eigenvalue Problem
  1790. * -------------------------------------
  1791. * Vary the parameters
  1792. * NB = block size
  1793. * NBMIN = minimum block size
  1794. * NX = crossover point
  1795. * NS = number of shifts
  1796. * MAXB = minimum submatrix size
  1797. *
  1798. MAXTYP = 21
  1799. NTYPES = MIN( MAXTYP, NTYPES )
  1800. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  1801. CALL XLAENV( 1, 1 )
  1802. IF( TSTERR )
  1803. $ CALL ZERRHS( 'ZHSEQR', NOUT )
  1804. DO 270 I = 1, NPARMS
  1805. CALL XLAENV( 1, NBVAL( I ) )
  1806. CALL XLAENV( 2, NBMIN( I ) )
  1807. CALL XLAENV( 3, NXVAL( I ) )
  1808. CALL XLAENV(12, MAX( 11, INMIN( I ) ) )
  1809. CALL XLAENV(13, INWIN( I ) )
  1810. CALL XLAENV(14, INIBL( I ) )
  1811. CALL XLAENV(15, ISHFTS( I ) )
  1812. CALL XLAENV(16, IACC22( I ) )
  1813. *
  1814. IF( NEWSD.EQ.0 ) THEN
  1815. DO 260 K = 1, 4
  1816. ISEED( K ) = IOLDSD( K )
  1817. 260 CONTINUE
  1818. END IF
  1819. WRITE( NOUT, FMT = 9961 )C3, NBVAL( I ), NBMIN( I ),
  1820. $ NXVAL( I ), MAX( 11, INMIN(I)),
  1821. $ INWIN( I ), INIBL( I ), ISHFTS( I ), IACC22( I )
  1822. CALL ZCHKHS( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH, NOUT,
  1823. $ A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  1824. $ A( 1, 4 ), A( 1, 5 ), NMAX, A( 1, 6 ),
  1825. $ A( 1, 7 ), DC( 1, 1 ), DC( 1, 2 ), A( 1, 8 ),
  1826. $ A( 1, 9 ), A( 1, 10 ), A( 1, 11 ), A( 1, 12 ),
  1827. $ DC( 1, 3 ), WORK, LWORK, RWORK, IWORK, LOGWRK,
  1828. $ RESULT, INFO )
  1829. IF( INFO.NE.0 )
  1830. $ WRITE( NOUT, FMT = 9980 )'ZCHKHS', INFO
  1831. 270 CONTINUE
  1832. *
  1833. ELSE IF( LSAMEN( 3, C3, 'ZST' ) .OR. LSAMEN( 3, C3, 'SEP' )
  1834. $ .OR. LSAMEN( 3, C3, 'SE2' ) ) THEN
  1835. *
  1836. * ----------------------------------
  1837. * SEP: Symmetric Eigenvalue Problem
  1838. * ----------------------------------
  1839. * Vary the parameters
  1840. * NB = block size
  1841. * NBMIN = minimum block size
  1842. * NX = crossover point
  1843. *
  1844. MAXTYP = 21
  1845. NTYPES = MIN( MAXTYP, NTYPES )
  1846. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  1847. CALL XLAENV( 1, 1 )
  1848. CALL XLAENV( 9, 25 )
  1849. IF( TSTERR )
  1850. $ CALL ZERRST( 'ZST', NOUT )
  1851. DO 290 I = 1, NPARMS
  1852. CALL XLAENV( 1, NBVAL( I ) )
  1853. CALL XLAENV( 2, NBMIN( I ) )
  1854. CALL XLAENV( 3, NXVAL( I ) )
  1855. *
  1856. IF( NEWSD.EQ.0 ) THEN
  1857. DO 280 K = 1, 4
  1858. ISEED( K ) = IOLDSD( K )
  1859. 280 CONTINUE
  1860. END IF
  1861. WRITE( NOUT, FMT = 9997 )C3, NBVAL( I ), NBMIN( I ),
  1862. $ NXVAL( I )
  1863. IF( TSTCHK ) THEN
  1864. IF( LSAMEN( 3, C3, 'SE2' ) ) THEN
  1865. CALL ZCHKST2STG( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  1866. $ NOUT, A( 1, 1 ), NMAX, A( 1, 2 ),
  1867. $ DR( 1, 1 ), DR( 1, 2 ), DR( 1, 3 ),
  1868. $ DR( 1, 4 ), DR( 1, 5 ), DR( 1, 6 ),
  1869. $ DR( 1, 7 ), DR( 1, 8 ), DR( 1, 9 ),
  1870. $ DR( 1, 10 ), DR( 1, 11 ), A( 1, 3 ), NMAX,
  1871. $ A( 1, 4 ), A( 1, 5 ), DC( 1, 1 ), A( 1, 6 ),
  1872. $ WORK, LWORK, RWORK, LWORK, IWORK, LIWORK,
  1873. $ RESULT, INFO )
  1874. ELSE
  1875. CALL ZCHKST( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  1876. $ NOUT, A( 1, 1 ), NMAX, A( 1, 2 ),
  1877. $ DR( 1, 1 ), DR( 1, 2 ), DR( 1, 3 ),
  1878. $ DR( 1, 4 ), DR( 1, 5 ), DR( 1, 6 ),
  1879. $ DR( 1, 7 ), DR( 1, 8 ), DR( 1, 9 ),
  1880. $ DR( 1, 10 ), DR( 1, 11 ), A( 1, 3 ), NMAX,
  1881. $ A( 1, 4 ), A( 1, 5 ), DC( 1, 1 ), A( 1, 6 ),
  1882. $ WORK, LWORK, RWORK, LWORK, IWORK, LIWORK,
  1883. $ RESULT, INFO )
  1884. ENDIF
  1885. IF( INFO.NE.0 )
  1886. $ WRITE( NOUT, FMT = 9980 )'ZCHKST', INFO
  1887. END IF
  1888. IF( TSTDRV ) THEN
  1889. IF( LSAMEN( 3, C3, 'SE2' ) ) THEN
  1890. CALL ZDRVST2STG( NN, NVAL, 18, DOTYPE, ISEED, THRESH,
  1891. $ NOUT, A( 1, 1 ), NMAX, DR( 1, 3 ), DR( 1, 4 ),
  1892. $ DR( 1, 5 ), DR( 1, 8 ), DR( 1, 9 ),
  1893. $ DR( 1, 10 ), A( 1, 2 ), NMAX, A( 1, 3 ),
  1894. $ DC( 1, 1 ), A( 1, 4 ), WORK, LWORK, RWORK,
  1895. $ LWORK, IWORK, LIWORK, RESULT, INFO )
  1896. ELSE
  1897. CALL ZDRVST( NN, NVAL, 18, DOTYPE, ISEED, THRESH, NOUT,
  1898. $ A( 1, 1 ), NMAX, DR( 1, 3 ), DR( 1, 4 ),
  1899. $ DR( 1, 5 ), DR( 1, 8 ), DR( 1, 9 ),
  1900. $ DR( 1, 10 ), A( 1, 2 ), NMAX, A( 1, 3 ),
  1901. $ DC( 1, 1 ), A( 1, 4 ), WORK, LWORK, RWORK,
  1902. $ LWORK, IWORK, LIWORK, RESULT, INFO )
  1903. ENDIF
  1904. IF( INFO.NE.0 )
  1905. $ WRITE( NOUT, FMT = 9980 )'ZDRVST', INFO
  1906. END IF
  1907. 290 CONTINUE
  1908. *
  1909. ELSE IF( LSAMEN( 3, C3, 'ZSG' ) ) THEN
  1910. *
  1911. * ----------------------------------------------
  1912. * ZSG: Hermitian Generalized Eigenvalue Problem
  1913. * ----------------------------------------------
  1914. * Vary the parameters
  1915. * NB = block size
  1916. * NBMIN = minimum block size
  1917. * NX = crossover point
  1918. *
  1919. MAXTYP = 21
  1920. NTYPES = MIN( MAXTYP, NTYPES )
  1921. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  1922. CALL XLAENV( 9, 25 )
  1923. DO 310 I = 1, NPARMS
  1924. CALL XLAENV( 1, NBVAL( I ) )
  1925. CALL XLAENV( 2, NBMIN( I ) )
  1926. CALL XLAENV( 3, NXVAL( I ) )
  1927. *
  1928. IF( NEWSD.EQ.0 ) THEN
  1929. DO 300 K = 1, 4
  1930. ISEED( K ) = IOLDSD( K )
  1931. 300 CONTINUE
  1932. END IF
  1933. WRITE( NOUT, FMT = 9997 )C3, NBVAL( I ), NBMIN( I ),
  1934. $ NXVAL( I )
  1935. IF( TSTCHK ) THEN
  1936. * CALL ZDRVSG( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  1937. * $ NOUT, A( 1, 1 ), NMAX, A( 1, 2 ), NMAX,
  1938. * $ DR( 1, 3 ), A( 1, 3 ), NMAX, A( 1, 4 ),
  1939. * $ A( 1, 5 ), A( 1, 6 ), A( 1, 7 ), WORK,
  1940. * $ LWORK, RWORK, LWORK, IWORK, LIWORK, RESULT,
  1941. * $ INFO )
  1942. CALL ZDRVSG2STG( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  1943. $ NOUT, A( 1, 1 ), NMAX, A( 1, 2 ), NMAX,
  1944. $ DR( 1, 3 ), DR( 1, 4 ), A( 1, 3 ), NMAX,
  1945. $ A( 1, 4 ), A( 1, 5 ), A( 1, 6 ),
  1946. $ A( 1, 7 ), WORK, LWORK, RWORK, LWORK,
  1947. $ IWORK, LIWORK, RESULT, INFO )
  1948. IF( INFO.NE.0 )
  1949. $ WRITE( NOUT, FMT = 9980 )'ZDRVSG', INFO
  1950. END IF
  1951. 310 CONTINUE
  1952. *
  1953. ELSE IF( LSAMEN( 3, C3, 'ZBD' ) .OR. LSAMEN( 3, C3, 'SVD' ) ) THEN
  1954. *
  1955. * ----------------------------------
  1956. * SVD: Singular Value Decomposition
  1957. * ----------------------------------
  1958. * Vary the parameters
  1959. * NB = block size
  1960. * NBMIN = minimum block size
  1961. * NX = crossover point
  1962. * NRHS = number of right hand sides
  1963. *
  1964. MAXTYP = 16
  1965. NTYPES = MIN( MAXTYP, NTYPES )
  1966. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  1967. CALL XLAENV( 9, 25 )
  1968. *
  1969. * Test the error exits
  1970. *
  1971. CALL XLAENV( 1, 1 )
  1972. IF( TSTERR .AND. TSTCHK )
  1973. $ CALL ZERRBD( 'ZBD', NOUT )
  1974. IF( TSTERR .AND. TSTDRV )
  1975. $ CALL ZERRED( 'ZBD', NOUT )
  1976. *
  1977. DO 330 I = 1, NPARMS
  1978. NRHS = NSVAL( I )
  1979. CALL XLAENV( 1, NBVAL( I ) )
  1980. CALL XLAENV( 2, NBMIN( I ) )
  1981. CALL XLAENV( 3, NXVAL( I ) )
  1982. IF( NEWSD.EQ.0 ) THEN
  1983. DO 320 K = 1, 4
  1984. ISEED( K ) = IOLDSD( K )
  1985. 320 CONTINUE
  1986. END IF
  1987. WRITE( NOUT, FMT = 9995 )C3, NBVAL( I ), NBMIN( I ),
  1988. $ NXVAL( I ), NRHS
  1989. IF( TSTCHK ) THEN
  1990. CALL ZCHKBD( NN, MVAL, NVAL, MAXTYP, DOTYPE, NRHS, ISEED,
  1991. $ THRESH, A( 1, 1 ), NMAX, DR( 1, 1 ),
  1992. $ DR( 1, 2 ), DR( 1, 3 ), DR( 1, 4 ),
  1993. $ A( 1, 2 ), NMAX, A( 1, 3 ), A( 1, 4 ),
  1994. $ A( 1, 5 ), NMAX, A( 1, 6 ), NMAX, A( 1, 7 ),
  1995. $ A( 1, 8 ), WORK, LWORK, RWORK, NOUT, INFO )
  1996. IF( INFO.NE.0 )
  1997. $ WRITE( NOUT, FMT = 9980 )'ZCHKBD', INFO
  1998. END IF
  1999. IF( TSTDRV )
  2000. $ CALL ZDRVBD( NN, MVAL, NVAL, MAXTYP, DOTYPE, ISEED,
  2001. $ THRESH, A( 1, 1 ), NMAX, A( 1, 2 ), NMAX,
  2002. $ A( 1, 3 ), NMAX, A( 1, 4 ), A( 1, 5 ),
  2003. $ A( 1, 6 ), DR( 1, 1 ), DR( 1, 2 ),
  2004. $ DR( 1, 3 ), WORK, LWORK, RWORK, IWORK, NOUT,
  2005. $ INFO )
  2006. 330 CONTINUE
  2007. *
  2008. ELSE IF( LSAMEN( 3, C3, 'ZEV' ) ) THEN
  2009. *
  2010. * --------------------------------------------
  2011. * ZEV: Nonsymmetric Eigenvalue Problem Driver
  2012. * ZGEEV (eigenvalues and eigenvectors)
  2013. * --------------------------------------------
  2014. *
  2015. MAXTYP = 21
  2016. NTYPES = MIN( MAXTYP, NTYPES )
  2017. IF( NTYPES.LE.0 ) THEN
  2018. WRITE( NOUT, FMT = 9990 )C3
  2019. ELSE
  2020. IF( TSTERR )
  2021. $ CALL ZERRED( C3, NOUT )
  2022. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2023. CALL ZDRVEV( NN, NVAL, NTYPES, DOTYPE, ISEED, THRESH, NOUT,
  2024. $ A( 1, 1 ), NMAX, A( 1, 2 ), DC( 1, 1 ),
  2025. $ DC( 1, 2 ), A( 1, 3 ), NMAX, A( 1, 4 ), NMAX,
  2026. $ A( 1, 5 ), NMAX, RESULT, WORK, LWORK, RWORK,
  2027. $ IWORK, INFO )
  2028. IF( INFO.NE.0 )
  2029. $ WRITE( NOUT, FMT = 9980 )'ZGEEV', INFO
  2030. END IF
  2031. WRITE( NOUT, FMT = 9973 )
  2032. GO TO 10
  2033. *
  2034. ELSE IF( LSAMEN( 3, C3, 'ZES' ) ) THEN
  2035. *
  2036. * --------------------------------------------
  2037. * ZES: Nonsymmetric Eigenvalue Problem Driver
  2038. * ZGEES (Schur form)
  2039. * --------------------------------------------
  2040. *
  2041. MAXTYP = 21
  2042. NTYPES = MIN( MAXTYP, NTYPES )
  2043. IF( NTYPES.LE.0 ) THEN
  2044. WRITE( NOUT, FMT = 9990 )C3
  2045. ELSE
  2046. IF( TSTERR )
  2047. $ CALL ZERRED( C3, NOUT )
  2048. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2049. CALL ZDRVES( NN, NVAL, NTYPES, DOTYPE, ISEED, THRESH, NOUT,
  2050. $ A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  2051. $ DC( 1, 1 ), DC( 1, 2 ), A( 1, 4 ), NMAX,
  2052. $ RESULT, WORK, LWORK, RWORK, IWORK, LOGWRK,
  2053. $ INFO )
  2054. IF( INFO.NE.0 )
  2055. $ WRITE( NOUT, FMT = 9980 )'ZGEES', INFO
  2056. END IF
  2057. WRITE( NOUT, FMT = 9973 )
  2058. GO TO 10
  2059. *
  2060. ELSE IF( LSAMEN( 3, C3, 'ZVX' ) ) THEN
  2061. *
  2062. * --------------------------------------------------------------
  2063. * ZVX: Nonsymmetric Eigenvalue Problem Expert Driver
  2064. * ZGEEVX (eigenvalues, eigenvectors and condition numbers)
  2065. * --------------------------------------------------------------
  2066. *
  2067. MAXTYP = 21
  2068. NTYPES = MIN( MAXTYP, NTYPES )
  2069. IF( NTYPES.LT.0 ) THEN
  2070. WRITE( NOUT, FMT = 9990 )C3
  2071. ELSE
  2072. IF( TSTERR )
  2073. $ CALL ZERRED( C3, NOUT )
  2074. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2075. CALL ZDRVVX( NN, NVAL, NTYPES, DOTYPE, ISEED, THRESH, NIN,
  2076. $ NOUT, A( 1, 1 ), NMAX, A( 1, 2 ), DC( 1, 1 ),
  2077. $ DC( 1, 2 ), A( 1, 3 ), NMAX, A( 1, 4 ), NMAX,
  2078. $ A( 1, 5 ), NMAX, DR( 1, 1 ), DR( 1, 2 ),
  2079. $ DR( 1, 3 ), DR( 1, 4 ), DR( 1, 5 ), DR( 1, 6 ),
  2080. $ DR( 1, 7 ), DR( 1, 8 ), RESULT, WORK, LWORK,
  2081. $ RWORK, INFO )
  2082. IF( INFO.NE.0 )
  2083. $ WRITE( NOUT, FMT = 9980 )'ZGEEVX', INFO
  2084. END IF
  2085. WRITE( NOUT, FMT = 9973 )
  2086. GO TO 10
  2087. *
  2088. ELSE IF( LSAMEN( 3, C3, 'ZSX' ) ) THEN
  2089. *
  2090. * ---------------------------------------------------
  2091. * ZSX: Nonsymmetric Eigenvalue Problem Expert Driver
  2092. * ZGEESX (Schur form and condition numbers)
  2093. * ---------------------------------------------------
  2094. *
  2095. MAXTYP = 21
  2096. NTYPES = MIN( MAXTYP, NTYPES )
  2097. IF( NTYPES.LT.0 ) THEN
  2098. WRITE( NOUT, FMT = 9990 )C3
  2099. ELSE
  2100. IF( TSTERR )
  2101. $ CALL ZERRED( C3, NOUT )
  2102. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2103. CALL ZDRVSX( NN, NVAL, NTYPES, DOTYPE, ISEED, THRESH, NIN,
  2104. $ NOUT, A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  2105. $ DC( 1, 1 ), DC( 1, 2 ), DC( 1, 3 ), A( 1, 4 ),
  2106. $ NMAX, A( 1, 5 ), RESULT, WORK, LWORK, RWORK,
  2107. $ LOGWRK, INFO )
  2108. IF( INFO.NE.0 )
  2109. $ WRITE( NOUT, FMT = 9980 )'ZGEESX', INFO
  2110. END IF
  2111. WRITE( NOUT, FMT = 9973 )
  2112. GO TO 10
  2113. *
  2114. ELSE IF( LSAMEN( 3, C3, 'ZGG' ) ) THEN
  2115. *
  2116. * -------------------------------------------------
  2117. * ZGG: Generalized Nonsymmetric Eigenvalue Problem
  2118. * -------------------------------------------------
  2119. * Vary the parameters
  2120. * NB = block size
  2121. * NBMIN = minimum block size
  2122. * NS = number of shifts
  2123. * MAXB = minimum submatrix size
  2124. * IACC22: structured matrix multiply
  2125. * NBCOL = minimum column dimension for blocks
  2126. *
  2127. MAXTYP = 26
  2128. NTYPES = MIN( MAXTYP, NTYPES )
  2129. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2130. CALL XLAENV(1,1)
  2131. IF( TSTCHK .AND. TSTERR )
  2132. $ CALL ZERRGG( C3, NOUT )
  2133. DO 350 I = 1, NPARMS
  2134. CALL XLAENV( 1, NBVAL( I ) )
  2135. CALL XLAENV( 2, NBMIN( I ) )
  2136. CALL XLAENV( 4, NSVAL( I ) )
  2137. CALL XLAENV( 8, MXBVAL( I ) )
  2138. CALL XLAENV( 16, IACC22( I ) )
  2139. CALL XLAENV( 5, NBCOL( I ) )
  2140. *
  2141. IF( NEWSD.EQ.0 ) THEN
  2142. DO 340 K = 1, 4
  2143. ISEED( K ) = IOLDSD( K )
  2144. 340 CONTINUE
  2145. END IF
  2146. WRITE( NOUT, FMT = 9996 )C3, NBVAL( I ), NBMIN( I ),
  2147. $ NSVAL( I ), MXBVAL( I ), IACC22( I ), NBCOL( I )
  2148. TSTDIF = .FALSE.
  2149. THRSHN = 10.D0
  2150. IF( TSTCHK ) THEN
  2151. CALL ZCHKGG( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  2152. $ TSTDIF, THRSHN, NOUT, A( 1, 1 ), NMAX,
  2153. $ A( 1, 2 ), A( 1, 3 ), A( 1, 4 ), A( 1, 5 ),
  2154. $ A( 1, 6 ), A( 1, 7 ), A( 1, 8 ), A( 1, 9 ),
  2155. $ NMAX, A( 1, 10 ), A( 1, 11 ), A( 1, 12 ),
  2156. $ DC( 1, 1 ), DC( 1, 2 ), DC( 1, 3 ),
  2157. $ DC( 1, 4 ), A( 1, 13 ), A( 1, 14 ), WORK,
  2158. $ LWORK, RWORK, LOGWRK, RESULT, INFO )
  2159. IF( INFO.NE.0 )
  2160. $ WRITE( NOUT, FMT = 9980 )'ZCHKGG', INFO
  2161. END IF
  2162. 350 CONTINUE
  2163. *
  2164. ELSE IF( LSAMEN( 3, C3, 'ZGS' ) ) THEN
  2165. *
  2166. * -------------------------------------------------
  2167. * ZGS: Generalized Nonsymmetric Eigenvalue Problem
  2168. * ZGGES (Schur form)
  2169. * -------------------------------------------------
  2170. *
  2171. MAXTYP = 26
  2172. NTYPES = MIN( MAXTYP, NTYPES )
  2173. IF( NTYPES.LE.0 ) THEN
  2174. WRITE( NOUT, FMT = 9990 )C3
  2175. ELSE
  2176. IF( TSTERR )
  2177. $ CALL ZERRGG( C3, NOUT )
  2178. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2179. CALL ZDRGES( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH, NOUT,
  2180. $ A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  2181. $ A( 1, 4 ), A( 1, 7 ), NMAX, A( 1, 8 ),
  2182. $ DC( 1, 1 ), DC( 1, 2 ), WORK, LWORK, RWORK,
  2183. $ RESULT, LOGWRK, INFO )
  2184. *
  2185. IF( INFO.NE.0 )
  2186. $ WRITE( NOUT, FMT = 9980 )'ZDRGES', INFO
  2187. *
  2188. * Blocked version
  2189. *
  2190. CALL ZDRGES3( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH, NOUT,
  2191. $ A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  2192. $ A( 1, 4 ), A( 1, 7 ), NMAX, A( 1, 8 ),
  2193. $ DC( 1, 1 ), DC( 1, 2 ), WORK, LWORK, RWORK,
  2194. $ RESULT, LOGWRK, INFO )
  2195. *
  2196. IF( INFO.NE.0 )
  2197. $ WRITE( NOUT, FMT = 9980 )'ZDRGES3', INFO
  2198. END IF
  2199. WRITE( NOUT, FMT = 9973 )
  2200. GO TO 10
  2201. *
  2202. ELSE IF( ZGX ) THEN
  2203. *
  2204. * -------------------------------------------------
  2205. * ZGX Generalized Nonsymmetric Eigenvalue Problem
  2206. * ZGGESX (Schur form and condition numbers)
  2207. * -------------------------------------------------
  2208. *
  2209. MAXTYP = 5
  2210. NTYPES = MAXTYP
  2211. IF( NN.LT.0 ) THEN
  2212. WRITE( NOUT, FMT = 9990 )C3
  2213. ELSE
  2214. IF( TSTERR )
  2215. $ CALL ZERRGG( C3, NOUT )
  2216. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2217. CALL XLAENV( 5, 2 )
  2218. CALL ZDRGSX( NN, NCMAX, THRESH, NIN, NOUT, A( 1, 1 ), NMAX,
  2219. $ A( 1, 2 ), A( 1, 3 ), A( 1, 4 ), A( 1, 5 ),
  2220. $ A( 1, 6 ), DC( 1, 1 ), DC( 1, 2 ), C,
  2221. $ NCMAX*NCMAX, S, WORK, LWORK, RWORK, IWORK,
  2222. $ LIWORK, LOGWRK, INFO )
  2223. IF( INFO.NE.0 )
  2224. $ WRITE( NOUT, FMT = 9980 )'ZDRGSX', INFO
  2225. END IF
  2226. WRITE( NOUT, FMT = 9973 )
  2227. GO TO 10
  2228. *
  2229. ELSE IF( LSAMEN( 3, C3, 'ZGV' ) ) THEN
  2230. *
  2231. * -------------------------------------------------
  2232. * ZGV: Generalized Nonsymmetric Eigenvalue Problem
  2233. * ZGGEV (Eigenvalue/vector form)
  2234. * -------------------------------------------------
  2235. *
  2236. MAXTYP = 26
  2237. NTYPES = MIN( MAXTYP, NTYPES )
  2238. IF( NTYPES.LE.0 ) THEN
  2239. WRITE( NOUT, FMT = 9990 )C3
  2240. ELSE
  2241. IF( TSTERR )
  2242. $ CALL ZERRGG( C3, NOUT )
  2243. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2244. CALL ZDRGEV( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH, NOUT,
  2245. $ A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  2246. $ A( 1, 4 ), A( 1, 7 ), NMAX, A( 1, 8 ),
  2247. $ A( 1, 9 ), NMAX, DC( 1, 1 ), DC( 1, 2 ),
  2248. $ DC( 1, 3 ), DC( 1, 4 ), WORK, LWORK, RWORK,
  2249. $ RESULT, INFO )
  2250. IF( INFO.NE.0 )
  2251. $ WRITE( NOUT, FMT = 9980 )'ZDRGEV', INFO
  2252. *
  2253. * Blocked version
  2254. *
  2255. CALL XLAENV(16,2)
  2256. CALL ZDRGEV3( NN, NVAL, MAXTYP, DOTYPE, ISEED, THRESH, NOUT,
  2257. $ A( 1, 1 ), NMAX, A( 1, 2 ), A( 1, 3 ),
  2258. $ A( 1, 4 ), A( 1, 7 ), NMAX, A( 1, 8 ),
  2259. $ A( 1, 9 ), NMAX, DC( 1, 1 ), DC( 1, 2 ),
  2260. $ DC( 1, 3 ), DC( 1, 4 ), WORK, LWORK, RWORK,
  2261. $ RESULT, INFO )
  2262. IF( INFO.NE.0 )
  2263. $ WRITE( NOUT, FMT = 9980 )'ZDRGEV3', INFO
  2264. END IF
  2265. WRITE( NOUT, FMT = 9973 )
  2266. GO TO 10
  2267. *
  2268. ELSE IF( ZXV ) THEN
  2269. *
  2270. * -------------------------------------------------
  2271. * ZXV: Generalized Nonsymmetric Eigenvalue Problem
  2272. * ZGGEVX (eigenvalue/vector with condition numbers)
  2273. * -------------------------------------------------
  2274. *
  2275. MAXTYP = 2
  2276. NTYPES = MAXTYP
  2277. IF( NN.LT.0 ) THEN
  2278. WRITE( NOUT, FMT = 9990 )C3
  2279. ELSE
  2280. IF( TSTERR )
  2281. $ CALL ZERRGG( C3, NOUT )
  2282. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2283. CALL ZDRGVX( NN, THRESH, NIN, NOUT, A( 1, 1 ), NMAX,
  2284. $ A( 1, 2 ), A( 1, 3 ), A( 1, 4 ), DC( 1, 1 ),
  2285. $ DC( 1, 2 ), A( 1, 5 ), A( 1, 6 ), IWORK( 1 ),
  2286. $ IWORK( 2 ), DR( 1, 1 ), DR( 1, 2 ), DR( 1, 3 ),
  2287. $ DR( 1, 4 ), DR( 1, 5 ), DR( 1, 6 ), WORK,
  2288. $ LWORK, RWORK, IWORK( 3 ), LIWORK-2, RESULT,
  2289. $ LOGWRK, INFO )
  2290. *
  2291. IF( INFO.NE.0 )
  2292. $ WRITE( NOUT, FMT = 9980 )'ZDRGVX', INFO
  2293. END IF
  2294. WRITE( NOUT, FMT = 9973 )
  2295. GO TO 10
  2296. *
  2297. ELSE IF( LSAMEN( 3, C3, 'ZHB' ) ) THEN
  2298. *
  2299. * ------------------------------
  2300. * ZHB: Hermitian Band Reduction
  2301. * ------------------------------
  2302. *
  2303. MAXTYP = 15
  2304. NTYPES = MIN( MAXTYP, NTYPES )
  2305. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2306. IF( TSTERR )
  2307. $ CALL ZERRST( 'ZHB', NOUT )
  2308. * CALL ZCHKHB( NN, NVAL, NK, KVAL, MAXTYP, DOTYPE, ISEED, THRESH,
  2309. * $ NOUT, A( 1, 1 ), NMAX, DR( 1, 1 ), DR( 1, 2 ),
  2310. * $ A( 1, 2 ), NMAX, WORK, LWORK, RWORK, RESULT,
  2311. * $ INFO )
  2312. CALL ZCHKHB2STG( NN, NVAL, NK, KVAL, MAXTYP, DOTYPE, ISEED,
  2313. $ THRESH, NOUT, A( 1, 1 ), NMAX, DR( 1, 1 ),
  2314. $ DR( 1, 2 ), DR( 1, 3 ), DR( 1, 4 ), DR( 1, 5 ),
  2315. $ A( 1, 2 ), NMAX, WORK, LWORK, RWORK, RESULT,
  2316. $ INFO )
  2317. IF( INFO.NE.0 )
  2318. $ WRITE( NOUT, FMT = 9980 )'ZCHKHB', INFO
  2319. *
  2320. ELSE IF( LSAMEN( 3, C3, 'ZBB' ) ) THEN
  2321. *
  2322. * ------------------------------
  2323. * ZBB: General Band Reduction
  2324. * ------------------------------
  2325. *
  2326. MAXTYP = 15
  2327. NTYPES = MIN( MAXTYP, NTYPES )
  2328. CALL ALAREQ( C3, NTYPES, DOTYPE, MAXTYP, NIN, NOUT )
  2329. DO 370 I = 1, NPARMS
  2330. NRHS = NSVAL( I )
  2331. *
  2332. IF( NEWSD.EQ.0 ) THEN
  2333. DO 360 K = 1, 4
  2334. ISEED( K ) = IOLDSD( K )
  2335. 360 CONTINUE
  2336. END IF
  2337. WRITE( NOUT, FMT = 9966 )C3, NRHS
  2338. CALL ZCHKBB( NN, MVAL, NVAL, NK, KVAL, MAXTYP, DOTYPE, NRHS,
  2339. $ ISEED, THRESH, NOUT, A( 1, 1 ), NMAX,
  2340. $ A( 1, 2 ), 2*NMAX, DR( 1, 1 ), DR( 1, 2 ),
  2341. $ A( 1, 4 ), NMAX, A( 1, 5 ), NMAX, A( 1, 6 ),
  2342. $ NMAX, A( 1, 7 ), WORK, LWORK, RWORK, RESULT,
  2343. $ INFO )
  2344. IF( INFO.NE.0 )
  2345. $ WRITE( NOUT, FMT = 9980 )'ZCHKBB', INFO
  2346. 370 CONTINUE
  2347. *
  2348. ELSE IF( LSAMEN( 3, C3, 'GLM' ) ) THEN
  2349. *
  2350. * -----------------------------------------
  2351. * GLM: Generalized Linear Regression Model
  2352. * -----------------------------------------
  2353. *
  2354. CALL XLAENV( 1, 1 )
  2355. IF( TSTERR )
  2356. $ CALL ZERRGG( 'GLM', NOUT )
  2357. CALL ZCKGLM( NN, NVAL, MVAL, PVAL, NTYPES, ISEED, THRESH, NMAX,
  2358. $ A( 1, 1 ), A( 1, 2 ), B( 1, 1 ), B( 1, 2 ), X,
  2359. $ WORK, DR( 1, 1 ), NIN, NOUT, INFO )
  2360. IF( INFO.NE.0 )
  2361. $ WRITE( NOUT, FMT = 9980 )'ZCKGLM', INFO
  2362. *
  2363. ELSE IF( LSAMEN( 3, C3, 'GQR' ) ) THEN
  2364. *
  2365. * ------------------------------------------
  2366. * GQR: Generalized QR and RQ factorizations
  2367. * ------------------------------------------
  2368. *
  2369. CALL XLAENV( 1, 1 )
  2370. IF( TSTERR )
  2371. $ CALL ZERRGG( 'GQR', NOUT )
  2372. CALL ZCKGQR( NN, MVAL, NN, PVAL, NN, NVAL, NTYPES, ISEED,
  2373. $ THRESH, NMAX, A( 1, 1 ), A( 1, 2 ), A( 1, 3 ),
  2374. $ A( 1, 4 ), TAUA, B( 1, 1 ), B( 1, 2 ), B( 1, 3 ),
  2375. $ B( 1, 4 ), B( 1, 5 ), TAUB, WORK, DR( 1, 1 ), NIN,
  2376. $ NOUT, INFO )
  2377. IF( INFO.NE.0 )
  2378. $ WRITE( NOUT, FMT = 9980 )'ZCKGQR', INFO
  2379. *
  2380. ELSE IF( LSAMEN( 3, C3, 'GSV' ) ) THEN
  2381. *
  2382. * ----------------------------------------------
  2383. * GSV: Generalized Singular Value Decomposition
  2384. * ----------------------------------------------
  2385. *
  2386. CALL XLAENV(1,1)
  2387. IF( TSTERR )
  2388. $ CALL ZERRGG( 'GSV', NOUT )
  2389. CALL ZCKGSV( NN, MVAL, PVAL, NVAL, NTYPES, ISEED, THRESH, NMAX,
  2390. $ A( 1, 1 ), A( 1, 2 ), B( 1, 1 ), B( 1, 2 ),
  2391. $ A( 1, 3 ), B( 1, 3 ), A( 1, 4 ), ALPHA, BETA,
  2392. $ B( 1, 4 ), IWORK, WORK, DR( 1, 1 ), NIN, NOUT,
  2393. $ INFO )
  2394. IF( INFO.NE.0 )
  2395. $ WRITE( NOUT, FMT = 9980 )'ZCKGSV', INFO
  2396. *
  2397. ELSE IF( LSAMEN( 3, C3, 'CSD' ) ) THEN
  2398. *
  2399. * ----------------------------------------------
  2400. * CSD: CS Decomposition
  2401. * ----------------------------------------------
  2402. *
  2403. CALL XLAENV(1,1)
  2404. IF( TSTERR )
  2405. $ CALL ZERRGG( 'CSD', NOUT )
  2406. CALL ZCKCSD( NN, MVAL, PVAL, NVAL, NTYPES, ISEED, THRESH, NMAX,
  2407. $ A( 1, 1 ), A( 1, 2 ), A( 1, 3 ), A( 1, 4 ),
  2408. $ A( 1, 5 ), A( 1, 6 ), RWORK, IWORK, WORK,
  2409. $ DR( 1, 1 ), NIN, NOUT, INFO )
  2410. IF( INFO.NE.0 )
  2411. $ WRITE( NOUT, FMT = 9980 )'ZCKCSD', INFO
  2412. *
  2413. ELSE IF( LSAMEN( 3, C3, 'LSE' ) ) THEN
  2414. *
  2415. * --------------------------------------
  2416. * LSE: Constrained Linear Least Squares
  2417. * --------------------------------------
  2418. *
  2419. CALL XLAENV( 1, 1 )
  2420. IF( TSTERR )
  2421. $ CALL ZERRGG( 'LSE', NOUT )
  2422. CALL ZCKLSE( NN, MVAL, PVAL, NVAL, NTYPES, ISEED, THRESH, NMAX,
  2423. $ A( 1, 1 ), A( 1, 2 ), B( 1, 1 ), B( 1, 2 ), X,
  2424. $ WORK, DR( 1, 1 ), NIN, NOUT, INFO )
  2425. IF( INFO.NE.0 )
  2426. $ WRITE( NOUT, FMT = 9980 )'ZCKLSE', INFO
  2427. ELSE
  2428. WRITE( NOUT, FMT = * )
  2429. WRITE( NOUT, FMT = * )
  2430. WRITE( NOUT, FMT = 9992 )C3
  2431. END IF
  2432. IF( .NOT.( ZGX .OR. ZXV ) )
  2433. $ GO TO 190
  2434. 380 CONTINUE
  2435. WRITE( NOUT, FMT = 9994 )
  2436. S2 = DSECND( )
  2437. WRITE( NOUT, FMT = 9993 )S2 - S1
  2438. *
  2439. 9999 FORMAT( / ' Execution not attempted due to input errors' )
  2440. 9997 FORMAT( / / 1X, A3, ': NB =', I4, ', NBMIN =', I4, ', NX =', I4 )
  2441. 9996 FORMAT( / / 1X, A3, ': NB =', I4, ', NBMIN =', I4, ', NS =', I4,
  2442. $ ', MAXB =', I4, ', IACC22 =', I4, ', NBCOL =', I4 )
  2443. 9995 FORMAT( / / 1X, A3, ': NB =', I4, ', NBMIN =', I4, ', NX =', I4,
  2444. $ ', NRHS =', I4 )
  2445. 9994 FORMAT( / / ' End of tests' )
  2446. 9993 FORMAT( ' Total time used = ', F12.2, ' seconds', / )
  2447. 9992 FORMAT( 1X, A3, ': Unrecognized path name' )
  2448. 9991 FORMAT( / / ' *** Invalid integer value in column ', I2,
  2449. $ ' of input', ' line:', / A79 )
  2450. 9990 FORMAT( / / 1X, A3, ' routines were not tested' )
  2451. 9989 FORMAT( ' Invalid input value: ', A, '=', I6, '; must be >=',
  2452. $ I6 )
  2453. 9988 FORMAT( ' Invalid input value: ', A, '=', I6, '; must be <=',
  2454. $ I6 )
  2455. 9987 FORMAT( ' Tests of the Nonsymmetric Eigenvalue Problem routines' )
  2456. 9986 FORMAT( ' Tests of the Hermitian Eigenvalue Problem routines' )
  2457. 9985 FORMAT( ' Tests of the Singular Value Decomposition routines' )
  2458. 9984 FORMAT( / ' The following parameter values will be used:' )
  2459. 9983 FORMAT( 4X, A, 10I6, / 10X, 10I6 )
  2460. 9982 FORMAT( / ' Routines pass computational tests if test ratio is ',
  2461. $ 'less than', F8.2, / )
  2462. 9981 FORMAT( ' Relative machine ', A, ' is taken to be', D16.6 )
  2463. 9980 FORMAT( ' *** Error code from ', A, ' = ', I4 )
  2464. 9979 FORMAT( / ' Tests of the Nonsymmetric Eigenvalue Problem Driver',
  2465. $ / ' ZGEEV (eigenvalues and eigevectors)' )
  2466. 9978 FORMAT( / ' Tests of the Nonsymmetric Eigenvalue Problem Driver',
  2467. $ / ' ZGEES (Schur form)' )
  2468. 9977 FORMAT( / ' Tests of the Nonsymmetric Eigenvalue Problem Expert',
  2469. $ ' Driver', / ' ZGEEVX (eigenvalues, eigenvectors and',
  2470. $ ' condition numbers)' )
  2471. 9976 FORMAT( / ' Tests of the Nonsymmetric Eigenvalue Problem Expert',
  2472. $ ' Driver', / ' ZGEESX (Schur form and condition',
  2473. $ ' numbers)' )
  2474. 9975 FORMAT( / ' Tests of the Generalized Nonsymmetric Eigenvalue ',
  2475. $ 'Problem routines' )
  2476. 9974 FORMAT( ' Tests of ZHBTRD', / ' (reduction of a Hermitian band ',
  2477. $ 'matrix to real tridiagonal form)' )
  2478. 9973 FORMAT( / 1X, 71( '-' ) )
  2479. 9972 FORMAT( / ' LAPACK VERSION ', I1, '.', I1, '.', I1 )
  2480. 9971 FORMAT( / ' Tests of the Generalized Linear Regression Model ',
  2481. $ 'routines' )
  2482. 9970 FORMAT( / ' Tests of the Generalized QR and RQ routines' )
  2483. 9969 FORMAT( / ' Tests of the Generalized Singular Value',
  2484. $ ' Decomposition routines' )
  2485. 9968 FORMAT( / ' Tests of the Linear Least Squares routines' )
  2486. 9967 FORMAT( ' Tests of ZGBBRD', / ' (reduction of a general band ',
  2487. $ 'matrix to real bidiagonal form)' )
  2488. 9966 FORMAT( / / 1X, A3, ': NRHS =', I4 )
  2489. 9965 FORMAT( / ' Tests of the Generalized Nonsymmetric Eigenvalue ',
  2490. $ 'Problem Expert Driver ZGGESX' )
  2491. 9964 FORMAT( / ' Tests of the Generalized Nonsymmetric Eigenvalue ',
  2492. $ 'Problem Driver ZGGES' )
  2493. 9963 FORMAT( / ' Tests of the Generalized Nonsymmetric Eigenvalue ',
  2494. $ 'Problem Driver ZGGEV' )
  2495. 9962 FORMAT( / ' Tests of the Generalized Nonsymmetric Eigenvalue ',
  2496. $ 'Problem Expert Driver ZGGEVX' )
  2497. 9961 FORMAT( / / 1X, A3, ': NB =', I4, ', NBMIN =', I4, ', NX =', I4,
  2498. $ ', INMIN=', I4,
  2499. $ ', INWIN =', I4, ', INIBL =', I4, ', ISHFTS =', I4,
  2500. $ ', IACC22 =', I4)
  2501. 9960 FORMAT( / ' Tests of the CS Decomposition routines' )
  2502. *
  2503. * End of ZCHKEE
  2504. *
  2505. END