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

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