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

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