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