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.

cchkee.F 94 kB

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