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.

dchkee.F 93 kB

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