lapack.h 283 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147
  1. #ifndef LAPACK_WRAP_
  2. #define LAPACK_WRAP_
  3. extern int cbdsqr_(char *uplo, integer * n, integer * ncvt, integer * nru,
  4. integer * ncc, real * d__, real * e, complex * vt,
  5. integer * ldvt, complex * u, integer * ldu, complex * c__,
  6. integer * ldc, real * rwork, integer * info,
  7. ftnlen uplo_len);
  8. extern int cgbbrd_(char *vect, integer * m, integer * n, integer * ncc,
  9. integer * kl, integer * ku, complex * ab, integer * ldab,
  10. real * d__, real * e, complex * q, integer * ldq,
  11. complex * pt, integer * ldpt, complex * c__, integer * ldc,
  12. complex * work, real * rwork, integer * info,
  13. ftnlen vect_len);
  14. extern int cgbcon_(char *norm, integer * n, integer * kl, integer * ku,
  15. complex * ab, integer * ldab, integer * ipiv, real * anorm,
  16. real * rcond, complex * work, real * rwork, integer * info,
  17. ftnlen norm_len);
  18. extern int cgbequ_(integer * m, integer * n, integer * kl, integer * ku,
  19. complex * ab, integer * ldab, real * r__, real * c__,
  20. real * rowcnd, real * colcnd, real * amax, integer * info);
  21. extern int cgbrfs_(char *trans, integer * n, integer * kl, integer * ku,
  22. integer * nrhs, complex * ab, integer * ldab,
  23. complex * afb, integer * ldafb, integer * ipiv,
  24. complex * b, integer * ldb, complex * x, integer * ldx,
  25. real * ferr, real * berr, complex * work, real * rwork,
  26. integer * info, ftnlen trans_len);
  27. extern int cgbsv_(integer * n, integer * kl, integer * ku, integer * nrhs,
  28. complex * ab, integer * ldab, integer * ipiv, complex * b,
  29. integer * ldb, integer * info);
  30. extern int cgbsvx_(char *fact, char *trans, integer * n, integer * kl,
  31. integer * ku, integer * nrhs, complex * ab, integer * ldab,
  32. complex * afb, integer * ldafb, integer * ipiv,
  33. char *equed, real * r__, real * c__, complex * b,
  34. integer * ldb, complex * x, integer * ldx, real * rcond,
  35. real * ferr, real * berr, complex * work, real * rwork,
  36. integer * info, ftnlen fact_len, ftnlen trans_len,
  37. ftnlen equed_len);
  38. extern int cgbtf2_(integer * m, integer * n, integer * kl, integer * ku,
  39. complex * ab, integer * ldab, integer * ipiv,
  40. integer * info);
  41. extern int cgbtrf_(integer * m, integer * n, integer * kl, integer * ku,
  42. complex * ab, integer * ldab, integer * ipiv,
  43. integer * info);
  44. extern int cgbtrs_(char *trans, integer * n, integer * kl, integer * ku,
  45. integer * nrhs, complex * ab, integer * ldab,
  46. integer * ipiv, complex * b, integer * ldb, integer * info,
  47. ftnlen trans_len);
  48. extern int cgebak_(char *job, char *side, integer * n, integer * ilo,
  49. integer * ihi, real * scale, integer * m, complex * v,
  50. integer * ldv, integer * info, ftnlen job_len,
  51. ftnlen side_len);
  52. extern int cgebal_(char *job, integer * n, complex * a, integer * lda,
  53. integer * ilo, integer * ihi, real * scale, integer * info,
  54. ftnlen job_len);
  55. extern int cgebd2_(integer * m, integer * n, complex * a, integer * lda,
  56. real * d__, real * e, complex * tauq, complex * taup,
  57. complex * work, integer * info);
  58. extern int cgebrd_(integer * m, integer * n, complex * a, integer * lda,
  59. real * d__, real * e, complex * tauq, complex * taup,
  60. complex * work, integer * lwork, integer * info);
  61. extern int cgecon_(char *norm, integer * n, complex * a, integer * lda,
  62. real * anorm, real * rcond, complex * work, real * rwork,
  63. integer * info, ftnlen norm_len);
  64. extern int cgeequ_(integer * m, integer * n, complex * a, integer * lda,
  65. real * r__, real * c__, real * rowcnd, real * colcnd,
  66. real * amax, integer * info);
  67. extern int cgees_(char *jobvs, char *sort, L_fp select, integer * n,
  68. complex * a, integer * lda, integer * sdim, complex * w,
  69. complex * vs, integer * ldvs, complex * work,
  70. integer * lwork, real * rwork, logical * bwork,
  71. integer * info, ftnlen jobvs_len, ftnlen sort_len);
  72. extern int cgeesx_(char *jobvs, char *sort, L_fp select, char *sense,
  73. integer * n, complex * a, integer * lda, integer * sdim,
  74. complex * w, complex * vs, integer * ldvs, real * rconde,
  75. real * rcondv, complex * work, integer * lwork,
  76. real * rwork, logical * bwork, integer * info,
  77. ftnlen jobvs_len, ftnlen sort_len, ftnlen sense_len);
  78. extern int cgeev_(char *jobvl, char *jobvr, integer * n, complex * a,
  79. integer * lda, complex * w, complex * vl, integer * ldvl,
  80. complex * vr, integer * ldvr, complex * work,
  81. integer * lwork, real * rwork, integer * info,
  82. ftnlen jobvl_len, ftnlen jobvr_len);
  83. extern int cgeevx_(char *balanc, char *jobvl, char *jobvr, char *sense,
  84. integer * n, complex * a, integer * lda, complex * w,
  85. complex * vl, integer * ldvl, complex * vr, integer * ldvr,
  86. integer * ilo, integer * ihi, real * scale, real * abnrm,
  87. real * rconde, real * rcondv, complex * work,
  88. integer * lwork, real * rwork, integer * info,
  89. ftnlen balanc_len, ftnlen jobvl_len, ftnlen jobvr_len,
  90. ftnlen sense_len);
  91. extern int cgegs_(char *jobvsl, char *jobvsr, integer * n, complex * a,
  92. integer * lda, complex * b, integer * ldb, complex * alpha,
  93. complex * beta, complex * vsl, integer * ldvsl,
  94. complex * vsr, integer * ldvsr, complex * work,
  95. integer * lwork, real * rwork, integer * info,
  96. ftnlen jobvsl_len, ftnlen jobvsr_len);
  97. extern int cgegv_(char *jobvl, char *jobvr, integer * n, complex * a,
  98. integer * lda, complex * b, integer * ldb, complex * alpha,
  99. complex * beta, complex * vl, integer * ldvl, complex * vr,
  100. integer * ldvr, complex * work, integer * lwork,
  101. real * rwork, integer * info, ftnlen jobvl_len,
  102. ftnlen jobvr_len);
  103. extern int cgehd2_(integer * n, integer * ilo, integer * ihi, complex * a,
  104. integer * lda, complex * tau, complex * work,
  105. integer * info);
  106. extern int cgehrd_(integer * n, integer * ilo, integer * ihi, complex * a,
  107. integer * lda, complex * tau, complex * work,
  108. integer * lwork, integer * info);
  109. extern int cgelq2_(integer * m, integer * n, complex * a, integer * lda,
  110. complex * tau, complex * work, integer * info);
  111. extern int cgelqf_(integer * m, integer * n, complex * a, integer * lda,
  112. complex * tau, complex * work, integer * lwork,
  113. integer * info);
  114. extern int cgels_(char *trans, integer * m, integer * n, integer * nrhs,
  115. complex * a, integer * lda, complex * b, integer * ldb,
  116. complex * work, integer * lwork, integer * info,
  117. ftnlen trans_len);
  118. extern int cgelsd_(integer * m, integer * n, integer * nrhs, complex * a,
  119. integer * lda, complex * b, integer * ldb, real * s,
  120. real * rcond, integer * rank, complex * work,
  121. integer * lwork, real * rwork, integer * iwork,
  122. integer * info);
  123. extern int cgelss_(integer * m, integer * n, integer * nrhs, complex * a,
  124. integer * lda, complex * b, integer * ldb, real * s,
  125. real * rcond, integer * rank, complex * work,
  126. integer * lwork, real * rwork, integer * info);
  127. extern int cgelsx_(integer * m, integer * n, integer * nrhs, complex * a,
  128. integer * lda, complex * b, integer * ldb, integer * jpvt,
  129. real * rcond, integer * rank, complex * work, real * rwork,
  130. integer * info);
  131. extern int cgelsy_(integer * m, integer * n, integer * nrhs, complex * a,
  132. integer * lda, complex * b, integer * ldb, integer * jpvt,
  133. real * rcond, integer * rank, complex * work,
  134. integer * lwork, real * rwork, integer * info);
  135. extern int cgeql2_(integer * m, integer * n, complex * a, integer * lda,
  136. complex * tau, complex * work, integer * info);
  137. extern int cgeqlf_(integer * m, integer * n, complex * a, integer * lda,
  138. complex * tau, complex * work, integer * lwork,
  139. integer * info);
  140. extern int cgeqp3_(integer * m, integer * n, complex * a, integer * lda,
  141. integer * jpvt, complex * tau, complex * work,
  142. integer * lwork, real * rwork, integer * info);
  143. extern int cgeqpf_(integer * m, integer * n, complex * a, integer * lda,
  144. integer * jpvt, complex * tau, complex * work,
  145. real * rwork, integer * info);
  146. extern int cgeqr2_(integer * m, integer * n, complex * a, integer * lda,
  147. complex * tau, complex * work, integer * info);
  148. extern int cgeqrf_(integer * m, integer * n, complex * a, integer * lda,
  149. complex * tau, complex * work, integer * lwork,
  150. integer * info);
  151. extern int cgerfs_(char *trans, integer * n, integer * nrhs, complex * a,
  152. integer * lda, complex * af, integer * ldaf,
  153. integer * ipiv, complex * b, integer * ldb, complex * x,
  154. integer * ldx, real * ferr, real * berr, complex * work,
  155. real * rwork, integer * info, ftnlen trans_len);
  156. extern int cgerq2_(integer * m, integer * n, complex * a, integer * lda,
  157. complex * tau, complex * work, integer * info);
  158. extern int cgerqf_(integer * m, integer * n, complex * a, integer * lda,
  159. complex * tau, complex * work, integer * lwork,
  160. integer * info);
  161. extern int cgesc2_(integer * n, complex * a, integer * lda, complex * rhs,
  162. integer * ipiv, integer * jpiv, real * scale);
  163. extern int cgesdd_(char *jobz, integer * m, integer * n, complex * a,
  164. integer * lda, real * s, complex * u, integer * ldu,
  165. complex * vt, integer * ldvt, complex * work,
  166. integer * lwork, real * rwork, integer * iwork,
  167. integer * info, ftnlen jobz_len);
  168. extern int cgesv_(integer * n, integer * nrhs, complex * a, integer * lda,
  169. integer * ipiv, complex * b, integer * ldb, integer * info);
  170. extern int cgesvd_(char *jobu, char *jobvt, integer * m, integer * n,
  171. complex * a, integer * lda, real * s, complex * u,
  172. integer * ldu, complex * vt, integer * ldvt,
  173. complex * work, integer * lwork, real * rwork,
  174. integer * info, ftnlen jobu_len, ftnlen jobvt_len);
  175. extern int cgesvx_(char *fact, char *trans, integer * n, integer * nrhs,
  176. complex * a, integer * lda, complex * af, integer * ldaf,
  177. integer * ipiv, char *equed, real * r__, real * c__,
  178. complex * b, integer * ldb, complex * x, integer * ldx,
  179. real * rcond, real * ferr, real * berr, complex * work,
  180. real * rwork, integer * info, ftnlen fact_len,
  181. ftnlen trans_len, ftnlen equed_len);
  182. extern int cgetc2_(integer * n, complex * a, integer * lda, integer * ipiv,
  183. integer * jpiv, integer * info);
  184. extern int cgetf2_(integer * m, integer * n, complex * a, integer * lda,
  185. integer * ipiv, integer * info);
  186. extern int cgetrf_(integer * m, integer * n, complex * a, integer * lda,
  187. integer * ipiv, integer * info);
  188. extern int cgetri_(integer * n, complex * a, integer * lda, integer * ipiv,
  189. complex * work, integer * lwork, integer * info);
  190. extern int cgetrs_(char *trans, integer * n, integer * nrhs, complex * a,
  191. integer * lda, integer * ipiv, complex * b, integer * ldb,
  192. integer * info, ftnlen trans_len);
  193. extern int cggbak_(char *job, char *side, integer * n, integer * ilo,
  194. integer * ihi, real * lscale, real * rscale, integer * m,
  195. complex * v, integer * ldv, integer * info, ftnlen job_len,
  196. ftnlen side_len);
  197. extern int cggbal_(char *job, integer * n, complex * a, integer * lda,
  198. complex * b, integer * ldb, integer * ilo, integer * ihi,
  199. real * lscale, real * rscale, real * work, integer * info,
  200. ftnlen job_len);
  201. extern int cgges_(char *jobvsl, char *jobvsr, char *sort, L_fp selctg,
  202. integer * n, complex * a, integer * lda, complex * b,
  203. integer * ldb, integer * sdim, complex * alpha,
  204. complex * beta, complex * vsl, integer * ldvsl,
  205. complex * vsr, integer * ldvsr, complex * work,
  206. integer * lwork, real * rwork, logical * bwork,
  207. integer * info, ftnlen jobvsl_len, ftnlen jobvsr_len,
  208. ftnlen sort_len);
  209. extern int cggesx_(char *jobvsl, char *jobvsr, char *sort, L_fp selctg,
  210. char *sense, integer * n, complex * a, integer * lda,
  211. complex * b, integer * ldb, integer * sdim,
  212. complex * alpha, complex * beta, complex * vsl,
  213. integer * ldvsl, complex * vsr, integer * ldvsr,
  214. real * rconde, real * rcondv, complex * work,
  215. integer * lwork, real * rwork, integer * iwork,
  216. integer * liwork, logical * bwork, integer * info,
  217. ftnlen jobvsl_len, ftnlen jobvsr_len, ftnlen sort_len,
  218. ftnlen sense_len);
  219. extern int cggev_(char *jobvl, char *jobvr, integer * n, complex * a,
  220. integer * lda, complex * b, integer * ldb, complex * alpha,
  221. complex * beta, complex * vl, integer * ldvl, complex * vr,
  222. integer * ldvr, complex * work, integer * lwork,
  223. real * rwork, integer * info, ftnlen jobvl_len,
  224. ftnlen jobvr_len);
  225. extern int cggevx_(char *balanc, char *jobvl, char *jobvr, char *sense,
  226. integer * n, complex * a, integer * lda, complex * b,
  227. integer * ldb, complex * alpha, complex * beta,
  228. complex * vl, integer * ldvl, complex * vr, integer * ldvr,
  229. integer * ilo, integer * ihi, real * lscale, real * rscale,
  230. real * abnrm, real * bbnrm, real * rconde, real * rcondv,
  231. complex * work, integer * lwork, real * rwork,
  232. integer * iwork, logical * bwork, integer * info,
  233. ftnlen balanc_len, ftnlen jobvl_len, ftnlen jobvr_len,
  234. ftnlen sense_len);
  235. extern int cggglm_(integer * n, integer * m, integer * p, complex * a,
  236. integer * lda, complex * b, integer * ldb, complex * d__,
  237. complex * x, complex * y, complex * work, integer * lwork,
  238. integer * info);
  239. extern int cgghrd_(char *compq, char *compz, integer * n, integer * ilo,
  240. integer * ihi, complex * a, integer * lda, complex * b,
  241. integer * ldb, complex * q, integer * ldq, complex * z__,
  242. integer * ldz, integer * info, ftnlen compq_len,
  243. ftnlen compz_len);
  244. extern int cgglse_(integer * m, integer * n, integer * p, complex * a,
  245. integer * lda, complex * b, integer * ldb, complex * c__,
  246. complex * d__, complex * x, complex * work,
  247. integer * lwork, integer * info);
  248. extern int cggqrf_(integer * n, integer * m, integer * p, complex * a,
  249. integer * lda, complex * taua, complex * b, integer * ldb,
  250. complex * taub, complex * work, integer * lwork,
  251. integer * info);
  252. extern int cggrqf_(integer * m, integer * p, integer * n, complex * a,
  253. integer * lda, complex * taua, complex * b, integer * ldb,
  254. complex * taub, complex * work, integer * lwork,
  255. integer * info);
  256. extern int cggsvd_(char *jobu, char *jobv, char *jobq, integer * m,
  257. integer * n, integer * p, integer * k, integer * l,
  258. complex * a, integer * lda, complex * b, integer * ldb,
  259. real * alpha, real * beta, complex * u, integer * ldu,
  260. complex * v, integer * ldv, complex * q, integer * ldq,
  261. complex * work, real * rwork, integer * iwork,
  262. integer * info, ftnlen jobu_len, ftnlen jobv_len,
  263. ftnlen jobq_len);
  264. extern int cggsvp_(char *jobu, char *jobv, char *jobq, integer * m,
  265. integer * p, integer * n, complex * a, integer * lda,
  266. complex * b, integer * ldb, real * tola, real * tolb,
  267. integer * k, integer * l, complex * u, integer * ldu,
  268. complex * v, integer * ldv, complex * q, integer * ldq,
  269. integer * iwork, real * rwork, complex * tau,
  270. complex * work, integer * info, ftnlen jobu_len,
  271. ftnlen jobv_len, ftnlen jobq_len);
  272. extern int cgtcon_(char *norm, integer * n, complex * dl, complex * d__,
  273. complex * du, complex * du2, integer * ipiv, real * anorm,
  274. real * rcond, complex * work, integer * info,
  275. ftnlen norm_len);
  276. extern int cgtrfs_(char *trans, integer * n, integer * nrhs, complex * dl,
  277. complex * d__, complex * du, complex * dlf, complex * df,
  278. complex * duf, complex * du2, integer * ipiv, complex * b,
  279. integer * ldb, complex * x, integer * ldx, real * ferr,
  280. real * berr, complex * work, real * rwork, integer * info,
  281. ftnlen trans_len);
  282. extern int cgtsv_(integer * n, integer * nrhs, complex * dl, complex * d__,
  283. complex * du, complex * b, integer * ldb, integer * info);
  284. extern int cgtsvx_(char *fact, char *trans, integer * n, integer * nrhs,
  285. complex * dl, complex * d__, complex * du, complex * dlf,
  286. complex * df, complex * duf, complex * du2, integer * ipiv,
  287. complex * b, integer * ldb, complex * x, integer * ldx,
  288. real * rcond, real * ferr, real * berr, complex * work,
  289. real * rwork, integer * info, ftnlen fact_len,
  290. ftnlen trans_len);
  291. extern int cgttrf_(integer * n, complex * dl, complex * d__, complex * du,
  292. complex * du2, integer * ipiv, integer * info);
  293. extern int cgttrs_(char *trans, integer * n, integer * nrhs, complex * dl,
  294. complex * d__, complex * du, complex * du2, integer * ipiv,
  295. complex * b, integer * ldb, integer * info,
  296. ftnlen trans_len);
  297. extern int cgtts2_(integer * itrans, integer * n, integer * nrhs,
  298. complex * dl, complex * d__, complex * du, complex * du2,
  299. integer * ipiv, complex * b, integer * ldb);
  300. extern int chbev_(char *jobz, char *uplo, integer * n, integer * kd,
  301. complex * ab, integer * ldab, real * w, complex * z__,
  302. integer * ldz, complex * work, real * rwork, integer * info,
  303. ftnlen jobz_len, ftnlen uplo_len);
  304. extern int chbevd_(char *jobz, char *uplo, integer * n, integer * kd,
  305. complex * ab, integer * ldab, real * w, complex * z__,
  306. integer * ldz, complex * work, integer * lwork,
  307. real * rwork, integer * lrwork, integer * iwork,
  308. integer * liwork, integer * info, ftnlen jobz_len,
  309. ftnlen uplo_len);
  310. extern int chbevx_(char *jobz, char *range, char *uplo, integer * n,
  311. integer * kd, complex * ab, integer * ldab, complex * q,
  312. integer * ldq, real * vl, real * vu, integer * il,
  313. integer * iu, real * abstol, integer * m, real * w,
  314. complex * z__, integer * ldz, complex * work, real * rwork,
  315. integer * iwork, integer * ifail, integer * info,
  316. ftnlen jobz_len, ftnlen range_len, ftnlen uplo_len);
  317. extern int chbgst_(char *vect, char *uplo, integer * n, integer * ka,
  318. integer * kb, complex * ab, integer * ldab, complex * bb,
  319. integer * ldbb, complex * x, integer * ldx, complex * work,
  320. real * rwork, integer * info, ftnlen vect_len,
  321. ftnlen uplo_len);
  322. extern int chbgv_(char *jobz, char *uplo, integer * n, integer * ka,
  323. integer * kb, complex * ab, integer * ldab, complex * bb,
  324. integer * ldbb, real * w, complex * z__, integer * ldz,
  325. complex * work, real * rwork, integer * info,
  326. ftnlen jobz_len, ftnlen uplo_len);
  327. extern int chbgvd_(char *jobz, char *uplo, integer * n, integer * ka,
  328. integer * kb, complex * ab, integer * ldab, complex * bb,
  329. integer * ldbb, real * w, complex * z__, integer * ldz,
  330. complex * work, integer * lwork, real * rwork,
  331. integer * lrwork, integer * iwork, integer * liwork,
  332. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  333. extern int chbgvx_(char *jobz, char *range, char *uplo, integer * n,
  334. integer * ka, integer * kb, complex * ab, integer * ldab,
  335. complex * bb, integer * ldbb, complex * q, integer * ldq,
  336. real * vl, real * vu, integer * il, integer * iu,
  337. real * abstol, integer * m, real * w, complex * z__,
  338. integer * ldz, complex * work, real * rwork,
  339. integer * iwork, integer * ifail, integer * info,
  340. ftnlen jobz_len, ftnlen range_len, ftnlen uplo_len);
  341. extern int chbtrd_(char *vect, char *uplo, integer * n, integer * kd,
  342. complex * ab, integer * ldab, real * d__, real * e,
  343. complex * q, integer * ldq, complex * work, integer * info,
  344. ftnlen vect_len, ftnlen uplo_len);
  345. extern int checon_(char *uplo, integer * n, complex * a, integer * lda,
  346. integer * ipiv, real * anorm, real * rcond, complex * work,
  347. integer * info, ftnlen uplo_len);
  348. extern int cheev_(char *jobz, char *uplo, integer * n, complex * a,
  349. integer * lda, real * w, complex * work, integer * lwork,
  350. real * rwork, integer * info, ftnlen jobz_len,
  351. ftnlen uplo_len);
  352. extern int cheevd_(char *jobz, char *uplo, integer * n, complex * a,
  353. integer * lda, real * w, complex * work, integer * lwork,
  354. real * rwork, integer * lrwork, integer * iwork,
  355. integer * liwork, integer * info, ftnlen jobz_len,
  356. ftnlen uplo_len);
  357. extern int cheevr_(char *jobz, char *range, char *uplo, integer * n,
  358. complex * a, integer * lda, real * vl, real * vu,
  359. integer * il, integer * iu, real * abstol, integer * m,
  360. real * w, complex * z__, integer * ldz, integer * isuppz,
  361. complex * work, integer * lwork, real * rwork,
  362. integer * lrwork, integer * iwork, integer * liwork,
  363. integer * info, ftnlen jobz_len, ftnlen range_len,
  364. ftnlen uplo_len);
  365. extern int cheevx_(char *jobz, char *range, char *uplo, integer * n,
  366. complex * a, integer * lda, real * vl, real * vu,
  367. integer * il, integer * iu, real * abstol, integer * m,
  368. real * w, complex * z__, integer * ldz, complex * work,
  369. integer * lwork, real * rwork, integer * iwork,
  370. integer * ifail, integer * info, ftnlen jobz_len,
  371. ftnlen range_len, ftnlen uplo_len);
  372. extern int chegs2_(integer * itype, char *uplo, integer * n, complex * a,
  373. integer * lda, complex * b, integer * ldb, integer * info,
  374. ftnlen uplo_len);
  375. extern int chegst_(integer * itype, char *uplo, integer * n, complex * a,
  376. integer * lda, complex * b, integer * ldb, integer * info,
  377. ftnlen uplo_len);
  378. extern int chegv_(integer * itype, char *jobz, char *uplo, integer * n,
  379. complex * a, integer * lda, complex * b, integer * ldb,
  380. real * w, complex * work, integer * lwork, real * rwork,
  381. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  382. extern int chegvd_(integer * itype, char *jobz, char *uplo, integer * n,
  383. complex * a, integer * lda, complex * b, integer * ldb,
  384. real * w, complex * work, integer * lwork, real * rwork,
  385. integer * lrwork, integer * iwork, integer * liwork,
  386. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  387. extern int chegvx_(integer * itype, char *jobz, char *range, char *uplo,
  388. integer * n, complex * a, integer * lda, complex * b,
  389. integer * ldb, real * vl, real * vu, integer * il,
  390. integer * iu, real * abstol, integer * m, real * w,
  391. complex * z__, integer * ldz, complex * work,
  392. integer * lwork, real * rwork, integer * iwork,
  393. integer * ifail, integer * info, ftnlen jobz_len,
  394. ftnlen range_len, ftnlen uplo_len);
  395. extern int cherfs_(char *uplo, integer * n, integer * nrhs, complex * a,
  396. integer * lda, complex * af, integer * ldaf,
  397. integer * ipiv, complex * b, integer * ldb, complex * x,
  398. integer * ldx, real * ferr, real * berr, complex * work,
  399. real * rwork, integer * info, ftnlen uplo_len);
  400. extern int chesv_(char *uplo, integer * n, integer * nrhs, complex * a,
  401. integer * lda, integer * ipiv, complex * b, integer * ldb,
  402. complex * work, integer * lwork, integer * info,
  403. ftnlen uplo_len);
  404. extern int chesvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  405. complex * a, integer * lda, complex * af, integer * ldaf,
  406. integer * ipiv, complex * b, integer * ldb, complex * x,
  407. integer * ldx, real * rcond, real * ferr, real * berr,
  408. complex * work, integer * lwork, real * rwork,
  409. integer * info, ftnlen fact_len, ftnlen uplo_len);
  410. extern int chetd2_(char *uplo, integer * n, complex * a, integer * lda,
  411. real * d__, real * e, complex * tau, integer * info,
  412. ftnlen uplo_len);
  413. extern int chetf2_(char *uplo, integer * n, complex * a, integer * lda,
  414. integer * ipiv, integer * info, ftnlen uplo_len);
  415. extern int chetrd_(char *uplo, integer * n, complex * a, integer * lda,
  416. real * d__, real * e, complex * tau, complex * work,
  417. integer * lwork, integer * info, ftnlen uplo_len);
  418. extern int chetrf_(char *uplo, integer * n, complex * a, integer * lda,
  419. integer * ipiv, complex * work, integer * lwork,
  420. integer * info, ftnlen uplo_len);
  421. extern int chetri_(char *uplo, integer * n, complex * a, integer * lda,
  422. integer * ipiv, complex * work, integer * info,
  423. ftnlen uplo_len);
  424. extern int chetrs_(char *uplo, integer * n, integer * nrhs, complex * a,
  425. integer * lda, integer * ipiv, complex * b, integer * ldb,
  426. integer * info, ftnlen uplo_len);
  427. extern int chgeqz_(char *job, char *compq, char *compz, integer * n,
  428. integer * ilo, integer * ihi, complex * a, integer * lda,
  429. complex * b, integer * ldb, complex * alpha,
  430. complex * beta, complex * q, integer * ldq, complex * z__,
  431. integer * ldz, complex * work, integer * lwork,
  432. real * rwork, integer * info, ftnlen job_len,
  433. ftnlen compq_len, ftnlen compz_len);
  434. extern int chpcon_(char *uplo, integer * n, complex * ap, integer * ipiv,
  435. real * anorm, real * rcond, complex * work, integer * info,
  436. ftnlen uplo_len);
  437. extern int chpev_(char *jobz, char *uplo, integer * n, complex * ap, real * w,
  438. complex * z__, integer * ldz, complex * work, real * rwork,
  439. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  440. extern int chpevd_(char *jobz, char *uplo, integer * n, complex * ap,
  441. real * w, complex * z__, integer * ldz, complex * work,
  442. integer * lwork, real * rwork, integer * lrwork,
  443. integer * iwork, integer * liwork, integer * info,
  444. ftnlen jobz_len, ftnlen uplo_len);
  445. extern int chpevx_(char *jobz, char *range, char *uplo, integer * n,
  446. complex * ap, real * vl, real * vu, integer * il,
  447. integer * iu, real * abstol, integer * m, real * w,
  448. complex * z__, integer * ldz, complex * work, real * rwork,
  449. integer * iwork, integer * ifail, integer * info,
  450. ftnlen jobz_len, ftnlen range_len, ftnlen uplo_len);
  451. extern int chpgst_(integer * itype, char *uplo, integer * n, complex * ap,
  452. complex * bp, integer * info, ftnlen uplo_len);
  453. extern int chpgv_(integer * itype, char *jobz, char *uplo, integer * n,
  454. complex * ap, complex * bp, real * w, complex * z__,
  455. integer * ldz, complex * work, real * rwork, integer * info,
  456. ftnlen jobz_len, ftnlen uplo_len);
  457. extern int chpgvd_(integer * itype, char *jobz, char *uplo, integer * n,
  458. complex * ap, complex * bp, real * w, complex * z__,
  459. integer * ldz, complex * work, integer * lwork,
  460. real * rwork, integer * lrwork, integer * iwork,
  461. integer * liwork, integer * info, ftnlen jobz_len,
  462. ftnlen uplo_len);
  463. extern int chpgvx_(integer * itype, char *jobz, char *range, char *uplo,
  464. integer * n, complex * ap, complex * bp, real * vl,
  465. real * vu, integer * il, integer * iu, real * abstol,
  466. integer * m, real * w, complex * z__, integer * ldz,
  467. complex * work, real * rwork, integer * iwork,
  468. integer * ifail, integer * info, ftnlen jobz_len,
  469. ftnlen range_len, ftnlen uplo_len);
  470. extern int chprfs_(char *uplo, integer * n, integer * nrhs, complex * ap,
  471. complex * afp, integer * ipiv, complex * b, integer * ldb,
  472. complex * x, integer * ldx, real * ferr, real * berr,
  473. complex * work, real * rwork, integer * info,
  474. ftnlen uplo_len);
  475. extern int chpsv_(char *uplo, integer * n, integer * nrhs, complex * ap,
  476. integer * ipiv, complex * b, integer * ldb, integer * info,
  477. ftnlen uplo_len);
  478. extern int chpsvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  479. complex * ap, complex * afp, integer * ipiv, complex * b,
  480. integer * ldb, complex * x, integer * ldx, real * rcond,
  481. real * ferr, real * berr, complex * work, real * rwork,
  482. integer * info, ftnlen fact_len, ftnlen uplo_len);
  483. extern int chptrd_(char *uplo, integer * n, complex * ap, real * d__,
  484. real * e, complex * tau, integer * info, ftnlen uplo_len);
  485. extern int chptrf_(char *uplo, integer * n, complex * ap, integer * ipiv,
  486. integer * info, ftnlen uplo_len);
  487. extern int chptri_(char *uplo, integer * n, complex * ap, integer * ipiv,
  488. complex * work, integer * info, ftnlen uplo_len);
  489. extern int chptrs_(char *uplo, integer * n, integer * nrhs, complex * ap,
  490. integer * ipiv, complex * b, integer * ldb, integer * info,
  491. ftnlen uplo_len);
  492. extern int chsein_(char *side, char *eigsrc, char *initv, logical * select,
  493. integer * n, complex * h__, integer * ldh, complex * w,
  494. complex * vl, integer * ldvl, complex * vr, integer * ldvr,
  495. integer * mm, integer * m, complex * work, real * rwork,
  496. integer * ifaill, integer * ifailr, integer * info,
  497. ftnlen side_len, ftnlen eigsrc_len, ftnlen initv_len);
  498. extern int chseqr_(char *job, char *compz, integer * n, integer * ilo,
  499. integer * ihi, complex * h__, integer * ldh, complex * w,
  500. complex * z__, integer * ldz, complex * work,
  501. integer * lwork, integer * info, ftnlen job_len,
  502. ftnlen compz_len);
  503. extern int clabrd_(integer * m, integer * n, integer * nb, complex * a,
  504. integer * lda, real * d__, real * e, complex * tauq,
  505. complex * taup, complex * x, integer * ldx, complex * y,
  506. integer * ldy);
  507. extern int clacgv_(integer * n, complex * x, integer * incx);
  508. extern int clacon_(integer * n, complex * v, complex * x, real * est,
  509. integer * kase);
  510. extern int clacp2_(char *uplo, integer * m, integer * n, real * a,
  511. integer * lda, complex * b, integer * ldb,
  512. ftnlen uplo_len);
  513. extern int clacpy_(char *uplo, integer * m, integer * n, complex * a,
  514. integer * lda, complex * b, integer * ldb,
  515. ftnlen uplo_len);
  516. extern int clacrm_(integer * m, integer * n, complex * a, integer * lda,
  517. real * b, integer * ldb, complex * c__, integer * ldc,
  518. real * rwork);
  519. extern int clacrt_(integer * n, complex * cx, integer * incx, complex * cy,
  520. integer * incy, complex * c__, complex * s);
  521. extern C_f cladiv_(complex * ret_val, complex * x, complex * y);
  522. extern int claed0_(integer * qsiz, integer * n, real * d__, real * e,
  523. complex * q, integer * ldq, complex * qstore,
  524. integer * ldqs, real * rwork, integer * iwork,
  525. integer * info);
  526. extern int claed7_(integer * n, integer * cutpnt, integer * qsiz,
  527. integer * tlvls, integer * curlvl, integer * curpbm,
  528. real * d__, complex * q, integer * ldq, real * rho,
  529. integer * indxq, real * qstore, integer * qptr,
  530. integer * prmptr, integer * perm, integer * givptr,
  531. integer * givcol, real * givnum, complex * work,
  532. real * rwork, integer * iwork, integer * info);
  533. extern int claed8_(integer * k, integer * n, integer * qsiz, complex * q,
  534. integer * ldq, real * d__, real * rho, integer * cutpnt,
  535. real * z__, real * dlamda, complex * q2, integer * ldq2,
  536. real * w, integer * indxp, integer * indx, integer * indxq,
  537. integer * perm, integer * givptr, integer * givcol,
  538. real * givnum, integer * info);
  539. extern int claein_(logical * rightv, logical * noinit, integer * n,
  540. complex * h__, integer * ldh, complex * w, complex * v,
  541. complex * b, integer * ldb, real * rwork, real * eps3,
  542. real * smlnum, integer * info);
  543. extern int claesy_(complex * a, complex * b, complex * c__, complex * rt1,
  544. complex * rt2, complex * evscal, complex * cs1,
  545. complex * sn1);
  546. extern int claev2_(complex * a, complex * b, complex * c__, real * rt1,
  547. real * rt2, real * cs1, complex * sn1);
  548. extern int clags2_(logical * upper, real * a1, complex * a2, real * a3,
  549. real * b1, complex * b2, real * b3, real * csu,
  550. complex * snu, real * csv, complex * snv, real * csq,
  551. complex * snq);
  552. extern int clagtm_(char *trans, integer * n, integer * nrhs, real * alpha,
  553. complex * dl, complex * d__, complex * du, complex * x,
  554. integer * ldx, real * beta, complex * b, integer * ldb,
  555. ftnlen trans_len);
  556. extern int clahef_(char *uplo, integer * n, integer * nb, integer * kb,
  557. complex * a, integer * lda, integer * ipiv, complex * w,
  558. integer * ldw, integer * info, ftnlen uplo_len);
  559. extern int clahqr_(logical * wantt, logical * wantz, integer * n,
  560. integer * ilo, integer * ihi, complex * h__, integer * ldh,
  561. complex * w, integer * iloz, integer * ihiz, complex * z__,
  562. integer * ldz, integer * info);
  563. extern int clahrd_(integer * n, integer * k, integer * nb, complex * a,
  564. integer * lda, complex * tau, complex * t, integer * ldt,
  565. complex * y, integer * ldy);
  566. extern int claic1_(integer * job, integer * j, complex * x, real * sest,
  567. complex * w, complex * gamma, real * sestpr, complex * s,
  568. complex * c__);
  569. extern int clals0_(integer * icompq, integer * nl, integer * nr,
  570. integer * sqre, integer * nrhs, complex * b, integer * ldb,
  571. complex * bx, integer * ldbx, integer * perm,
  572. integer * givptr, integer * givcol, integer * ldgcol,
  573. real * givnum, integer * ldgnum, real * poles, real * difl,
  574. real * difr, real * z__, integer * k, real * c__, real * s,
  575. real * rwork, integer * info);
  576. extern int clalsa_(integer * icompq, integer * smlsiz, integer * n,
  577. integer * nrhs, complex * b, integer * ldb, complex * bx,
  578. integer * ldbx, real * u, integer * ldu, real * vt,
  579. integer * k, real * difl, real * difr, real * z__,
  580. real * poles, integer * givptr, integer * givcol,
  581. integer * ldgcol, integer * perm, real * givnum,
  582. real * c__, real * s, real * rwork, integer * iwork,
  583. integer * info);
  584. extern int clalsd_(char *uplo, integer * smlsiz, integer * n, integer * nrhs,
  585. real * d__, real * e, complex * b, integer * ldb,
  586. real * rcond, integer * rank, complex * work, real * rwork,
  587. integer * iwork, integer * info, ftnlen uplo_len);
  588. extern E_f clangb_(char *norm, integer * n, integer * kl, integer * ku,
  589. complex * ab, integer * ldab, real * work,
  590. ftnlen norm_len);
  591. extern E_f clange_(char *norm, integer * m, integer * n, complex * a,
  592. integer * lda, real * work, ftnlen norm_len);
  593. extern E_f clangt_(char *norm, integer * n, complex * dl, complex * d__,
  594. complex * du, ftnlen norm_len);
  595. extern E_f clanhb_(char *norm, char *uplo, integer * n, integer * k,
  596. complex * ab, integer * ldab, real * work, ftnlen norm_len,
  597. ftnlen uplo_len);
  598. extern E_f clanhe_(char *norm, char *uplo, integer * n, complex * a,
  599. integer * lda, real * work, ftnlen norm_len,
  600. ftnlen uplo_len);
  601. extern E_f clanhp_(char *norm, char *uplo, integer * n, complex * ap,
  602. real * work, ftnlen norm_len, ftnlen uplo_len);
  603. extern E_f clanhs_(char *norm, integer * n, complex * a, integer * lda,
  604. real * work, ftnlen norm_len);
  605. extern E_f clanht_(char *norm, integer * n, real * d__, complex * e,
  606. ftnlen norm_len);
  607. extern E_f clansb_(char *norm, char *uplo, integer * n, integer * k,
  608. complex * ab, integer * ldab, real * work, ftnlen norm_len,
  609. ftnlen uplo_len);
  610. extern E_f clansp_(char *norm, char *uplo, integer * n, complex * ap,
  611. real * work, ftnlen norm_len, ftnlen uplo_len);
  612. extern E_f clansy_(char *norm, char *uplo, integer * n, complex * a,
  613. integer * lda, real * work, ftnlen norm_len,
  614. ftnlen uplo_len);
  615. extern E_f clantb_(char *norm, char *uplo, char *diag, integer * n,
  616. integer * k, complex * ab, integer * ldab, real * work,
  617. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  618. extern E_f clantp_(char *norm, char *uplo, char *diag, integer * n,
  619. complex * ap, real * work, ftnlen norm_len,
  620. ftnlen uplo_len, ftnlen diag_len);
  621. extern E_f clantr_(char *norm, char *uplo, char *diag, integer * m,
  622. integer * n, complex * a, integer * lda, real * work,
  623. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  624. extern int clapll_(integer * n, complex * x, integer * incx, complex * y,
  625. integer * incy, real * ssmin);
  626. extern int clapmt_(logical * forwrd, integer * m, integer * n, complex * x,
  627. integer * ldx, integer * k);
  628. extern int claqgb_(integer * m, integer * n, integer * kl, integer * ku,
  629. complex * ab, integer * ldab, real * r__, real * c__,
  630. real * rowcnd, real * colcnd, real * amax, char *equed,
  631. ftnlen equed_len);
  632. extern int claqge_(integer * m, integer * n, complex * a, integer * lda,
  633. real * r__, real * c__, real * rowcnd, real * colcnd,
  634. real * amax, char *equed, ftnlen equed_len);
  635. extern int claqhb_(char *uplo, integer * n, integer * kd, complex * ab,
  636. integer * ldab, real * s, real * scond, real * amax,
  637. char *equed, ftnlen uplo_len, ftnlen equed_len);
  638. extern int claqhe_(char *uplo, integer * n, complex * a, integer * lda,
  639. real * s, real * scond, real * amax, char *equed,
  640. ftnlen uplo_len, ftnlen equed_len);
  641. extern int claqhp_(char *uplo, integer * n, complex * ap, real * s,
  642. real * scond, real * amax, char *equed, ftnlen uplo_len,
  643. ftnlen equed_len);
  644. extern int claqp2_(integer * m, integer * n, integer * offset, complex * a,
  645. integer * lda, integer * jpvt, complex * tau, real * vn1,
  646. real * vn2, complex * work);
  647. extern int claqps_(integer * m, integer * n, integer * offset, integer * nb,
  648. integer * kb, complex * a, integer * lda, integer * jpvt,
  649. complex * tau, real * vn1, real * vn2, complex * auxv,
  650. complex * f, integer * ldf);
  651. extern int claqsb_(char *uplo, integer * n, integer * kd, complex * ab,
  652. integer * ldab, real * s, real * scond, real * amax,
  653. char *equed, ftnlen uplo_len, ftnlen equed_len);
  654. extern int claqsp_(char *uplo, integer * n, complex * ap, real * s,
  655. real * scond, real * amax, char *equed, ftnlen uplo_len,
  656. ftnlen equed_len);
  657. extern int claqsy_(char *uplo, integer * n, complex * a, integer * lda,
  658. real * s, real * scond, real * amax, char *equed,
  659. ftnlen uplo_len, ftnlen equed_len);
  660. extern int clar1v_(integer * n, integer * b1, integer * bn, real * sigma,
  661. real * d__, real * l, real * ld, real * lld, real * gersch,
  662. complex * z__, real * ztz, real * mingma, integer * r__,
  663. integer * isuppz, real * work);
  664. extern int clar2v_(integer * n, complex * x, complex * y, complex * z__,
  665. integer * incx, real * c__, complex * s, integer * incc);
  666. extern int clarcm_(integer * m, integer * n, real * a, integer * lda,
  667. complex * b, integer * ldb, complex * c__, integer * ldc,
  668. real * rwork);
  669. extern int clarf_(char *side, integer * m, integer * n, complex * v,
  670. integer * incv, complex * tau, complex * c__, integer * ldc,
  671. complex * work, ftnlen side_len);
  672. extern int clarfb_(char *side, char *trans, char *direct, char *storev,
  673. integer * m, integer * n, integer * k, complex * v,
  674. integer * ldv, complex * t, integer * ldt, complex * c__,
  675. integer * ldc, complex * work, integer * ldwork,
  676. ftnlen side_len, ftnlen trans_len, ftnlen direct_len,
  677. ftnlen storev_len);
  678. extern int clarfg_(integer * n, complex * alpha, complex * x, integer * incx,
  679. complex * tau);
  680. extern int clarft_(char *direct, char *storev, integer * n, integer * k,
  681. complex * v, integer * ldv, complex * tau, complex * t,
  682. integer * ldt, ftnlen direct_len, ftnlen storev_len);
  683. extern int clarfx_(char *side, integer * m, integer * n, complex * v,
  684. complex * tau, complex * c__, integer * ldc,
  685. complex * work, ftnlen side_len);
  686. extern int clargv_(integer * n, complex * x, integer * incx, complex * y,
  687. integer * incy, real * c__, integer * incc);
  688. extern int clarnv_(integer * idist, integer * iseed, integer * n,
  689. complex * x);
  690. extern int clarrv_(integer * n, real * d__, real * l, integer * isplit,
  691. integer * m, real * w, integer * iblock, real * gersch,
  692. real * tol, complex * z__, integer * ldz, integer * isuppz,
  693. real * work, integer * iwork, integer * info);
  694. extern int clartg_(complex * f, complex * g, real * cs, complex * sn,
  695. complex * r__);
  696. extern int clartv_(integer * n, complex * x, integer * incx, complex * y,
  697. integer * incy, real * c__, complex * s, integer * incc);
  698. extern int clarz_(char *side, integer * m, integer * n, integer * l,
  699. complex * v, integer * incv, complex * tau, complex * c__,
  700. integer * ldc, complex * work, ftnlen side_len);
  701. extern int clarzb_(char *side, char *trans, char *direct, char *storev,
  702. integer * m, integer * n, integer * k, integer * l,
  703. complex * v, integer * ldv, complex * t, integer * ldt,
  704. complex * c__, integer * ldc, complex * work,
  705. integer * ldwork, ftnlen side_len, ftnlen trans_len,
  706. ftnlen direct_len, ftnlen storev_len);
  707. extern int clarzt_(char *direct, char *storev, integer * n, integer * k,
  708. complex * v, integer * ldv, complex * tau, complex * t,
  709. integer * ldt, ftnlen direct_len, ftnlen storev_len);
  710. extern int clascl_(char *type__, integer * kl, integer * ku, real * cfrom,
  711. real * cto, integer * m, integer * n, complex * a,
  712. integer * lda, integer * info, ftnlen type_len);
  713. extern int claset_(char *uplo, integer * m, integer * n, complex * alpha,
  714. complex * beta, complex * a, integer * lda,
  715. ftnlen uplo_len);
  716. extern int clasr_(char *side, char *pivot, char *direct, integer * m,
  717. integer * n, real * c__, real * s, complex * a,
  718. integer * lda, ftnlen side_len, ftnlen pivot_len,
  719. ftnlen direct_len);
  720. extern int classq_(integer * n, complex * x, integer * incx, real * scale,
  721. real * sumsq);
  722. extern int claswp_(integer * n, complex * a, integer * lda, integer * k1,
  723. integer * k2, integer * ipiv, integer * incx);
  724. extern int clasyf_(char *uplo, integer * n, integer * nb, integer * kb,
  725. complex * a, integer * lda, integer * ipiv, complex * w,
  726. integer * ldw, integer * info, ftnlen uplo_len);
  727. extern int clatbs_(char *uplo, char *trans, char *diag, char *normin,
  728. integer * n, integer * kd, complex * ab, integer * ldab,
  729. complex * x, real * scale, real * cnorm, integer * info,
  730. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len,
  731. ftnlen normin_len);
  732. extern int clatdf_(integer * ijob, integer * n, complex * z__, integer * ldz,
  733. complex * rhs, real * rdsum, real * rdscal, integer * ipiv,
  734. integer * jpiv);
  735. extern int clatps_(char *uplo, char *trans, char *diag, char *normin,
  736. integer * n, complex * ap, complex * x, real * scale,
  737. real * cnorm, integer * info, ftnlen uplo_len,
  738. ftnlen trans_len, ftnlen diag_len, ftnlen normin_len);
  739. extern int clatrd_(char *uplo, integer * n, integer * nb, complex * a,
  740. integer * lda, real * e, complex * tau, complex * w,
  741. integer * ldw, ftnlen uplo_len);
  742. extern int clatrs_(char *uplo, char *trans, char *diag, char *normin,
  743. integer * n, complex * a, integer * lda, complex * x,
  744. real * scale, real * cnorm, integer * info,
  745. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len,
  746. ftnlen normin_len);
  747. extern int clatrz_(integer * m, integer * n, integer * l, complex * a,
  748. integer * lda, complex * tau, complex * work);
  749. extern int clatzm_(char *side, integer * m, integer * n, complex * v,
  750. integer * incv, complex * tau, complex * c1, complex * c2,
  751. integer * ldc, complex * work, ftnlen side_len);
  752. extern int clauu2_(char *uplo, integer * n, complex * a, integer * lda,
  753. integer * info, ftnlen uplo_len);
  754. extern int clauum_(char *uplo, integer * n, complex * a, integer * lda,
  755. integer * info, ftnlen uplo_len);
  756. extern int cpbcon_(char *uplo, integer * n, integer * kd, complex * ab,
  757. integer * ldab, real * anorm, real * rcond, complex * work,
  758. real * rwork, integer * info, ftnlen uplo_len);
  759. extern int cpbequ_(char *uplo, integer * n, integer * kd, complex * ab,
  760. integer * ldab, real * s, real * scond, real * amax,
  761. integer * info, ftnlen uplo_len);
  762. extern int cpbrfs_(char *uplo, integer * n, integer * kd, integer * nrhs,
  763. complex * ab, integer * ldab, complex * afb,
  764. integer * ldafb, complex * b, integer * ldb, complex * x,
  765. integer * ldx, real * ferr, real * berr, complex * work,
  766. real * rwork, integer * info, ftnlen uplo_len);
  767. extern int cpbstf_(char *uplo, integer * n, integer * kd, complex * ab,
  768. integer * ldab, integer * info, ftnlen uplo_len);
  769. extern int cpbsv_(char *uplo, integer * n, integer * kd, integer * nrhs,
  770. complex * ab, integer * ldab, complex * b, integer * ldb,
  771. integer * info, ftnlen uplo_len);
  772. extern int cpbsvx_(char *fact, char *uplo, integer * n, integer * kd,
  773. integer * nrhs, complex * ab, integer * ldab,
  774. complex * afb, integer * ldafb, char *equed, real * s,
  775. complex * b, integer * ldb, complex * x, integer * ldx,
  776. real * rcond, real * ferr, real * berr, complex * work,
  777. real * rwork, integer * info, ftnlen fact_len,
  778. ftnlen uplo_len, ftnlen equed_len);
  779. extern int cpbtf2_(char *uplo, integer * n, integer * kd, complex * ab,
  780. integer * ldab, integer * info, ftnlen uplo_len);
  781. extern int cpbtrf_(char *uplo, integer * n, integer * kd, complex * ab,
  782. integer * ldab, integer * info, ftnlen uplo_len);
  783. extern int cpbtrs_(char *uplo, integer * n, integer * kd, integer * nrhs,
  784. complex * ab, integer * ldab, complex * b, integer * ldb,
  785. integer * info, ftnlen uplo_len);
  786. extern int cpocon_(char *uplo, integer * n, complex * a, integer * lda,
  787. real * anorm, real * rcond, complex * work, real * rwork,
  788. integer * info, ftnlen uplo_len);
  789. extern int cpoequ_(integer * n, complex * a, integer * lda, real * s,
  790. real * scond, real * amax, integer * info);
  791. extern int cporfs_(char *uplo, integer * n, integer * nrhs, complex * a,
  792. integer * lda, complex * af, integer * ldaf, complex * b,
  793. integer * ldb, complex * x, integer * ldx, real * ferr,
  794. real * berr, complex * work, real * rwork, integer * info,
  795. ftnlen uplo_len);
  796. extern int cposv_(char *uplo, integer * n, integer * nrhs, complex * a,
  797. integer * lda, complex * b, integer * ldb, integer * info,
  798. ftnlen uplo_len);
  799. extern int cposvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  800. complex * a, integer * lda, complex * af, integer * ldaf,
  801. char *equed, real * s, complex * b, integer * ldb,
  802. complex * x, integer * ldx, real * rcond, real * ferr,
  803. real * berr, complex * work, real * rwork, integer * info,
  804. ftnlen fact_len, ftnlen uplo_len, ftnlen equed_len);
  805. extern int cpotf2_(char *uplo, integer * n, complex * a, integer * lda,
  806. integer * info, ftnlen uplo_len);
  807. extern int cpotrf_(char *uplo, integer * n, complex * a, integer * lda,
  808. integer * info, ftnlen uplo_len);
  809. extern int cpotri_(char *uplo, integer * n, complex * a, integer * lda,
  810. integer * info, ftnlen uplo_len);
  811. extern int cpotrs_(char *uplo, integer * n, integer * nrhs, complex * a,
  812. integer * lda, complex * b, integer * ldb, integer * info,
  813. ftnlen uplo_len);
  814. extern int cppcon_(char *uplo, integer * n, complex * ap, real * anorm,
  815. real * rcond, complex * work, real * rwork, integer * info,
  816. ftnlen uplo_len);
  817. extern int cppequ_(char *uplo, integer * n, complex * ap, real * s,
  818. real * scond, real * amax, integer * info,
  819. ftnlen uplo_len);
  820. extern int cpprfs_(char *uplo, integer * n, integer * nrhs, complex * ap,
  821. complex * afp, complex * b, integer * ldb, complex * x,
  822. integer * ldx, real * ferr, real * berr, complex * work,
  823. real * rwork, integer * info, ftnlen uplo_len);
  824. extern int cppsv_(char *uplo, integer * n, integer * nrhs, complex * ap,
  825. complex * b, integer * ldb, integer * info,
  826. ftnlen uplo_len);
  827. extern int cppsvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  828. complex * ap, complex * afp, char *equed, real * s,
  829. complex * b, integer * ldb, complex * x, integer * ldx,
  830. real * rcond, real * ferr, real * berr, complex * work,
  831. real * rwork, integer * info, ftnlen fact_len,
  832. ftnlen uplo_len, ftnlen equed_len);
  833. extern int cpptrf_(char *uplo, integer * n, complex * ap, integer * info,
  834. ftnlen uplo_len);
  835. extern int cpptri_(char *uplo, integer * n, complex * ap, integer * info,
  836. ftnlen uplo_len);
  837. extern int cpptrs_(char *uplo, integer * n, integer * nrhs, complex * ap,
  838. complex * b, integer * ldb, integer * info,
  839. ftnlen uplo_len);
  840. extern int cptcon_(integer * n, real * d__, complex * e, real * anorm,
  841. real * rcond, real * rwork, integer * info);
  842. extern int cpteqr_(char *compz, integer * n, real * d__, real * e,
  843. complex * z__, integer * ldz, real * work, integer * info,
  844. ftnlen compz_len);
  845. extern int cptrfs_(char *uplo, integer * n, integer * nrhs, real * d__,
  846. complex * e, real * df, complex * ef, complex * b,
  847. integer * ldb, complex * x, integer * ldx, real * ferr,
  848. real * berr, complex * work, real * rwork, integer * info,
  849. ftnlen uplo_len);
  850. extern int cptsv_(integer * n, integer * nrhs, real * d__, complex * e,
  851. complex * b, integer * ldb, integer * info);
  852. extern int cptsvx_(char *fact, integer * n, integer * nrhs, real * d__,
  853. complex * e, real * df, complex * ef, complex * b,
  854. integer * ldb, complex * x, integer * ldx, real * rcond,
  855. real * ferr, real * berr, complex * work, real * rwork,
  856. integer * info, ftnlen fact_len);
  857. extern int cpttrf_(integer * n, real * d__, complex * e, integer * info);
  858. extern int cpttrs_(char *uplo, integer * n, integer * nrhs, real * d__,
  859. complex * e, complex * b, integer * ldb, integer * info,
  860. ftnlen uplo_len);
  861. extern int cptts2_(integer * iuplo, integer * n, integer * nrhs, real * d__,
  862. complex * e, complex * b, integer * ldb);
  863. extern int crot_(integer * n, complex * cx, integer * incx, complex * cy,
  864. integer * incy, real * c__, complex * s);
  865. extern int cspcon_(char *uplo, integer * n, complex * ap, integer * ipiv,
  866. real * anorm, real * rcond, complex * work, integer * info,
  867. ftnlen uplo_len);
  868. extern int cspmv_(char *uplo, integer * n, complex * alpha, complex * ap,
  869. complex * x, integer * incx, complex * beta, complex * y,
  870. integer * incy, ftnlen uplo_len);
  871. extern int cspr_(char *uplo, integer * n, complex * alpha, complex * x,
  872. integer * incx, complex * ap, ftnlen uplo_len);
  873. extern int csprfs_(char *uplo, integer * n, integer * nrhs, complex * ap,
  874. complex * afp, integer * ipiv, complex * b, integer * ldb,
  875. complex * x, integer * ldx, real * ferr, real * berr,
  876. complex * work, real * rwork, integer * info,
  877. ftnlen uplo_len);
  878. extern int cspsv_(char *uplo, integer * n, integer * nrhs, complex * ap,
  879. integer * ipiv, complex * b, integer * ldb, integer * info,
  880. ftnlen uplo_len);
  881. extern int cspsvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  882. complex * ap, complex * afp, integer * ipiv, complex * b,
  883. integer * ldb, complex * x, integer * ldx, real * rcond,
  884. real * ferr, real * berr, complex * work, real * rwork,
  885. integer * info, ftnlen fact_len, ftnlen uplo_len);
  886. extern int csptrf_(char *uplo, integer * n, complex * ap, integer * ipiv,
  887. integer * info, ftnlen uplo_len);
  888. extern int csptri_(char *uplo, integer * n, complex * ap, integer * ipiv,
  889. complex * work, integer * info, ftnlen uplo_len);
  890. extern int csptrs_(char *uplo, integer * n, integer * nrhs, complex * ap,
  891. integer * ipiv, complex * b, integer * ldb, integer * info,
  892. ftnlen uplo_len);
  893. extern int csrot_(integer * n, complex * cx, integer * incx, complex * cy,
  894. integer * incy, real * c__, real * s);
  895. extern int csrscl_(integer * n, real * sa, complex * sx, integer * incx);
  896. extern int cstedc_(char *compz, integer * n, real * d__, real * e,
  897. complex * z__, integer * ldz, complex * work,
  898. integer * lwork, real * rwork, integer * lrwork,
  899. integer * iwork, integer * liwork, integer * info,
  900. ftnlen compz_len);
  901. extern int cstegr_(char *jobz, char *range, integer * n, real * d__, real * e,
  902. real * vl, real * vu, integer * il, integer * iu,
  903. real * abstol, integer * m, real * w, complex * z__,
  904. integer * ldz, integer * isuppz, real * work,
  905. integer * lwork, integer * iwork, integer * liwork,
  906. integer * info, ftnlen jobz_len, ftnlen range_len);
  907. extern int cstein_(integer * n, real * d__, real * e, integer * m, real * w,
  908. integer * iblock, integer * isplit, complex * z__,
  909. integer * ldz, real * work, integer * iwork,
  910. integer * ifail, integer * info);
  911. extern int csteqr_(char *compz, integer * n, real * d__, real * e,
  912. complex * z__, integer * ldz, real * work, integer * info,
  913. ftnlen compz_len);
  914. extern int csycon_(char *uplo, integer * n, complex * a, integer * lda,
  915. integer * ipiv, real * anorm, real * rcond, complex * work,
  916. integer * info, ftnlen uplo_len);
  917. extern int csymv_(char *uplo, integer * n, complex * alpha, complex * a,
  918. integer * lda, complex * x, integer * incx, complex * beta,
  919. complex * y, integer * incy, ftnlen uplo_len);
  920. extern int csyr_(char *uplo, integer * n, complex * alpha, complex * x,
  921. integer * incx, complex * a, integer * lda, ftnlen uplo_len);
  922. extern int csyrfs_(char *uplo, integer * n, integer * nrhs, complex * a,
  923. integer * lda, complex * af, integer * ldaf,
  924. integer * ipiv, complex * b, integer * ldb, complex * x,
  925. integer * ldx, real * ferr, real * berr, complex * work,
  926. real * rwork, integer * info, ftnlen uplo_len);
  927. extern int csysv_(char *uplo, integer * n, integer * nrhs, complex * a,
  928. integer * lda, integer * ipiv, complex * b, integer * ldb,
  929. complex * work, integer * lwork, integer * info,
  930. ftnlen uplo_len);
  931. extern int csysvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  932. complex * a, integer * lda, complex * af, integer * ldaf,
  933. integer * ipiv, complex * b, integer * ldb, complex * x,
  934. integer * ldx, real * rcond, real * ferr, real * berr,
  935. complex * work, integer * lwork, real * rwork,
  936. integer * info, ftnlen fact_len, ftnlen uplo_len);
  937. extern int csytf2_(char *uplo, integer * n, complex * a, integer * lda,
  938. integer * ipiv, integer * info, ftnlen uplo_len);
  939. extern int csytrf_(char *uplo, integer * n, complex * a, integer * lda,
  940. integer * ipiv, complex * work, integer * lwork,
  941. integer * info, ftnlen uplo_len);
  942. extern int csytri_(char *uplo, integer * n, complex * a, integer * lda,
  943. integer * ipiv, complex * work, integer * info,
  944. ftnlen uplo_len);
  945. extern int csytrs_(char *uplo, integer * n, integer * nrhs, complex * a,
  946. integer * lda, integer * ipiv, complex * b, integer * ldb,
  947. integer * info, ftnlen uplo_len);
  948. extern int ctbcon_(char *norm, char *uplo, char *diag, integer * n,
  949. integer * kd, complex * ab, integer * ldab, real * rcond,
  950. complex * work, real * rwork, integer * info,
  951. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  952. extern int ctbrfs_(char *uplo, char *trans, char *diag, integer * n,
  953. integer * kd, integer * nrhs, complex * ab, integer * ldab,
  954. complex * b, integer * ldb, complex * x, integer * ldx,
  955. real * ferr, real * berr, complex * work, real * rwork,
  956. integer * info, ftnlen uplo_len, ftnlen trans_len,
  957. ftnlen diag_len);
  958. extern int ctbtrs_(char *uplo, char *trans, char *diag, integer * n,
  959. integer * kd, integer * nrhs, complex * ab, integer * ldab,
  960. complex * b, integer * ldb, integer * info,
  961. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len);
  962. extern int ctgevc_(char *side, char *howmny, logical * select, integer * n,
  963. complex * a, integer * lda, complex * b, integer * ldb,
  964. complex * vl, integer * ldvl, complex * vr, integer * ldvr,
  965. integer * mm, integer * m, complex * work, real * rwork,
  966. integer * info, ftnlen side_len, ftnlen howmny_len);
  967. extern int ctgex2_(logical * wantq, logical * wantz, integer * n, complex * a,
  968. integer * lda, complex * b, integer * ldb, complex * q,
  969. integer * ldq, complex * z__, integer * ldz, integer * j1,
  970. integer * info);
  971. extern int ctgexc_(logical * wantq, logical * wantz, integer * n, complex * a,
  972. integer * lda, complex * b, integer * ldb, complex * q,
  973. integer * ldq, complex * z__, integer * ldz,
  974. integer * ifst, integer * ilst, integer * info);
  975. extern int ctgsen_(integer * ijob, logical * wantq, logical * wantz,
  976. logical * select, integer * n, complex * a, integer * lda,
  977. complex * b, integer * ldb, complex * alpha,
  978. complex * beta, complex * q, integer * ldq, complex * z__,
  979. integer * ldz, integer * m, real * pl, real * pr,
  980. real * dif, complex * work, integer * lwork,
  981. integer * iwork, integer * liwork, integer * info);
  982. extern int ctgsja_(char *jobu, char *jobv, char *jobq, integer * m,
  983. integer * p, integer * n, integer * k, integer * l,
  984. complex * a, integer * lda, complex * b, integer * ldb,
  985. real * tola, real * tolb, real * alpha, real * beta,
  986. complex * u, integer * ldu, complex * v, integer * ldv,
  987. complex * q, integer * ldq, complex * work,
  988. integer * ncycle, integer * info, ftnlen jobu_len,
  989. ftnlen jobv_len, ftnlen jobq_len);
  990. extern int ctgsna_(char *job, char *howmny, logical * select, integer * n,
  991. complex * a, integer * lda, complex * b, integer * ldb,
  992. complex * vl, integer * ldvl, complex * vr, integer * ldvr,
  993. real * s, real * dif, integer * mm, integer * m,
  994. complex * work, integer * lwork, integer * iwork,
  995. integer * info, ftnlen job_len, ftnlen howmny_len);
  996. extern int ctgsy2_(char *trans, integer * ijob, integer * m, integer * n,
  997. complex * a, integer * lda, complex * b, integer * ldb,
  998. complex * c__, integer * ldc, complex * d__, integer * ldd,
  999. complex * e, integer * lde, complex * f, integer * ldf,
  1000. real * scale, real * rdsum, real * rdscal, integer * info,
  1001. ftnlen trans_len);
  1002. extern int ctgsyl_(char *trans, integer * ijob, integer * m, integer * n,
  1003. complex * a, integer * lda, complex * b, integer * ldb,
  1004. complex * c__, integer * ldc, complex * d__, integer * ldd,
  1005. complex * e, integer * lde, complex * f, integer * ldf,
  1006. real * scale, real * dif, complex * work, integer * lwork,
  1007. integer * iwork, integer * info, ftnlen trans_len);
  1008. extern int ctpcon_(char *norm, char *uplo, char *diag, integer * n,
  1009. complex * ap, real * rcond, complex * work, real * rwork,
  1010. integer * info, ftnlen norm_len, ftnlen uplo_len,
  1011. ftnlen diag_len);
  1012. extern int ctprfs_(char *uplo, char *trans, char *diag, integer * n,
  1013. integer * nrhs, complex * ap, complex * b, integer * ldb,
  1014. complex * x, integer * ldx, real * ferr, real * berr,
  1015. complex * work, real * rwork, integer * info,
  1016. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len);
  1017. extern int ctptri_(char *uplo, char *diag, integer * n, complex * ap,
  1018. integer * info, ftnlen uplo_len, ftnlen diag_len);
  1019. extern int ctptrs_(char *uplo, char *trans, char *diag, integer * n,
  1020. integer * nrhs, complex * ap, complex * b, integer * ldb,
  1021. integer * info, ftnlen uplo_len, ftnlen trans_len,
  1022. ftnlen diag_len);
  1023. extern int ctrcon_(char *norm, char *uplo, char *diag, integer * n,
  1024. complex * a, integer * lda, real * rcond, complex * work,
  1025. real * rwork, integer * info, ftnlen norm_len,
  1026. ftnlen uplo_len, ftnlen diag_len);
  1027. extern int ctrevc_(char *side, char *howmny, logical * select, integer * n,
  1028. complex * t, integer * ldt, complex * vl, integer * ldvl,
  1029. complex * vr, integer * ldvr, integer * mm, integer * m,
  1030. complex * work, real * rwork, integer * info,
  1031. ftnlen side_len, ftnlen howmny_len);
  1032. extern int ctrexc_(char *compq, integer * n, complex * t, integer * ldt,
  1033. complex * q, integer * ldq, integer * ifst, integer * ilst,
  1034. integer * info, ftnlen compq_len);
  1035. extern int ctrrfs_(char *uplo, char *trans, char *diag, integer * n,
  1036. integer * nrhs, complex * a, integer * lda, complex * b,
  1037. integer * ldb, complex * x, integer * ldx, real * ferr,
  1038. real * berr, complex * work, real * rwork, integer * info,
  1039. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len);
  1040. extern int ctrsen_(char *job, char *compq, logical * select, integer * n,
  1041. complex * t, integer * ldt, complex * q, integer * ldq,
  1042. complex * w, integer * m, real * s, real * sep,
  1043. complex * work, integer * lwork, integer * info,
  1044. ftnlen job_len, ftnlen compq_len);
  1045. extern int ctrsna_(char *job, char *howmny, logical * select, integer * n,
  1046. complex * t, integer * ldt, complex * vl, integer * ldvl,
  1047. complex * vr, integer * ldvr, real * s, real * sep,
  1048. integer * mm, integer * m, complex * work,
  1049. integer * ldwork, real * rwork, integer * info,
  1050. ftnlen job_len, ftnlen howmny_len);
  1051. extern int ctrsyl_(char *trana, char *tranb, integer * isgn, integer * m,
  1052. integer * n, complex * a, integer * lda, complex * b,
  1053. integer * ldb, complex * c__, integer * ldc, real * scale,
  1054. integer * info, ftnlen trana_len, ftnlen tranb_len);
  1055. extern int ctrti2_(char *uplo, char *diag, integer * n, complex * a,
  1056. integer * lda, integer * info, ftnlen uplo_len,
  1057. ftnlen diag_len);
  1058. extern int ctrtri_(char *uplo, char *diag, integer * n, complex * a,
  1059. integer * lda, integer * info, ftnlen uplo_len,
  1060. ftnlen diag_len);
  1061. extern int ctrtrs_(char *uplo, char *trans, char *diag, integer * n,
  1062. integer * nrhs, complex * a, integer * lda, complex * b,
  1063. integer * ldb, integer * info, ftnlen uplo_len,
  1064. ftnlen trans_len, ftnlen diag_len);
  1065. extern int ctzrqf_(integer * m, integer * n, complex * a, integer * lda,
  1066. complex * tau, integer * info);
  1067. extern int ctzrzf_(integer * m, integer * n, complex * a, integer * lda,
  1068. complex * tau, complex * work, integer * lwork,
  1069. integer * info);
  1070. extern int cung2l_(integer * m, integer * n, integer * k, complex * a,
  1071. integer * lda, complex * tau, complex * work,
  1072. integer * info);
  1073. extern int cung2r_(integer * m, integer * n, integer * k, complex * a,
  1074. integer * lda, complex * tau, complex * work,
  1075. integer * info);
  1076. extern int cungbr_(char *vect, integer * m, integer * n, integer * k,
  1077. complex * a, integer * lda, complex * tau, complex * work,
  1078. integer * lwork, integer * info, ftnlen vect_len);
  1079. extern int cunghr_(integer * n, integer * ilo, integer * ihi, complex * a,
  1080. integer * lda, complex * tau, complex * work,
  1081. integer * lwork, integer * info);
  1082. extern int cungl2_(integer * m, integer * n, integer * k, complex * a,
  1083. integer * lda, complex * tau, complex * work,
  1084. integer * info);
  1085. extern int cunglq_(integer * m, integer * n, integer * k, complex * a,
  1086. integer * lda, complex * tau, complex * work,
  1087. integer * lwork, integer * info);
  1088. extern int cungql_(integer * m, integer * n, integer * k, complex * a,
  1089. integer * lda, complex * tau, complex * work,
  1090. integer * lwork, integer * info);
  1091. extern int cungqr_(integer * m, integer * n, integer * k, complex * a,
  1092. integer * lda, complex * tau, complex * work,
  1093. integer * lwork, integer * info);
  1094. extern int cungr2_(integer * m, integer * n, integer * k, complex * a,
  1095. integer * lda, complex * tau, complex * work,
  1096. integer * info);
  1097. extern int cungrq_(integer * m, integer * n, integer * k, complex * a,
  1098. integer * lda, complex * tau, complex * work,
  1099. integer * lwork, integer * info);
  1100. extern int cungtr_(char *uplo, integer * n, complex * a, integer * lda,
  1101. complex * tau, complex * work, integer * lwork,
  1102. integer * info, ftnlen uplo_len);
  1103. extern int cunm2l_(char *side, char *trans, integer * m, integer * n,
  1104. integer * k, complex * a, integer * lda, complex * tau,
  1105. complex * c__, integer * ldc, complex * work,
  1106. integer * info, ftnlen side_len, ftnlen trans_len);
  1107. extern int cunm2r_(char *side, char *trans, integer * m, integer * n,
  1108. integer * k, complex * a, integer * lda, complex * tau,
  1109. complex * c__, integer * ldc, complex * work,
  1110. integer * info, ftnlen side_len, ftnlen trans_len);
  1111. extern int cunmbr_(char *vect, char *side, char *trans, integer * m,
  1112. integer * n, integer * k, complex * a, integer * lda,
  1113. complex * tau, complex * c__, integer * ldc,
  1114. complex * work, integer * lwork, integer * info,
  1115. ftnlen vect_len, ftnlen side_len, ftnlen trans_len);
  1116. extern int cunmhr_(char *side, char *trans, integer * m, integer * n,
  1117. integer * ilo, integer * ihi, complex * a, integer * lda,
  1118. complex * tau, complex * c__, integer * ldc,
  1119. complex * work, integer * lwork, integer * info,
  1120. ftnlen side_len, ftnlen trans_len);
  1121. extern int cunml2_(char *side, char *trans, integer * m, integer * n,
  1122. integer * k, complex * a, integer * lda, complex * tau,
  1123. complex * c__, integer * ldc, complex * work,
  1124. integer * info, ftnlen side_len, ftnlen trans_len);
  1125. extern int cunmlq_(char *side, char *trans, integer * m, integer * n,
  1126. integer * k, complex * a, integer * lda, complex * tau,
  1127. complex * c__, integer * ldc, complex * work,
  1128. integer * lwork, integer * info, ftnlen side_len,
  1129. ftnlen trans_len);
  1130. extern int cunmql_(char *side, char *trans, integer * m, integer * n,
  1131. integer * k, complex * a, integer * lda, complex * tau,
  1132. complex * c__, integer * ldc, complex * work,
  1133. integer * lwork, integer * info, ftnlen side_len,
  1134. ftnlen trans_len);
  1135. extern int cunmqr_(char *side, char *trans, integer * m, integer * n,
  1136. integer * k, complex * a, integer * lda, complex * tau,
  1137. complex * c__, integer * ldc, complex * work,
  1138. integer * lwork, integer * info, ftnlen side_len,
  1139. ftnlen trans_len);
  1140. extern int cunmr2_(char *side, char *trans, integer * m, integer * n,
  1141. integer * k, complex * a, integer * lda, complex * tau,
  1142. complex * c__, integer * ldc, complex * work,
  1143. integer * info, ftnlen side_len, ftnlen trans_len);
  1144. extern int cunmr3_(char *side, char *trans, integer * m, integer * n,
  1145. integer * k, integer * l, complex * a, integer * lda,
  1146. complex * tau, complex * c__, integer * ldc,
  1147. complex * work, integer * info, ftnlen side_len,
  1148. ftnlen trans_len);
  1149. extern int cunmrq_(char *side, char *trans, integer * m, integer * n,
  1150. integer * k, complex * a, integer * lda, complex * tau,
  1151. complex * c__, integer * ldc, complex * work,
  1152. integer * lwork, integer * info, ftnlen side_len,
  1153. ftnlen trans_len);
  1154. extern int cunmrz_(char *side, char *trans, integer * m, integer * n,
  1155. integer * k, integer * l, complex * a, integer * lda,
  1156. complex * tau, complex * c__, integer * ldc,
  1157. complex * work, integer * lwork, integer * info,
  1158. ftnlen side_len, ftnlen trans_len);
  1159. extern int cunmtr_(char *side, char *uplo, char *trans, integer * m,
  1160. integer * n, complex * a, integer * lda, complex * tau,
  1161. complex * c__, integer * ldc, complex * work,
  1162. integer * lwork, integer * info, ftnlen side_len,
  1163. ftnlen uplo_len, ftnlen trans_len);
  1164. extern int cupgtr_(char *uplo, integer * n, complex * ap, complex * tau,
  1165. complex * q, integer * ldq, complex * work, integer * info,
  1166. ftnlen uplo_len);
  1167. extern int cupmtr_(char *side, char *uplo, char *trans, integer * m,
  1168. integer * n, complex * ap, complex * tau, complex * c__,
  1169. integer * ldc, complex * work, integer * info,
  1170. ftnlen side_len, ftnlen uplo_len, ftnlen trans_len);
  1171. extern int dbdsdc_(char *uplo, char *compq, integer * n, doublereal * d__,
  1172. doublereal * e, doublereal * u, integer * ldu,
  1173. doublereal * vt, integer * ldvt, doublereal * q,
  1174. integer * iq, doublereal * work, integer * iwork,
  1175. integer * info, ftnlen uplo_len, ftnlen compq_len);
  1176. extern int dbdsqr_(char *uplo, integer * n, integer * ncvt, integer * nru,
  1177. integer * ncc, doublereal * d__, doublereal * e,
  1178. doublereal * vt, integer * ldvt, doublereal * u,
  1179. integer * ldu, doublereal * c__, integer * ldc,
  1180. doublereal * work, integer * info, ftnlen uplo_len);
  1181. extern int ddisna_(char *job, integer * m, integer * n, doublereal * d__,
  1182. doublereal * sep, integer * info, ftnlen job_len);
  1183. extern int dgbbrd_(char *vect, integer * m, integer * n, integer * ncc,
  1184. integer * kl, integer * ku, doublereal * ab,
  1185. integer * ldab, doublereal * d__, doublereal * e,
  1186. doublereal * q, integer * ldq, doublereal * pt,
  1187. integer * ldpt, doublereal * c__, integer * ldc,
  1188. doublereal * work, integer * info, ftnlen vect_len);
  1189. extern int dgbcon_(char *norm, integer * n, integer * kl, integer * ku,
  1190. doublereal * ab, integer * ldab, integer * ipiv,
  1191. doublereal * anorm, doublereal * rcond, doublereal * work,
  1192. integer * iwork, integer * info, ftnlen norm_len);
  1193. extern int dgbequ_(integer * m, integer * n, integer * kl, integer * ku,
  1194. doublereal * ab, integer * ldab, doublereal * r__,
  1195. doublereal * c__, doublereal * rowcnd, doublereal * colcnd,
  1196. doublereal * amax, integer * info);
  1197. extern int dgbrfs_(char *trans, integer * n, integer * kl, integer * ku,
  1198. integer * nrhs, doublereal * ab, integer * ldab,
  1199. doublereal * afb, integer * ldafb, integer * ipiv,
  1200. doublereal * b, integer * ldb, doublereal * x,
  1201. integer * ldx, doublereal * ferr, doublereal * berr,
  1202. doublereal * work, integer * iwork, integer * info,
  1203. ftnlen trans_len);
  1204. extern int dgbsv_(integer * n, integer * kl, integer * ku, integer * nrhs,
  1205. doublereal * ab, integer * ldab, integer * ipiv,
  1206. doublereal * b, integer * ldb, integer * info);
  1207. extern int dgbsvx_(char *fact, char *trans, integer * n, integer * kl,
  1208. integer * ku, integer * nrhs, doublereal * ab,
  1209. integer * ldab, doublereal * afb, integer * ldafb,
  1210. integer * ipiv, char *equed, doublereal * r__,
  1211. doublereal * c__, doublereal * b, integer * ldb,
  1212. doublereal * x, integer * ldx, doublereal * rcond,
  1213. doublereal * ferr, doublereal * berr, doublereal * work,
  1214. integer * iwork, integer * info, ftnlen fact_len,
  1215. ftnlen trans_len, ftnlen equed_len);
  1216. extern int dgbtf2_(integer * m, integer * n, integer * kl, integer * ku,
  1217. doublereal * ab, integer * ldab, integer * ipiv,
  1218. integer * info);
  1219. extern int dgbtrf_(integer * m, integer * n, integer * kl, integer * ku,
  1220. doublereal * ab, integer * ldab, integer * ipiv,
  1221. integer * info);
  1222. extern int dgbtrs_(char *trans, integer * n, integer * kl, integer * ku,
  1223. integer * nrhs, doublereal * ab, integer * ldab,
  1224. integer * ipiv, doublereal * b, integer * ldb,
  1225. integer * info, ftnlen trans_len);
  1226. extern int dgebak_(char *job, char *side, integer * n, integer * ilo,
  1227. integer * ihi, doublereal * scale, integer * m,
  1228. doublereal * v, integer * ldv, integer * info,
  1229. ftnlen job_len, ftnlen side_len);
  1230. extern int dgebal_(char *job, integer * n, doublereal * a, integer * lda,
  1231. integer * ilo, integer * ihi, doublereal * scale,
  1232. integer * info, ftnlen job_len);
  1233. extern int dgebd2_(integer * m, integer * n, doublereal * a, integer * lda,
  1234. doublereal * d__, doublereal * e, doublereal * tauq,
  1235. doublereal * taup, doublereal * work, integer * info);
  1236. extern int dgebrd_(integer * m, integer * n, doublereal * a, integer * lda,
  1237. doublereal * d__, doublereal * e, doublereal * tauq,
  1238. doublereal * taup, doublereal * work, integer * lwork,
  1239. integer * info);
  1240. extern int dgecon_(char *norm, integer * n, doublereal * a, integer * lda,
  1241. doublereal * anorm, doublereal * rcond, doublereal * work,
  1242. integer * iwork, integer * info, ftnlen norm_len);
  1243. extern int dgeequ_(integer * m, integer * n, doublereal * a, integer * lda,
  1244. doublereal * r__, doublereal * c__, doublereal * rowcnd,
  1245. doublereal * colcnd, doublereal * amax, integer * info);
  1246. extern int dgees_(char *jobvs, char *sort, L_fp select, integer * n,
  1247. doublereal * a, integer * lda, integer * sdim,
  1248. doublereal * wr, doublereal * wi, doublereal * vs,
  1249. integer * ldvs, doublereal * work, integer * lwork,
  1250. logical * bwork, integer * info, ftnlen jobvs_len,
  1251. ftnlen sort_len);
  1252. extern int dgeesx_(char *jobvs, char *sort, L_fp select, char *sense,
  1253. integer * n, doublereal * a, integer * lda, integer * sdim,
  1254. doublereal * wr, doublereal * wi, doublereal * vs,
  1255. integer * ldvs, doublereal * rconde, doublereal * rcondv,
  1256. doublereal * work, integer * lwork, integer * iwork,
  1257. integer * liwork, logical * bwork, integer * info,
  1258. ftnlen jobvs_len, ftnlen sort_len, ftnlen sense_len);
  1259. extern int dgeev_(char *jobvl, char *jobvr, integer * n, doublereal * a,
  1260. integer * lda, doublereal * wr, doublereal * wi,
  1261. doublereal * vl, integer * ldvl, doublereal * vr,
  1262. integer * ldvr, doublereal * work, integer * lwork,
  1263. integer * info, ftnlen jobvl_len, ftnlen jobvr_len);
  1264. extern int dgeevx_(char *balanc, char *jobvl, char *jobvr, char *sense,
  1265. integer * n, doublereal * a, integer * lda,
  1266. doublereal * wr, doublereal * wi, doublereal * vl,
  1267. integer * ldvl, doublereal * vr, integer * ldvr,
  1268. integer * ilo, integer * ihi, doublereal * scale,
  1269. doublereal * abnrm, doublereal * rconde,
  1270. doublereal * rcondv, doublereal * work, integer * lwork,
  1271. integer * iwork, integer * info, ftnlen balanc_len,
  1272. ftnlen jobvl_len, ftnlen jobvr_len, ftnlen sense_len);
  1273. extern int dgegs_(char *jobvsl, char *jobvsr, integer * n, doublereal * a,
  1274. integer * lda, doublereal * b, integer * ldb,
  1275. doublereal * alphar, doublereal * alphai, doublereal * beta,
  1276. doublereal * vsl, integer * ldvsl, doublereal * vsr,
  1277. integer * ldvsr, doublereal * work, integer * lwork,
  1278. integer * info, ftnlen jobvsl_len, ftnlen jobvsr_len);
  1279. extern int dgegv_(char *jobvl, char *jobvr, integer * n, doublereal * a,
  1280. integer * lda, doublereal * b, integer * ldb,
  1281. doublereal * alphar, doublereal * alphai, doublereal * beta,
  1282. doublereal * vl, integer * ldvl, doublereal * vr,
  1283. integer * ldvr, doublereal * work, integer * lwork,
  1284. integer * info, ftnlen jobvl_len, ftnlen jobvr_len);
  1285. extern int dgehd2_(integer * n, integer * ilo, integer * ihi, doublereal * a,
  1286. integer * lda, doublereal * tau, doublereal * work,
  1287. integer * info);
  1288. extern int dgehrd_(integer * n, integer * ilo, integer * ihi, doublereal * a,
  1289. integer * lda, doublereal * tau, doublereal * work,
  1290. integer * lwork, integer * info);
  1291. extern int dgelq2_(integer * m, integer * n, doublereal * a, integer * lda,
  1292. doublereal * tau, doublereal * work, integer * info);
  1293. extern int dgelqf_(integer * m, integer * n, doublereal * a, integer * lda,
  1294. doublereal * tau, doublereal * work, integer * lwork,
  1295. integer * info);
  1296. extern int dgels_(char *trans, integer * m, integer * n, integer * nrhs,
  1297. doublereal * a, integer * lda, doublereal * b,
  1298. integer * ldb, doublereal * work, integer * lwork,
  1299. integer * info, ftnlen trans_len);
  1300. extern int dgelsd_(integer * m, integer * n, integer * nrhs, doublereal * a,
  1301. integer * lda, doublereal * b, integer * ldb,
  1302. doublereal * s, doublereal * rcond, integer * rank,
  1303. doublereal * work, integer * lwork, integer * iwork,
  1304. integer * info);
  1305. extern int dgelss_(integer * m, integer * n, integer * nrhs, doublereal * a,
  1306. integer * lda, doublereal * b, integer * ldb,
  1307. doublereal * s, doublereal * rcond, integer * rank,
  1308. doublereal * work, integer * lwork, integer * info);
  1309. extern int dgelsx_(integer * m, integer * n, integer * nrhs, doublereal * a,
  1310. integer * lda, doublereal * b, integer * ldb,
  1311. integer * jpvt, doublereal * rcond, integer * rank,
  1312. doublereal * work, integer * info);
  1313. extern int dgelsy_(integer * m, integer * n, integer * nrhs, doublereal * a,
  1314. integer * lda, doublereal * b, integer * ldb,
  1315. integer * jpvt, doublereal * rcond, integer * rank,
  1316. doublereal * work, integer * lwork, integer * info);
  1317. extern int dgeql2_(integer * m, integer * n, doublereal * a, integer * lda,
  1318. doublereal * tau, doublereal * work, integer * info);
  1319. extern int dgeqlf_(integer * m, integer * n, doublereal * a, integer * lda,
  1320. doublereal * tau, doublereal * work, integer * lwork,
  1321. integer * info);
  1322. extern int dgeqp3_(integer * m, integer * n, doublereal * a, integer * lda,
  1323. integer * jpvt, doublereal * tau, doublereal * work,
  1324. integer * lwork, integer * info);
  1325. extern int dgeqpf_(integer * m, integer * n, doublereal * a, integer * lda,
  1326. integer * jpvt, doublereal * tau, doublereal * work,
  1327. integer * info);
  1328. extern int dgeqr2_(integer * m, integer * n, doublereal * a, integer * lda,
  1329. doublereal * tau, doublereal * work, integer * info);
  1330. extern int dgeqrf_(integer * m, integer * n, doublereal * a, integer * lda,
  1331. doublereal * tau, doublereal * work, integer * lwork,
  1332. integer * info);
  1333. extern int dgerfs_(char *trans, integer * n, integer * nrhs, doublereal * a,
  1334. integer * lda, doublereal * af, integer * ldaf,
  1335. integer * ipiv, doublereal * b, integer * ldb,
  1336. doublereal * x, integer * ldx, doublereal * ferr,
  1337. doublereal * berr, doublereal * work, integer * iwork,
  1338. integer * info, ftnlen trans_len);
  1339. extern int dgerq2_(integer * m, integer * n, doublereal * a, integer * lda,
  1340. doublereal * tau, doublereal * work, integer * info);
  1341. extern int dgerqf_(integer * m, integer * n, doublereal * a, integer * lda,
  1342. doublereal * tau, doublereal * work, integer * lwork,
  1343. integer * info);
  1344. extern int dgesc2_(integer * n, doublereal * a, integer * lda,
  1345. doublereal * rhs, integer * ipiv, integer * jpiv,
  1346. doublereal * scale);
  1347. extern int dgesdd_(char *jobz, integer * m, integer * n, doublereal * a,
  1348. integer * lda, doublereal * s, doublereal * u,
  1349. integer * ldu, doublereal * vt, integer * ldvt,
  1350. doublereal * work, integer * lwork, integer * iwork,
  1351. integer * info, ftnlen jobz_len);
  1352. extern int dgesv_(integer * n, integer * nrhs, doublereal * a, integer * lda,
  1353. integer * ipiv, doublereal * b, integer * ldb,
  1354. integer * info);
  1355. extern int dgesvd_(char *jobu, char *jobvt, integer * m, integer * n,
  1356. doublereal * a, integer * lda, doublereal * s,
  1357. doublereal * u, integer * ldu, doublereal * vt,
  1358. integer * ldvt, doublereal * work, integer * lwork,
  1359. integer * info, ftnlen jobu_len, ftnlen jobvt_len);
  1360. extern int dgesvx_(char *fact, char *trans, integer * n, integer * nrhs,
  1361. doublereal * a, integer * lda, doublereal * af,
  1362. integer * ldaf, integer * ipiv, char *equed,
  1363. doublereal * r__, doublereal * c__, doublereal * b,
  1364. integer * ldb, doublereal * x, integer * ldx,
  1365. doublereal * rcond, doublereal * ferr, doublereal * berr,
  1366. doublereal * work, integer * iwork, integer * info,
  1367. ftnlen fact_len, ftnlen trans_len, ftnlen equed_len);
  1368. extern int dgetc2_(integer * n, doublereal * a, integer * lda, integer * ipiv,
  1369. integer * jpiv, integer * info);
  1370. extern int dgetf2_(integer * m, integer * n, doublereal * a, integer * lda,
  1371. integer * ipiv, integer * info);
  1372. extern int dgetrf_(integer * m, integer * n, doublereal * a, integer * lda,
  1373. integer * ipiv, integer * info);
  1374. extern int dgetri_(integer * n, doublereal * a, integer * lda, integer * ipiv,
  1375. doublereal * work, integer * lwork, integer * info);
  1376. extern int dgetrs_(char *trans, integer * n, integer * nrhs, doublereal * a,
  1377. integer * lda, integer * ipiv, doublereal * b,
  1378. integer * ldb, integer * info, ftnlen trans_len);
  1379. extern int dggbak_(char *job, char *side, integer * n, integer * ilo,
  1380. integer * ihi, doublereal * lscale, doublereal * rscale,
  1381. integer * m, doublereal * v, integer * ldv, integer * info,
  1382. ftnlen job_len, ftnlen side_len);
  1383. extern int dggbal_(char *job, integer * n, doublereal * a, integer * lda,
  1384. doublereal * b, integer * ldb, integer * ilo,
  1385. integer * ihi, doublereal * lscale, doublereal * rscale,
  1386. doublereal * work, integer * info, ftnlen job_len);
  1387. extern int dgges_(char *jobvsl, char *jobvsr, char *sort, L_fp delctg,
  1388. integer * n, doublereal * a, integer * lda, doublereal * b,
  1389. integer * ldb, integer * sdim, doublereal * alphar,
  1390. doublereal * alphai, doublereal * beta, doublereal * vsl,
  1391. integer * ldvsl, doublereal * vsr, integer * ldvsr,
  1392. doublereal * work, integer * lwork, logical * bwork,
  1393. integer * info, ftnlen jobvsl_len, ftnlen jobvsr_len,
  1394. ftnlen sort_len);
  1395. extern int dggesx_(char *jobvsl, char *jobvsr, char *sort, L_fp delctg,
  1396. char *sense, integer * n, doublereal * a, integer * lda,
  1397. doublereal * b, integer * ldb, integer * sdim,
  1398. doublereal * alphar, doublereal * alphai,
  1399. doublereal * beta, doublereal * vsl, integer * ldvsl,
  1400. doublereal * vsr, integer * ldvsr, doublereal * rconde,
  1401. doublereal * rcondv, doublereal * work, integer * lwork,
  1402. integer * iwork, integer * liwork, logical * bwork,
  1403. integer * info, ftnlen jobvsl_len, ftnlen jobvsr_len,
  1404. ftnlen sort_len, ftnlen sense_len);
  1405. extern int dggev_(char *jobvl, char *jobvr, integer * n, doublereal * a,
  1406. integer * lda, doublereal * b, integer * ldb,
  1407. doublereal * alphar, doublereal * alphai, doublereal * beta,
  1408. doublereal * vl, integer * ldvl, doublereal * vr,
  1409. integer * ldvr, doublereal * work, integer * lwork,
  1410. integer * info, ftnlen jobvl_len, ftnlen jobvr_len);
  1411. extern int dggevx_(char *balanc, char *jobvl, char *jobvr, char *sense,
  1412. integer * n, doublereal * a, integer * lda, doublereal * b,
  1413. integer * ldb, doublereal * alphar, doublereal * alphai,
  1414. doublereal * beta, doublereal * vl, integer * ldvl,
  1415. doublereal * vr, integer * ldvr, integer * ilo,
  1416. integer * ihi, doublereal * lscale, doublereal * rscale,
  1417. doublereal * abnrm, doublereal * bbnrm,
  1418. doublereal * rconde, doublereal * rcondv,
  1419. doublereal * work, integer * lwork, integer * iwork,
  1420. logical * bwork, integer * info, ftnlen balanc_len,
  1421. ftnlen jobvl_len, ftnlen jobvr_len, ftnlen sense_len);
  1422. extern int dggglm_(integer * n, integer * m, integer * p, doublereal * a,
  1423. integer * lda, doublereal * b, integer * ldb,
  1424. doublereal * d__, doublereal * x, doublereal * y,
  1425. doublereal * work, integer * lwork, integer * info);
  1426. extern int dgghrd_(char *compq, char *compz, integer * n, integer * ilo,
  1427. integer * ihi, doublereal * a, integer * lda,
  1428. doublereal * b, integer * ldb, doublereal * q,
  1429. integer * ldq, doublereal * z__, integer * ldz,
  1430. integer * info, ftnlen compq_len, ftnlen compz_len);
  1431. extern int dgglse_(integer * m, integer * n, integer * p, doublereal * a,
  1432. integer * lda, doublereal * b, integer * ldb,
  1433. doublereal * c__, doublereal * d__, doublereal * x,
  1434. doublereal * work, integer * lwork, integer * info);
  1435. extern int dggqrf_(integer * n, integer * m, integer * p, doublereal * a,
  1436. integer * lda, doublereal * taua, doublereal * b,
  1437. integer * ldb, doublereal * taub, doublereal * work,
  1438. integer * lwork, integer * info);
  1439. extern int dggrqf_(integer * m, integer * p, integer * n, doublereal * a,
  1440. integer * lda, doublereal * taua, doublereal * b,
  1441. integer * ldb, doublereal * taub, doublereal * work,
  1442. integer * lwork, integer * info);
  1443. extern int dggsvd_(char *jobu, char *jobv, char *jobq, integer * m,
  1444. integer * n, integer * p, integer * k, integer * l,
  1445. doublereal * a, integer * lda, doublereal * b,
  1446. integer * ldb, doublereal * alpha, doublereal * beta,
  1447. doublereal * u, integer * ldu, doublereal * v,
  1448. integer * ldv, doublereal * q, integer * ldq,
  1449. doublereal * work, integer * iwork, integer * info,
  1450. ftnlen jobu_len, ftnlen jobv_len, ftnlen jobq_len);
  1451. extern int dggsvp_(char *jobu, char *jobv, char *jobq, integer * m,
  1452. integer * p, integer * n, doublereal * a, integer * lda,
  1453. doublereal * b, integer * ldb, doublereal * tola,
  1454. doublereal * tolb, integer * k, integer * l,
  1455. doublereal * u, integer * ldu, doublereal * v,
  1456. integer * ldv, doublereal * q, integer * ldq,
  1457. integer * iwork, doublereal * tau, doublereal * work,
  1458. integer * info, ftnlen jobu_len, ftnlen jobv_len,
  1459. ftnlen jobq_len);
  1460. extern int dgtcon_(char *norm, integer * n, doublereal * dl, doublereal * d__,
  1461. doublereal * du, doublereal * du2, integer * ipiv,
  1462. doublereal * anorm, doublereal * rcond, doublereal * work,
  1463. integer * iwork, integer * info, ftnlen norm_len);
  1464. extern int dgtrfs_(char *trans, integer * n, integer * nrhs, doublereal * dl,
  1465. doublereal * d__, doublereal * du, doublereal * dlf,
  1466. doublereal * df, doublereal * duf, doublereal * du2,
  1467. integer * ipiv, doublereal * b, integer * ldb,
  1468. doublereal * x, integer * ldx, doublereal * ferr,
  1469. doublereal * berr, doublereal * work, integer * iwork,
  1470. integer * info, ftnlen trans_len);
  1471. extern int dgtsv_(integer * n, integer * nrhs, doublereal * dl,
  1472. doublereal * d__, doublereal * du, doublereal * b,
  1473. integer * ldb, integer * info);
  1474. extern int dgtsvx_(char *fact, char *trans, integer * n, integer * nrhs,
  1475. doublereal * dl, doublereal * d__, doublereal * du,
  1476. doublereal * dlf, doublereal * df, doublereal * duf,
  1477. doublereal * du2, integer * ipiv, doublereal * b,
  1478. integer * ldb, doublereal * x, integer * ldx,
  1479. doublereal * rcond, doublereal * ferr, doublereal * berr,
  1480. doublereal * work, integer * iwork, integer * info,
  1481. ftnlen fact_len, ftnlen trans_len);
  1482. extern int dgttrf_(integer * n, doublereal * dl, doublereal * d__,
  1483. doublereal * du, doublereal * du2, integer * ipiv,
  1484. integer * info);
  1485. extern int dgttrs_(char *trans, integer * n, integer * nrhs, doublereal * dl,
  1486. doublereal * d__, doublereal * du, doublereal * du2,
  1487. integer * ipiv, doublereal * b, integer * ldb,
  1488. integer * info, ftnlen trans_len);
  1489. extern int dgtts2_(integer * itrans, integer * n, integer * nrhs,
  1490. doublereal * dl, doublereal * d__, doublereal * du,
  1491. doublereal * du2, integer * ipiv, doublereal * b,
  1492. integer * ldb);
  1493. extern int dhgeqz_(char *job, char *compq, char *compz, integer * n,
  1494. integer * ilo, integer * ihi, doublereal * a,
  1495. integer * lda, doublereal * b, integer * ldb,
  1496. doublereal * alphar, doublereal * alphai,
  1497. doublereal * beta, doublereal * q, integer * ldq,
  1498. doublereal * z__, integer * ldz, doublereal * work,
  1499. integer * lwork, integer * info, ftnlen job_len,
  1500. ftnlen compq_len, ftnlen compz_len);
  1501. extern int dhsein_(char *side, char *eigsrc, char *initv, logical * select,
  1502. integer * n, doublereal * h__, integer * ldh,
  1503. doublereal * wr, doublereal * wi, doublereal * vl,
  1504. integer * ldvl, doublereal * vr, integer * ldvr,
  1505. integer * mm, integer * m, doublereal * work,
  1506. integer * ifaill, integer * ifailr, integer * info,
  1507. ftnlen side_len, ftnlen eigsrc_len, ftnlen initv_len);
  1508. extern int dhseqr_(char *job, char *compz, integer * n, integer * ilo,
  1509. integer * ihi, doublereal * h__, integer * ldh,
  1510. doublereal * wr, doublereal * wi, doublereal * z__,
  1511. integer * ldz, doublereal * work, integer * lwork,
  1512. integer * info, ftnlen job_len, ftnlen compz_len);
  1513. extern int dlabad_(doublereal * small, doublereal * large);
  1514. extern int dlabrd_(integer * m, integer * n, integer * nb, doublereal * a,
  1515. integer * lda, doublereal * d__, doublereal * e,
  1516. doublereal * tauq, doublereal * taup, doublereal * x,
  1517. integer * ldx, doublereal * y, integer * ldy);
  1518. extern int dlacon_(integer * n, doublereal * v, doublereal * x,
  1519. integer * isgn, doublereal * est, integer * kase);
  1520. extern int dlacpy_(char *uplo, integer * m, integer * n, doublereal * a,
  1521. integer * lda, doublereal * b, integer * ldb,
  1522. ftnlen uplo_len);
  1523. extern int dladiv_(doublereal * a, doublereal * b, doublereal * c__,
  1524. doublereal * d__, doublereal * p, doublereal * q);
  1525. extern int dlae2_(doublereal * a, doublereal * b, doublereal * c__,
  1526. doublereal * rt1, doublereal * rt2);
  1527. extern int dlaebz_(integer * ijob, integer * nitmax, integer * n,
  1528. integer * mmax, integer * minp, integer * nbmin,
  1529. doublereal * abstol, doublereal * reltol,
  1530. doublereal * pivmin, doublereal * d__, doublereal * e,
  1531. doublereal * e2, integer * nval, doublereal * ab,
  1532. doublereal * c__, integer * mout, integer * nab,
  1533. doublereal * work, integer * iwork, integer * info);
  1534. extern int dlaed0_(integer * icompq, integer * qsiz, integer * n,
  1535. doublereal * d__, doublereal * e, doublereal * q,
  1536. integer * ldq, doublereal * qstore, integer * ldqs,
  1537. doublereal * work, integer * iwork, integer * info);
  1538. extern int dlaed1_(integer * n, doublereal * d__, doublereal * q,
  1539. integer * ldq, integer * indxq, doublereal * rho,
  1540. integer * cutpnt, doublereal * work, integer * iwork,
  1541. integer * info);
  1542. extern int dlaed2_(integer * k, integer * n, integer * n1, doublereal * d__,
  1543. doublereal * q, integer * ldq, integer * indxq,
  1544. doublereal * rho, doublereal * z__, doublereal * dlamda,
  1545. doublereal * w, doublereal * q2, integer * indx,
  1546. integer * indxc, integer * indxp, integer * coltyp,
  1547. integer * info);
  1548. extern int dlaed3_(integer * k, integer * n, integer * n1, doublereal * d__,
  1549. doublereal * q, integer * ldq, doublereal * rho,
  1550. doublereal * dlamda, doublereal * q2, integer * indx,
  1551. integer * ctot, doublereal * w, doublereal * s,
  1552. integer * info);
  1553. extern int dlaed4_(integer * n, integer * i__, doublereal * d__,
  1554. doublereal * z__, doublereal * delta, doublereal * rho,
  1555. doublereal * dlam, integer * info);
  1556. extern int dlaed5_(integer * i__, doublereal * d__, doublereal * z__,
  1557. doublereal * delta, doublereal * rho, doublereal * dlam);
  1558. extern int dlaed6_(integer * kniter, logical * orgati, doublereal * rho,
  1559. doublereal * d__, doublereal * z__, doublereal * finit,
  1560. doublereal * tau, integer * info);
  1561. extern int dlaed7_(integer * icompq, integer * n, integer * qsiz,
  1562. integer * tlvls, integer * curlvl, integer * curpbm,
  1563. doublereal * d__, doublereal * q, integer * ldq,
  1564. integer * indxq, doublereal * rho, integer * cutpnt,
  1565. doublereal * qstore, integer * qptr, integer * prmptr,
  1566. integer * perm, integer * givptr, integer * givcol,
  1567. doublereal * givnum, doublereal * work, integer * iwork,
  1568. integer * info);
  1569. extern int dlaed8_(integer * icompq, integer * k, integer * n, integer * qsiz,
  1570. doublereal * d__, doublereal * q, integer * ldq,
  1571. integer * indxq, doublereal * rho, integer * cutpnt,
  1572. doublereal * z__, doublereal * dlamda, doublereal * q2,
  1573. integer * ldq2, doublereal * w, integer * perm,
  1574. integer * givptr, integer * givcol, doublereal * givnum,
  1575. integer * indxp, integer * indx, integer * info);
  1576. extern int dlaed9_(integer * k, integer * kstart, integer * kstop,
  1577. integer * n, doublereal * d__, doublereal * q,
  1578. integer * ldq, doublereal * rho, doublereal * dlamda,
  1579. doublereal * w, doublereal * s, integer * lds,
  1580. integer * info);
  1581. extern int dlaeda_(integer * n, integer * tlvls, integer * curlvl,
  1582. integer * curpbm, integer * prmptr, integer * perm,
  1583. integer * givptr, integer * givcol, doublereal * givnum,
  1584. doublereal * q, integer * qptr, doublereal * z__,
  1585. doublereal * ztemp, integer * info);
  1586. extern int dlaein_(logical * rightv, logical * noinit, integer * n,
  1587. doublereal * h__, integer * ldh, doublereal * wr,
  1588. doublereal * wi, doublereal * vr, doublereal * vi,
  1589. doublereal * b, integer * ldb, doublereal * work,
  1590. doublereal * eps3, doublereal * smlnum,
  1591. doublereal * bignum, integer * info);
  1592. extern int dlaev2_(doublereal * a, doublereal * b, doublereal * c__,
  1593. doublereal * rt1, doublereal * rt2, doublereal * cs1,
  1594. doublereal * sn1);
  1595. extern int dlaexc_(logical * wantq, integer * n, doublereal * t,
  1596. integer * ldt, doublereal * q, integer * ldq, integer * j1,
  1597. integer * n1, integer * n2, doublereal * work,
  1598. integer * info);
  1599. extern int dlag2_(doublereal * a, integer * lda, doublereal * b,
  1600. integer * ldb, doublereal * safmin, doublereal * scale1,
  1601. doublereal * scale2, doublereal * wr1, doublereal * wr2,
  1602. doublereal * wi);
  1603. extern int dlags2_(logical * upper, doublereal * a1, doublereal * a2,
  1604. doublereal * a3, doublereal * b1, doublereal * b2,
  1605. doublereal * b3, doublereal * csu, doublereal * snu,
  1606. doublereal * csv, doublereal * snv, doublereal * csq,
  1607. doublereal * snq);
  1608. extern int dlagtf_(integer * n, doublereal * a, doublereal * lambda,
  1609. doublereal * b, doublereal * c__, doublereal * tol,
  1610. doublereal * d__, integer * in, integer * info);
  1611. extern int dlagtm_(char *trans, integer * n, integer * nrhs,
  1612. doublereal * alpha, doublereal * dl, doublereal * d__,
  1613. doublereal * du, doublereal * x, integer * ldx,
  1614. doublereal * beta, doublereal * b, integer * ldb,
  1615. ftnlen trans_len);
  1616. extern int dlagts_(integer * job, integer * n, doublereal * a, doublereal * b,
  1617. doublereal * c__, doublereal * d__, integer * in,
  1618. doublereal * y, doublereal * tol, integer * info);
  1619. extern int dlagv2_(doublereal * a, integer * lda, doublereal * b,
  1620. integer * ldb, doublereal * alphar, doublereal * alphai,
  1621. doublereal * beta, doublereal * csl, doublereal * snl,
  1622. doublereal * csr, doublereal * snr);
  1623. extern int dlahqr_(logical * wantt, logical * wantz, integer * n,
  1624. integer * ilo, integer * ihi, doublereal * h__,
  1625. integer * ldh, doublereal * wr, doublereal * wi,
  1626. integer * iloz, integer * ihiz, doublereal * z__,
  1627. integer * ldz, integer * info);
  1628. extern int dlahrd_(integer * n, integer * k, integer * nb, doublereal * a,
  1629. integer * lda, doublereal * tau, doublereal * t,
  1630. integer * ldt, doublereal * y, integer * ldy);
  1631. extern int dlaic1_(integer * job, integer * j, doublereal * x,
  1632. doublereal * sest, doublereal * w, doublereal * gamma,
  1633. doublereal * sestpr, doublereal * s, doublereal * c__);
  1634. extern int dlaln2_(logical * ltrans, integer * na, integer * nw,
  1635. doublereal * smin, doublereal * ca, doublereal * a,
  1636. integer * lda, doublereal * d1, doublereal * d2,
  1637. doublereal * b, integer * ldb, doublereal * wr,
  1638. doublereal * wi, doublereal * x, integer * ldx,
  1639. doublereal * scale, doublereal * xnorm, integer * info);
  1640. extern int dlals0_(integer * icompq, integer * nl, integer * nr,
  1641. integer * sqre, integer * nrhs, doublereal * b,
  1642. integer * ldb, doublereal * bx, integer * ldbx,
  1643. integer * perm, integer * givptr, integer * givcol,
  1644. integer * ldgcol, doublereal * givnum, integer * ldgnum,
  1645. doublereal * poles, doublereal * difl, doublereal * difr,
  1646. doublereal * z__, integer * k, doublereal * c__,
  1647. doublereal * s, doublereal * work, integer * info);
  1648. extern int dlalsa_(integer * icompq, integer * smlsiz, integer * n,
  1649. integer * nrhs, doublereal * b, integer * ldb,
  1650. doublereal * bx, integer * ldbx, doublereal * u,
  1651. integer * ldu, doublereal * vt, integer * k,
  1652. doublereal * difl, doublereal * difr, doublereal * z__,
  1653. doublereal * poles, integer * givptr, integer * givcol,
  1654. integer * ldgcol, integer * perm, doublereal * givnum,
  1655. doublereal * c__, doublereal * s, doublereal * work,
  1656. integer * iwork, integer * info);
  1657. extern int dlalsd_(char *uplo, integer * smlsiz, integer * n, integer * nrhs,
  1658. doublereal * d__, doublereal * e, doublereal * b,
  1659. integer * ldb, doublereal * rcond, integer * rank,
  1660. doublereal * work, integer * iwork, integer * info,
  1661. ftnlen uplo_len);
  1662. extern doublereal dlamch_(char *cmach, ftnlen cmach_len);
  1663. extern int dlamc1_(integer * beta, integer * t, logical * rnd,
  1664. logical * ieee1);
  1665. extern int dlamc2_(integer * beta, integer * t, logical * rnd,
  1666. doublereal * eps, integer * emin, doublereal * rmin,
  1667. integer * emax, doublereal * rmax);
  1668. extern doublereal dlamc3_(doublereal * a, doublereal * b);
  1669. extern int dlamc4_(integer * emin, doublereal * start, integer * base);
  1670. extern int dlamc5_(integer * beta, integer * p, integer * emin,
  1671. logical * ieee, integer * emax, doublereal * rmax);
  1672. extern int dlamrg_(integer * n1, integer * n2, doublereal * a,
  1673. integer * dtrd1, integer * dtrd2, integer * index);
  1674. extern doublereal dlangb_(char *norm, integer * n, integer * kl, integer * ku,
  1675. doublereal * ab, integer * ldab, doublereal * work,
  1676. ftnlen norm_len);
  1677. extern doublereal dlange_(char *norm, integer * m, integer * n,
  1678. doublereal * a, integer * lda, doublereal * work,
  1679. ftnlen norm_len);
  1680. extern doublereal dlangt_(char *norm, integer * n, doublereal * dl,
  1681. doublereal * d__, doublereal * du, ftnlen norm_len);
  1682. extern doublereal dlanhs_(char *norm, integer * n, doublereal * a,
  1683. integer * lda, doublereal * work, ftnlen norm_len);
  1684. extern doublereal dlansb_(char *norm, char *uplo, integer * n, integer * k,
  1685. doublereal * ab, integer * ldab, doublereal * work,
  1686. ftnlen norm_len, ftnlen uplo_len);
  1687. extern doublereal dlansp_(char *norm, char *uplo, integer * n,
  1688. doublereal * ap, doublereal * work, ftnlen norm_len,
  1689. ftnlen uplo_len);
  1690. extern doublereal dlanst_(char *norm, integer * n, doublereal * d__,
  1691. doublereal * e, ftnlen norm_len);
  1692. extern doublereal dlansy_(char *norm, char *uplo, integer * n, doublereal * a,
  1693. integer * lda, doublereal * work, ftnlen norm_len,
  1694. ftnlen uplo_len);
  1695. extern doublereal dlantb_(char *norm, char *uplo, char *diag, integer * n,
  1696. integer * k, doublereal * ab, integer * ldab,
  1697. doublereal * work, ftnlen norm_len, ftnlen uplo_len,
  1698. ftnlen diag_len);
  1699. extern doublereal dlantp_(char *norm, char *uplo, char *diag, integer * n,
  1700. doublereal * ap, doublereal * work, ftnlen norm_len,
  1701. ftnlen uplo_len, ftnlen diag_len);
  1702. extern doublereal dlantr_(char *norm, char *uplo, char *diag, integer * m,
  1703. integer * n, doublereal * a, integer * lda,
  1704. doublereal * work, ftnlen norm_len, ftnlen uplo_len,
  1705. ftnlen diag_len);
  1706. extern int dlanv2_(doublereal * a, doublereal * b, doublereal * c__,
  1707. doublereal * d__, doublereal * rt1r, doublereal * rt1i,
  1708. doublereal * rt2r, doublereal * rt2i, doublereal * cs,
  1709. doublereal * sn);
  1710. extern int dlapll_(integer * n, doublereal * x, integer * incx,
  1711. doublereal * y, integer * incy, doublereal * ssmin);
  1712. extern int dlapmt_(logical * forwrd, integer * m, integer * n, doublereal * x,
  1713. integer * ldx, integer * k);
  1714. extern doublereal dlapy2_(doublereal * x, doublereal * y);
  1715. extern doublereal dlapy3_(doublereal * x, doublereal * y, doublereal * z__);
  1716. extern int dlaqgb_(integer * m, integer * n, integer * kl, integer * ku,
  1717. doublereal * ab, integer * ldab, doublereal * r__,
  1718. doublereal * c__, doublereal * rowcnd, doublereal * colcnd,
  1719. doublereal * amax, char *equed, ftnlen equed_len);
  1720. extern int dlaqge_(integer * m, integer * n, doublereal * a, integer * lda,
  1721. doublereal * r__, doublereal * c__, doublereal * rowcnd,
  1722. doublereal * colcnd, doublereal * amax, char *equed,
  1723. ftnlen equed_len);
  1724. extern int dlaqp2_(integer * m, integer * n, integer * offset, doublereal * a,
  1725. integer * lda, integer * jpvt, doublereal * tau,
  1726. doublereal * vn1, doublereal * vn2, doublereal * work);
  1727. extern int dlaqps_(integer * m, integer * n, integer * offset, integer * nb,
  1728. integer * kb, doublereal * a, integer * lda,
  1729. integer * jpvt, doublereal * tau, doublereal * vn1,
  1730. doublereal * vn2, doublereal * auxv, doublereal * f,
  1731. integer * ldf);
  1732. extern int dlaqsb_(char *uplo, integer * n, integer * kd, doublereal * ab,
  1733. integer * ldab, doublereal * s, doublereal * scond,
  1734. doublereal * amax, char *equed, ftnlen uplo_len,
  1735. ftnlen equed_len);
  1736. extern int dlaqsp_(char *uplo, integer * n, doublereal * ap, doublereal * s,
  1737. doublereal * scond, doublereal * amax, char *equed,
  1738. ftnlen uplo_len, ftnlen equed_len);
  1739. extern int dlaqsy_(char *uplo, integer * n, doublereal * a, integer * lda,
  1740. doublereal * s, doublereal * scond, doublereal * amax,
  1741. char *equed, ftnlen uplo_len, ftnlen equed_len);
  1742. extern int dlaqtr_(logical * ltran, logical * lreal, integer * n,
  1743. doublereal * t, integer * ldt, doublereal * b,
  1744. doublereal * w, doublereal * scale, doublereal * x,
  1745. doublereal * work, integer * info);
  1746. extern int dlar1v_(integer * n, integer * b1, integer * bn,
  1747. doublereal * sigma, doublereal * d__, doublereal * l,
  1748. doublereal * ld, doublereal * lld, doublereal * gersch,
  1749. doublereal * z__, doublereal * ztz, doublereal * mingma,
  1750. integer * r__, integer * isuppz, doublereal * work);
  1751. extern int dlar2v_(integer * n, doublereal * x, doublereal * y,
  1752. doublereal * z__, integer * incx, doublereal * c__,
  1753. doublereal * s, integer * incc);
  1754. extern int dlarf_(char *side, integer * m, integer * n, doublereal * v,
  1755. integer * incv, doublereal * tau, doublereal * c__,
  1756. integer * ldc, doublereal * work, ftnlen side_len);
  1757. extern int dlarfb_(char *side, char *trans, char *direct, char *storev,
  1758. integer * m, integer * n, integer * k, doublereal * v,
  1759. integer * ldv, doublereal * t, integer * ldt,
  1760. doublereal * c__, integer * ldc, doublereal * work,
  1761. integer * ldwork, ftnlen side_len, ftnlen trans_len,
  1762. ftnlen direct_len, ftnlen storev_len);
  1763. extern int dlarfg_(integer * n, doublereal * alpha, doublereal * x,
  1764. integer * incx, doublereal * tau);
  1765. extern int dlarft_(char *direct, char *storev, integer * n, integer * k,
  1766. doublereal * v, integer * ldv, doublereal * tau,
  1767. doublereal * t, integer * ldt, ftnlen direct_len,
  1768. ftnlen storev_len);
  1769. extern int dlarfx_(char *side, integer * m, integer * n, doublereal * v,
  1770. doublereal * tau, doublereal * c__, integer * ldc,
  1771. doublereal * work, ftnlen side_len);
  1772. extern int dlargv_(integer * n, doublereal * x, integer * incx,
  1773. doublereal * y, integer * incy, doublereal * c__,
  1774. integer * incc);
  1775. extern int dlarnv_(integer * idist, integer * iseed, integer * n,
  1776. doublereal * x);
  1777. extern int dlarrb_(integer * n, doublereal * d__, doublereal * l,
  1778. doublereal * ld, doublereal * lld, integer * ifirst,
  1779. integer * ilast, doublereal * sigma, doublereal * reltol,
  1780. doublereal * w, doublereal * wgap, doublereal * werr,
  1781. doublereal * work, integer * iwork, integer * info);
  1782. extern int dlarre_(integer * n, doublereal * d__, doublereal * e,
  1783. doublereal * tol, integer * nsplit, integer * isplit,
  1784. integer * m, doublereal * w, doublereal * woff,
  1785. doublereal * gersch, doublereal * work, integer * info);
  1786. extern int dlarrf_(integer * n, doublereal * d__, doublereal * l,
  1787. doublereal * ld, doublereal * lld, integer * ifirst,
  1788. integer * ilast, doublereal * w, doublereal * dplus,
  1789. doublereal * lplus, doublereal * work, integer * iwork,
  1790. integer * info);
  1791. extern int dlarrv_(integer * n, doublereal * d__, doublereal * l,
  1792. integer * isplit, integer * m, doublereal * w,
  1793. integer * iblock, doublereal * gersch, doublereal * tol,
  1794. doublereal * z__, integer * ldz, integer * isuppz,
  1795. doublereal * work, integer * iwork, integer * info);
  1796. extern int dlartg_(doublereal * f, doublereal * g, doublereal * cs,
  1797. doublereal * sn, doublereal * r__);
  1798. extern int dlartv_(integer * n, doublereal * x, integer * incx,
  1799. doublereal * y, integer * incy, doublereal * c__,
  1800. doublereal * s, integer * incc);
  1801. extern int dlaruv_(integer * iseed, integer * n, doublereal * x);
  1802. extern int dlarz_(char *side, integer * m, integer * n, integer * l,
  1803. doublereal * v, integer * incv, doublereal * tau,
  1804. doublereal * c__, integer * ldc, doublereal * work,
  1805. ftnlen side_len);
  1806. extern int dlarzb_(char *side, char *trans, char *direct, char *storev,
  1807. integer * m, integer * n, integer * k, integer * l,
  1808. doublereal * v, integer * ldv, doublereal * t,
  1809. integer * ldt, doublereal * c__, integer * ldc,
  1810. doublereal * work, integer * ldwork, ftnlen side_len,
  1811. ftnlen trans_len, ftnlen direct_len, ftnlen storev_len);
  1812. extern int dlarzt_(char *direct, char *storev, integer * n, integer * k,
  1813. doublereal * v, integer * ldv, doublereal * tau,
  1814. doublereal * t, integer * ldt, ftnlen direct_len,
  1815. ftnlen storev_len);
  1816. extern int dlas2_(doublereal * f, doublereal * g, doublereal * h__,
  1817. doublereal * ssmin, doublereal * ssmax);
  1818. extern int dlascl_(char *type__, integer * kl, integer * ku,
  1819. doublereal * cfrom, doublereal * cto, integer * m,
  1820. integer * n, doublereal * a, integer * lda, integer * info,
  1821. ftnlen type_len);
  1822. extern int dlasd0_(integer * n, integer * sqre, doublereal * d__,
  1823. doublereal * e, doublereal * u, integer * ldu,
  1824. doublereal * vt, integer * ldvt, integer * smlsiz,
  1825. integer * iwork, doublereal * work, integer * info);
  1826. extern int dlasd1_(integer * nl, integer * nr, integer * sqre,
  1827. doublereal * d__, doublereal * alpha, doublereal * beta,
  1828. doublereal * u, integer * ldu, doublereal * vt,
  1829. integer * ldvt, integer * idxq, integer * iwork,
  1830. doublereal * work, integer * info);
  1831. extern int dlasd2_(integer * nl, integer * nr, integer * sqre, integer * k,
  1832. doublereal * d__, doublereal * z__, doublereal * alpha,
  1833. doublereal * beta, doublereal * u, integer * ldu,
  1834. doublereal * vt, integer * ldvt, doublereal * dsigma,
  1835. doublereal * u2, integer * ldu2, doublereal * vt2,
  1836. integer * ldvt2, integer * idxp, integer * idx,
  1837. integer * idxc, integer * idxq, integer * coltyp,
  1838. integer * info);
  1839. extern int dlasd3_(integer * nl, integer * nr, integer * sqre, integer * k,
  1840. doublereal * d__, doublereal * q, integer * ldq,
  1841. doublereal * dsigma, doublereal * u, integer * ldu,
  1842. doublereal * u2, integer * ldu2, doublereal * vt,
  1843. integer * ldvt, doublereal * vt2, integer * ldvt2,
  1844. integer * idxc, integer * ctot, doublereal * z__,
  1845. integer * info);
  1846. extern int dlasd4_(integer * n, integer * i__, doublereal * d__,
  1847. doublereal * z__, doublereal * delta, doublereal * rho,
  1848. doublereal * sigma, doublereal * work, integer * info);
  1849. extern int dlasd5_(integer * i__, doublereal * d__, doublereal * z__,
  1850. doublereal * delta, doublereal * rho, doublereal * dsigma,
  1851. doublereal * work);
  1852. extern int dlasd6_(integer * icompq, integer * nl, integer * nr,
  1853. integer * sqre, doublereal * d__, doublereal * vf,
  1854. doublereal * vl, doublereal * alpha, doublereal * beta,
  1855. integer * idxq, integer * perm, integer * givptr,
  1856. integer * givcol, integer * ldgcol, doublereal * givnum,
  1857. integer * ldgnum, doublereal * poles, doublereal * difl,
  1858. doublereal * difr, doublereal * z__, integer * k,
  1859. doublereal * c__, doublereal * s, doublereal * work,
  1860. integer * iwork, integer * info);
  1861. extern int dlasd7_(integer * icompq, integer * nl, integer * nr,
  1862. integer * sqre, integer * k, doublereal * d__,
  1863. doublereal * z__, doublereal * zw, doublereal * vf,
  1864. doublereal * vfw, doublereal * vl, doublereal * vlw,
  1865. doublereal * alpha, doublereal * beta, doublereal * dsigma,
  1866. integer * idx, integer * idxp, integer * idxq,
  1867. integer * perm, integer * givptr, integer * givcol,
  1868. integer * ldgcol, doublereal * givnum, integer * ldgnum,
  1869. doublereal * c__, doublereal * s, integer * info);
  1870. extern int dlasd8_(integer * icompq, integer * k, doublereal * d__,
  1871. doublereal * z__, doublereal * vf, doublereal * vl,
  1872. doublereal * difl, doublereal * difr, integer * lddifr,
  1873. doublereal * dsigma, doublereal * work, integer * info);
  1874. extern int dlasd9_(integer * icompq, integer * ldu, integer * k,
  1875. doublereal * d__, doublereal * z__, doublereal * vf,
  1876. doublereal * vl, doublereal * difl, doublereal * difr,
  1877. doublereal * dsigma, doublereal * work, integer * info);
  1878. extern int dlasda_(integer * icompq, integer * smlsiz, integer * n,
  1879. integer * sqre, doublereal * d__, doublereal * e,
  1880. doublereal * u, integer * ldu, doublereal * vt,
  1881. integer * k, doublereal * difl, doublereal * difr,
  1882. doublereal * z__, doublereal * poles, integer * givptr,
  1883. integer * givcol, integer * ldgcol, integer * perm,
  1884. doublereal * givnum, doublereal * c__, doublereal * s,
  1885. doublereal * work, integer * iwork, integer * info);
  1886. extern int dlasdq_(char *uplo, integer * sqre, integer * n, integer * ncvt,
  1887. integer * nru, integer * ncc, doublereal * d__,
  1888. doublereal * e, doublereal * vt, integer * ldvt,
  1889. doublereal * u, integer * ldu, doublereal * c__,
  1890. integer * ldc, doublereal * work, integer * info,
  1891. ftnlen uplo_len);
  1892. extern int dlasdt_(integer * n, integer * lvl, integer * nd, integer * inode,
  1893. integer * ndiml, integer * ndimr, integer * msub);
  1894. extern int dlaset_(char *uplo, integer * m, integer * n, doublereal * alpha,
  1895. doublereal * beta, doublereal * a, integer * lda,
  1896. ftnlen uplo_len);
  1897. extern int dlasq1_(integer * n, doublereal * d__, doublereal * e,
  1898. doublereal * work, integer * info);
  1899. extern int dlasq2_(integer * n, doublereal * z__, integer * info);
  1900. extern int dlasq3_(integer * i0, integer * n0, doublereal * z__, integer * pp,
  1901. doublereal * dmin__, doublereal * sigma,
  1902. doublereal * desig, doublereal * qmax, integer * nfail,
  1903. integer * iter, integer * ndiv);
  1904. extern int dlasq4_(integer * i0, integer * n0, doublereal * z__, integer * pp,
  1905. integer * n0in, doublereal * dmin__, doublereal * dmin1,
  1906. doublereal * dmin2, doublereal * dn, doublereal * dn1,
  1907. doublereal * dn2, doublereal * tau, integer * ttype);
  1908. extern int dlasq5_(integer * i0, integer * n0, doublereal * z__, integer * pp,
  1909. doublereal * tau, doublereal * dmin__, doublereal * dmin1,
  1910. doublereal * dmin2, doublereal * dn, doublereal * dnm1,
  1911. doublereal * dnm2);
  1912. extern int dlasq6_(integer * i0, integer * n0, doublereal * z__, integer * pp,
  1913. doublereal * dmin__, doublereal * dmin1,
  1914. doublereal * dmin2, doublereal * dn, doublereal * dnm1,
  1915. doublereal * dnm2);
  1916. extern int dlasr_(char *side, char *pivot, char *direct, integer * m,
  1917. integer * n, doublereal * c__, doublereal * s,
  1918. doublereal * a, integer * lda, ftnlen side_len,
  1919. ftnlen pivot_len, ftnlen direct_len);
  1920. extern int dlasrt_(char *id, integer * n, doublereal * d__, integer * info,
  1921. ftnlen id_len);
  1922. extern int dlassq_(integer * n, doublereal * x, integer * incx,
  1923. doublereal * scale, doublereal * sumsq);
  1924. extern int dlasv2_(doublereal * f, doublereal * g, doublereal * h__,
  1925. doublereal * ssmin, doublereal * ssmax, doublereal * snr,
  1926. doublereal * csr, doublereal * snl, doublereal * csl);
  1927. extern int dlaswp_(integer * n, doublereal * a, integer * lda, integer * k1,
  1928. integer * k2, integer * ipiv, integer * incx);
  1929. extern int dlasy2_(logical * ltranl, logical * ltranr, integer * isgn,
  1930. integer * n1, integer * n2, doublereal * tl,
  1931. integer * ldtl, doublereal * tr, integer * ldtr,
  1932. doublereal * b, integer * ldb, doublereal * scale,
  1933. doublereal * x, integer * ldx, doublereal * xnorm,
  1934. integer * info);
  1935. extern int dlasyf_(char *uplo, integer * n, integer * nb, integer * kb,
  1936. doublereal * a, integer * lda, integer * ipiv,
  1937. doublereal * w, integer * ldw, integer * info,
  1938. ftnlen uplo_len);
  1939. extern int dlatbs_(char *uplo, char *trans, char *diag, char *normin,
  1940. integer * n, integer * kd, doublereal * ab, integer * ldab,
  1941. doublereal * x, doublereal * scale, doublereal * cnorm,
  1942. integer * info, ftnlen uplo_len, ftnlen trans_len,
  1943. ftnlen diag_len, ftnlen normin_len);
  1944. extern int dlatdf_(integer * ijob, integer * n, doublereal * z__,
  1945. integer * ldz, doublereal * rhs, doublereal * rdsum,
  1946. doublereal * rdscal, integer * ipiv, integer * jpiv);
  1947. extern int dlatps_(char *uplo, char *trans, char *diag, char *normin,
  1948. integer * n, doublereal * ap, doublereal * x,
  1949. doublereal * scale, doublereal * cnorm, integer * info,
  1950. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len,
  1951. ftnlen normin_len);
  1952. extern int dlatrd_(char *uplo, integer * n, integer * nb, doublereal * a,
  1953. integer * lda, doublereal * e, doublereal * tau,
  1954. doublereal * w, integer * ldw, ftnlen uplo_len);
  1955. extern int dlatrs_(char *uplo, char *trans, char *diag, char *normin,
  1956. integer * n, doublereal * a, integer * lda, doublereal * x,
  1957. doublereal * scale, doublereal * cnorm, integer * info,
  1958. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len,
  1959. ftnlen normin_len);
  1960. extern int dlatrz_(integer * m, integer * n, integer * l, doublereal * a,
  1961. integer * lda, doublereal * tau, doublereal * work);
  1962. extern int dlatzm_(char *side, integer * m, integer * n, doublereal * v,
  1963. integer * incv, doublereal * tau, doublereal * c1,
  1964. doublereal * c2, integer * ldc, doublereal * work,
  1965. ftnlen side_len);
  1966. extern int dlauu2_(char *uplo, integer * n, doublereal * a, integer * lda,
  1967. integer * info, ftnlen uplo_len);
  1968. extern int dlauum_(char *uplo, integer * n, doublereal * a, integer * lda,
  1969. integer * info, ftnlen uplo_len);
  1970. extern int dopgtr_(char *uplo, integer * n, doublereal * ap, doublereal * tau,
  1971. doublereal * q, integer * ldq, doublereal * work,
  1972. integer * info, ftnlen uplo_len);
  1973. extern int dopmtr_(char *side, char *uplo, char *trans, integer * m,
  1974. integer * n, doublereal * ap, doublereal * tau,
  1975. doublereal * c__, integer * ldc, doublereal * work,
  1976. integer * info, ftnlen side_len, ftnlen uplo_len,
  1977. ftnlen trans_len);
  1978. extern int dorg2l_(integer * m, integer * n, integer * k, doublereal * a,
  1979. integer * lda, doublereal * tau, doublereal * work,
  1980. integer * info);
  1981. extern int dorg2r_(integer * m, integer * n, integer * k, doublereal * a,
  1982. integer * lda, doublereal * tau, doublereal * work,
  1983. integer * info);
  1984. extern int dorgbr_(char *vect, integer * m, integer * n, integer * k,
  1985. doublereal * a, integer * lda, doublereal * tau,
  1986. doublereal * work, integer * lwork, integer * info,
  1987. ftnlen vect_len);
  1988. extern int dorghr_(integer * n, integer * ilo, integer * ihi, doublereal * a,
  1989. integer * lda, doublereal * tau, doublereal * work,
  1990. integer * lwork, integer * info);
  1991. extern int dorgl2_(integer * m, integer * n, integer * k, doublereal * a,
  1992. integer * lda, doublereal * tau, doublereal * work,
  1993. integer * info);
  1994. extern int dorglq_(integer * m, integer * n, integer * k, doublereal * a,
  1995. integer * lda, doublereal * tau, doublereal * work,
  1996. integer * lwork, integer * info);
  1997. extern int dorgql_(integer * m, integer * n, integer * k, doublereal * a,
  1998. integer * lda, doublereal * tau, doublereal * work,
  1999. integer * lwork, integer * info);
  2000. extern int dorgqr_(integer * m, integer * n, integer * k, doublereal * a,
  2001. integer * lda, doublereal * tau, doublereal * work,
  2002. integer * lwork, integer * info);
  2003. extern int dorgr2_(integer * m, integer * n, integer * k, doublereal * a,
  2004. integer * lda, doublereal * tau, doublereal * work,
  2005. integer * info);
  2006. extern int dorgrq_(integer * m, integer * n, integer * k, doublereal * a,
  2007. integer * lda, doublereal * tau, doublereal * work,
  2008. integer * lwork, integer * info);
  2009. extern int dorgtr_(char *uplo, integer * n, doublereal * a, integer * lda,
  2010. doublereal * tau, doublereal * work, integer * lwork,
  2011. integer * info, ftnlen uplo_len);
  2012. extern int dorm2l_(char *side, char *trans, integer * m, integer * n,
  2013. integer * k, doublereal * a, integer * lda,
  2014. doublereal * tau, doublereal * c__, integer * ldc,
  2015. doublereal * work, integer * info, ftnlen side_len,
  2016. ftnlen trans_len);
  2017. extern int dorm2r_(char *side, char *trans, integer * m, integer * n,
  2018. integer * k, doublereal * a, integer * lda,
  2019. doublereal * tau, doublereal * c__, integer * ldc,
  2020. doublereal * work, integer * info, ftnlen side_len,
  2021. ftnlen trans_len);
  2022. extern int dormbr_(char *vect, char *side, char *trans, integer * m,
  2023. integer * n, integer * k, doublereal * a, integer * lda,
  2024. doublereal * tau, doublereal * c__, integer * ldc,
  2025. doublereal * work, integer * lwork, integer * info,
  2026. ftnlen vect_len, ftnlen side_len, ftnlen trans_len);
  2027. extern int dormhr_(char *side, char *trans, integer * m, integer * n,
  2028. integer * ilo, integer * ihi, doublereal * a,
  2029. integer * lda, doublereal * tau, doublereal * c__,
  2030. integer * ldc, doublereal * work, integer * lwork,
  2031. integer * info, ftnlen side_len, ftnlen trans_len);
  2032. extern int dorml2_(char *side, char *trans, integer * m, integer * n,
  2033. integer * k, doublereal * a, integer * lda,
  2034. doublereal * tau, doublereal * c__, integer * ldc,
  2035. doublereal * work, integer * info, ftnlen side_len,
  2036. ftnlen trans_len);
  2037. extern int dormlq_(char *side, char *trans, integer * m, integer * n,
  2038. integer * k, doublereal * a, integer * lda,
  2039. doublereal * tau, doublereal * c__, integer * ldc,
  2040. doublereal * work, integer * lwork, integer * info,
  2041. ftnlen side_len, ftnlen trans_len);
  2042. extern int dormql_(char *side, char *trans, integer * m, integer * n,
  2043. integer * k, doublereal * a, integer * lda,
  2044. doublereal * tau, doublereal * c__, integer * ldc,
  2045. doublereal * work, integer * lwork, integer * info,
  2046. ftnlen side_len, ftnlen trans_len);
  2047. extern int dormqr_(char *side, char *trans, integer * m, integer * n,
  2048. integer * k, doublereal * a, integer * lda,
  2049. doublereal * tau, doublereal * c__, integer * ldc,
  2050. doublereal * work, integer * lwork, integer * info,
  2051. ftnlen side_len, ftnlen trans_len);
  2052. extern int dormr2_(char *side, char *trans, integer * m, integer * n,
  2053. integer * k, doublereal * a, integer * lda,
  2054. doublereal * tau, doublereal * c__, integer * ldc,
  2055. doublereal * work, integer * info, ftnlen side_len,
  2056. ftnlen trans_len);
  2057. extern int dormr3_(char *side, char *trans, integer * m, integer * n,
  2058. integer * k, integer * l, doublereal * a, integer * lda,
  2059. doublereal * tau, doublereal * c__, integer * ldc,
  2060. doublereal * work, integer * info, ftnlen side_len,
  2061. ftnlen trans_len);
  2062. extern int dormrq_(char *side, char *trans, integer * m, integer * n,
  2063. integer * k, doublereal * a, integer * lda,
  2064. doublereal * tau, doublereal * c__, integer * ldc,
  2065. doublereal * work, integer * lwork, integer * info,
  2066. ftnlen side_len, ftnlen trans_len);
  2067. extern int dormrz_(char *side, char *trans, integer * m, integer * n,
  2068. integer * k, integer * l, doublereal * a, integer * lda,
  2069. doublereal * tau, doublereal * c__, integer * ldc,
  2070. doublereal * work, integer * lwork, integer * info,
  2071. ftnlen side_len, ftnlen trans_len);
  2072. extern int dormtr_(char *side, char *uplo, char *trans, integer * m,
  2073. integer * n, doublereal * a, integer * lda,
  2074. doublereal * tau, doublereal * c__, integer * ldc,
  2075. doublereal * work, integer * lwork, integer * info,
  2076. ftnlen side_len, ftnlen uplo_len, ftnlen trans_len);
  2077. extern int dpbcon_(char *uplo, integer * n, integer * kd, doublereal * ab,
  2078. integer * ldab, doublereal * anorm, doublereal * rcond,
  2079. doublereal * work, integer * iwork, integer * info,
  2080. ftnlen uplo_len);
  2081. extern int dpbequ_(char *uplo, integer * n, integer * kd, doublereal * ab,
  2082. integer * ldab, doublereal * s, doublereal * scond,
  2083. doublereal * amax, integer * info, ftnlen uplo_len);
  2084. extern int dpbrfs_(char *uplo, integer * n, integer * kd, integer * nrhs,
  2085. doublereal * ab, integer * ldab, doublereal * afb,
  2086. integer * ldafb, doublereal * b, integer * ldb,
  2087. doublereal * x, integer * ldx, doublereal * ferr,
  2088. doublereal * berr, doublereal * work, integer * iwork,
  2089. integer * info, ftnlen uplo_len);
  2090. extern int dpbstf_(char *uplo, integer * n, integer * kd, doublereal * ab,
  2091. integer * ldab, integer * info, ftnlen uplo_len);
  2092. extern int dpbsv_(char *uplo, integer * n, integer * kd, integer * nrhs,
  2093. doublereal * ab, integer * ldab, doublereal * b,
  2094. integer * ldb, integer * info, ftnlen uplo_len);
  2095. extern int dpbsvx_(char *fact, char *uplo, integer * n, integer * kd,
  2096. integer * nrhs, doublereal * ab, integer * ldab,
  2097. doublereal * afb, integer * ldafb, char *equed,
  2098. doublereal * s, doublereal * b, integer * ldb,
  2099. doublereal * x, integer * ldx, doublereal * rcond,
  2100. doublereal * ferr, doublereal * berr, doublereal * work,
  2101. integer * iwork, integer * info, ftnlen fact_len,
  2102. ftnlen uplo_len, ftnlen equed_len);
  2103. extern int dpbtf2_(char *uplo, integer * n, integer * kd, doublereal * ab,
  2104. integer * ldab, integer * info, ftnlen uplo_len);
  2105. extern int dpbtrf_(char *uplo, integer * n, integer * kd, doublereal * ab,
  2106. integer * ldab, integer * info, ftnlen uplo_len);
  2107. extern int dpbtrs_(char *uplo, integer * n, integer * kd, integer * nrhs,
  2108. doublereal * ab, integer * ldab, doublereal * b,
  2109. integer * ldb, integer * info, ftnlen uplo_len);
  2110. extern int dpocon_(char *uplo, integer * n, doublereal * a, integer * lda,
  2111. doublereal * anorm, doublereal * rcond, doublereal * work,
  2112. integer * iwork, integer * info, ftnlen uplo_len);
  2113. extern int dpoequ_(integer * n, doublereal * a, integer * lda, doublereal * s,
  2114. doublereal * scond, doublereal * amax, integer * info);
  2115. extern int dporfs_(char *uplo, integer * n, integer * nrhs, doublereal * a,
  2116. integer * lda, doublereal * af, integer * ldaf,
  2117. doublereal * b, integer * ldb, doublereal * x,
  2118. integer * ldx, doublereal * ferr, doublereal * berr,
  2119. doublereal * work, integer * iwork, integer * info,
  2120. ftnlen uplo_len);
  2121. extern int dposv_(char *uplo, integer * n, integer * nrhs, doublereal * a,
  2122. integer * lda, doublereal * b, integer * ldb,
  2123. integer * info, ftnlen uplo_len);
  2124. extern int dposvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  2125. doublereal * a, integer * lda, doublereal * af,
  2126. integer * ldaf, char *equed, doublereal * s,
  2127. doublereal * b, integer * ldb, doublereal * x,
  2128. integer * ldx, doublereal * rcond, doublereal * ferr,
  2129. doublereal * berr, doublereal * work, integer * iwork,
  2130. integer * info, ftnlen fact_len, ftnlen uplo_len,
  2131. ftnlen equed_len);
  2132. extern int dpotf2_(char *uplo, integer * n, doublereal * a, integer * lda,
  2133. integer * info, ftnlen uplo_len);
  2134. extern int dpotrf_(char *uplo, integer * n, doublereal * a, integer * lda,
  2135. integer * info, ftnlen uplo_len);
  2136. extern int dpotri_(char *uplo, integer * n, doublereal * a, integer * lda,
  2137. integer * info, ftnlen uplo_len);
  2138. extern int dpotrs_(char *uplo, integer * n, integer * nrhs, doublereal * a,
  2139. integer * lda, doublereal * b, integer * ldb,
  2140. integer * info, ftnlen uplo_len);
  2141. extern int dppcon_(char *uplo, integer * n, doublereal * ap,
  2142. doublereal * anorm, doublereal * rcond, doublereal * work,
  2143. integer * iwork, integer * info, ftnlen uplo_len);
  2144. extern int dppequ_(char *uplo, integer * n, doublereal * ap, doublereal * s,
  2145. doublereal * scond, doublereal * amax, integer * info,
  2146. ftnlen uplo_len);
  2147. extern int dpprfs_(char *uplo, integer * n, integer * nrhs, doublereal * ap,
  2148. doublereal * afp, doublereal * b, integer * ldb,
  2149. doublereal * x, integer * ldx, doublereal * ferr,
  2150. doublereal * berr, doublereal * work, integer * iwork,
  2151. integer * info, ftnlen uplo_len);
  2152. extern int dppsv_(char *uplo, integer * n, integer * nrhs, doublereal * ap,
  2153. doublereal * b, integer * ldb, integer * info,
  2154. ftnlen uplo_len);
  2155. extern int dppsvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  2156. doublereal * ap, doublereal * afp, char *equed,
  2157. doublereal * s, doublereal * b, integer * ldb,
  2158. doublereal * x, integer * ldx, doublereal * rcond,
  2159. doublereal * ferr, doublereal * berr, doublereal * work,
  2160. integer * iwork, integer * info, ftnlen fact_len,
  2161. ftnlen uplo_len, ftnlen equed_len);
  2162. extern int dpptrf_(char *uplo, integer * n, doublereal * ap, integer * info,
  2163. ftnlen uplo_len);
  2164. extern int dpptri_(char *uplo, integer * n, doublereal * ap, integer * info,
  2165. ftnlen uplo_len);
  2166. extern int dpptrs_(char *uplo, integer * n, integer * nrhs, doublereal * ap,
  2167. doublereal * b, integer * ldb, integer * info,
  2168. ftnlen uplo_len);
  2169. extern int dptcon_(integer * n, doublereal * d__, doublereal * e,
  2170. doublereal * anorm, doublereal * rcond, doublereal * work,
  2171. integer * info);
  2172. extern int dpteqr_(char *compz, integer * n, doublereal * d__, doublereal * e,
  2173. doublereal * z__, integer * ldz, doublereal * work,
  2174. integer * info, ftnlen compz_len);
  2175. extern int dptrfs_(integer * n, integer * nrhs, doublereal * d__,
  2176. doublereal * e, doublereal * df, doublereal * ef,
  2177. doublereal * b, integer * ldb, doublereal * x,
  2178. integer * ldx, doublereal * ferr, doublereal * berr,
  2179. doublereal * work, integer * info);
  2180. extern int dptsv_(integer * n, integer * nrhs, doublereal * d__,
  2181. doublereal * e, doublereal * b, integer * ldb,
  2182. integer * info);
  2183. extern int dptsvx_(char *fact, integer * n, integer * nrhs, doublereal * d__,
  2184. doublereal * e, doublereal * df, doublereal * ef,
  2185. doublereal * b, integer * ldb, doublereal * x,
  2186. integer * ldx, doublereal * rcond, doublereal * ferr,
  2187. doublereal * berr, doublereal * work, integer * info,
  2188. ftnlen fact_len);
  2189. extern int dpttrf_(integer * n, doublereal * d__, doublereal * e,
  2190. integer * info);
  2191. extern int dpttrs_(integer * n, integer * nrhs, doublereal * d__,
  2192. doublereal * e, doublereal * b, integer * ldb,
  2193. integer * info);
  2194. extern int dptts2_(integer * n, integer * nrhs, doublereal * d__,
  2195. doublereal * e, doublereal * b, integer * ldb);
  2196. extern int drscl_(integer * n, doublereal * sa, doublereal * sx,
  2197. integer * incx);
  2198. extern int dsbev_(char *jobz, char *uplo, integer * n, integer * kd,
  2199. doublereal * ab, integer * ldab, doublereal * w,
  2200. doublereal * z__, integer * ldz, doublereal * work,
  2201. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  2202. extern int dsbevd_(char *jobz, char *uplo, integer * n, integer * kd,
  2203. doublereal * ab, integer * ldab, doublereal * w,
  2204. doublereal * z__, integer * ldz, doublereal * work,
  2205. integer * lwork, integer * iwork, integer * liwork,
  2206. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  2207. extern int dsbevx_(char *jobz, char *range, char *uplo, integer * n,
  2208. integer * kd, doublereal * ab, integer * ldab,
  2209. doublereal * q, integer * ldq, doublereal * vl,
  2210. doublereal * vu, integer * il, integer * iu,
  2211. doublereal * abstol, integer * m, doublereal * w,
  2212. doublereal * z__, integer * ldz, doublereal * work,
  2213. integer * iwork, integer * ifail, integer * info,
  2214. ftnlen jobz_len, ftnlen range_len, ftnlen uplo_len);
  2215. extern int dsbgst_(char *vect, char *uplo, integer * n, integer * ka,
  2216. integer * kb, doublereal * ab, integer * ldab,
  2217. doublereal * bb, integer * ldbb, doublereal * x,
  2218. integer * ldx, doublereal * work, integer * info,
  2219. ftnlen vect_len, ftnlen uplo_len);
  2220. extern int dsbgv_(char *jobz, char *uplo, integer * n, integer * ka,
  2221. integer * kb, doublereal * ab, integer * ldab,
  2222. doublereal * bb, integer * ldbb, doublereal * w,
  2223. doublereal * z__, integer * ldz, doublereal * work,
  2224. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  2225. extern int dsbgvd_(char *jobz, char *uplo, integer * n, integer * ka,
  2226. integer * kb, doublereal * ab, integer * ldab,
  2227. doublereal * bb, integer * ldbb, doublereal * w,
  2228. doublereal * z__, integer * ldz, doublereal * work,
  2229. integer * lwork, integer * iwork, integer * liwork,
  2230. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  2231. extern int dsbgvx_(char *jobz, char *range, char *uplo, integer * n,
  2232. integer * ka, integer * kb, doublereal * ab,
  2233. integer * ldab, doublereal * bb, integer * ldbb,
  2234. doublereal * q, integer * ldq, doublereal * vl,
  2235. doublereal * vu, integer * il, integer * iu,
  2236. doublereal * abstol, integer * m, doublereal * w,
  2237. doublereal * z__, integer * ldz, doublereal * work,
  2238. integer * iwork, integer * ifail, integer * info,
  2239. ftnlen jobz_len, ftnlen range_len, ftnlen uplo_len);
  2240. extern int dsbtrd_(char *vect, char *uplo, integer * n, integer * kd,
  2241. doublereal * ab, integer * ldab, doublereal * d__,
  2242. doublereal * e, doublereal * q, integer * ldq,
  2243. doublereal * work, integer * info, ftnlen vect_len,
  2244. ftnlen uplo_len);
  2245. extern doublereal dsecnd_(void);
  2246. extern int dspcon_(char *uplo, integer * n, doublereal * ap, integer * ipiv,
  2247. doublereal * anorm, doublereal * rcond, doublereal * work,
  2248. integer * iwork, integer * info, ftnlen uplo_len);
  2249. extern int dspev_(char *jobz, char *uplo, integer * n, doublereal * ap,
  2250. doublereal * w, doublereal * z__, integer * ldz,
  2251. doublereal * work, integer * info, ftnlen jobz_len,
  2252. ftnlen uplo_len);
  2253. extern int dspevd_(char *jobz, char *uplo, integer * n, doublereal * ap,
  2254. doublereal * w, doublereal * z__, integer * ldz,
  2255. doublereal * work, integer * lwork, integer * iwork,
  2256. integer * liwork, integer * info, ftnlen jobz_len,
  2257. ftnlen uplo_len);
  2258. extern int dspevx_(char *jobz, char *range, char *uplo, integer * n,
  2259. doublereal * ap, doublereal * vl, doublereal * vu,
  2260. integer * il, integer * iu, doublereal * abstol,
  2261. integer * m, doublereal * w, doublereal * z__,
  2262. integer * ldz, doublereal * work, integer * iwork,
  2263. integer * ifail, integer * info, ftnlen jobz_len,
  2264. ftnlen range_len, ftnlen uplo_len);
  2265. extern int dspgst_(integer * itype, char *uplo, integer * n, doublereal * ap,
  2266. doublereal * bp, integer * info, ftnlen uplo_len);
  2267. extern int dspgv_(integer * itype, char *jobz, char *uplo, integer * n,
  2268. doublereal * ap, doublereal * bp, doublereal * w,
  2269. doublereal * z__, integer * ldz, doublereal * work,
  2270. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  2271. extern int dspgvd_(integer * itype, char *jobz, char *uplo, integer * n,
  2272. doublereal * ap, doublereal * bp, doublereal * w,
  2273. doublereal * z__, integer * ldz, doublereal * work,
  2274. integer * lwork, integer * iwork, integer * liwork,
  2275. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  2276. extern int dspgvx_(integer * itype, char *jobz, char *range, char *uplo,
  2277. integer * n, doublereal * ap, doublereal * bp,
  2278. doublereal * vl, doublereal * vu, integer * il,
  2279. integer * iu, doublereal * abstol, integer * m,
  2280. doublereal * w, doublereal * z__, integer * ldz,
  2281. doublereal * work, integer * iwork, integer * ifail,
  2282. integer * info, ftnlen jobz_len, ftnlen range_len,
  2283. ftnlen uplo_len);
  2284. extern int dsprfs_(char *uplo, integer * n, integer * nrhs, doublereal * ap,
  2285. doublereal * afp, integer * ipiv, doublereal * b,
  2286. integer * ldb, doublereal * x, integer * ldx,
  2287. doublereal * ferr, doublereal * berr, doublereal * work,
  2288. integer * iwork, integer * info, ftnlen uplo_len);
  2289. extern int dspsv_(char *uplo, integer * n, integer * nrhs, doublereal * ap,
  2290. integer * ipiv, doublereal * b, integer * ldb,
  2291. integer * info, ftnlen uplo_len);
  2292. extern int dspsvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  2293. doublereal * ap, doublereal * afp, integer * ipiv,
  2294. doublereal * b, integer * ldb, doublereal * x,
  2295. integer * ldx, doublereal * rcond, doublereal * ferr,
  2296. doublereal * berr, doublereal * work, integer * iwork,
  2297. integer * info, ftnlen fact_len, ftnlen uplo_len);
  2298. extern int dsptrd_(char *uplo, integer * n, doublereal * ap, doublereal * d__,
  2299. doublereal * e, doublereal * tau, integer * info,
  2300. ftnlen uplo_len);
  2301. extern int dsptrf_(char *uplo, integer * n, doublereal * ap, integer * ipiv,
  2302. integer * info, ftnlen uplo_len);
  2303. extern int dsptri_(char *uplo, integer * n, doublereal * ap, integer * ipiv,
  2304. doublereal * work, integer * info, ftnlen uplo_len);
  2305. extern int dsptrs_(char *uplo, integer * n, integer * nrhs, doublereal * ap,
  2306. integer * ipiv, doublereal * b, integer * ldb,
  2307. integer * info, ftnlen uplo_len);
  2308. extern int dstebz_(char *range, char *order, integer * n, doublereal * vl,
  2309. doublereal * vu, integer * il, integer * iu,
  2310. doublereal * abstol, doublereal * d__, doublereal * e,
  2311. integer * m, integer * nsplit, doublereal * w,
  2312. integer * iblock, integer * isplit, doublereal * work,
  2313. integer * iwork, integer * info, ftnlen range_len,
  2314. ftnlen order_len);
  2315. extern int dstedc_(char *compz, integer * n, doublereal * d__, doublereal * e,
  2316. doublereal * z__, integer * ldz, doublereal * work,
  2317. integer * lwork, integer * iwork, integer * liwork,
  2318. integer * info, ftnlen compz_len);
  2319. extern int dstegr_(char *jobz, char *range, integer * n, doublereal * d__,
  2320. doublereal * e, doublereal * vl, doublereal * vu,
  2321. integer * il, integer * iu, doublereal * abstol,
  2322. integer * m, doublereal * w, doublereal * z__,
  2323. integer * ldz, integer * isuppz, doublereal * work,
  2324. integer * lwork, integer * iwork, integer * liwork,
  2325. integer * info, ftnlen jobz_len, ftnlen range_len);
  2326. extern int dstein_(integer * n, doublereal * d__, doublereal * e, integer * m,
  2327. doublereal * w, integer * iblock, integer * isplit,
  2328. doublereal * z__, integer * ldz, doublereal * work,
  2329. integer * iwork, integer * ifail, integer * info);
  2330. extern int dsteqr_(char *compz, integer * n, doublereal * d__, doublereal * e,
  2331. doublereal * z__, integer * ldz, doublereal * work,
  2332. integer * info, ftnlen compz_len);
  2333. extern int dsterf_(integer * n, doublereal * d__, doublereal * e,
  2334. integer * info);
  2335. extern int dstev_(char *jobz, integer * n, doublereal * d__, doublereal * e,
  2336. doublereal * z__, integer * ldz, doublereal * work,
  2337. integer * info, ftnlen jobz_len);
  2338. extern int dstevd_(char *jobz, integer * n, doublereal * d__, doublereal * e,
  2339. doublereal * z__, integer * ldz, doublereal * work,
  2340. integer * lwork, integer * iwork, integer * liwork,
  2341. integer * info, ftnlen jobz_len);
  2342. extern int dstevr_(char *jobz, char *range, integer * n, doublereal * d__,
  2343. doublereal * e, doublereal * vl, doublereal * vu,
  2344. integer * il, integer * iu, doublereal * abstol,
  2345. integer * m, doublereal * w, doublereal * z__,
  2346. integer * ldz, integer * isuppz, doublereal * work,
  2347. integer * lwork, integer * iwork, integer * liwork,
  2348. integer * info, ftnlen jobz_len, ftnlen range_len);
  2349. extern int dstevx_(char *jobz, char *range, integer * n, doublereal * d__,
  2350. doublereal * e, doublereal * vl, doublereal * vu,
  2351. integer * il, integer * iu, doublereal * abstol,
  2352. integer * m, doublereal * w, doublereal * z__,
  2353. integer * ldz, doublereal * work, integer * iwork,
  2354. integer * ifail, integer * info, ftnlen jobz_len,
  2355. ftnlen range_len);
  2356. extern int dsycon_(char *uplo, integer * n, doublereal * a, integer * lda,
  2357. integer * ipiv, doublereal * anorm, doublereal * rcond,
  2358. doublereal * work, integer * iwork, integer * info,
  2359. ftnlen uplo_len);
  2360. extern int dsyev_(char *jobz, char *uplo, integer * n, doublereal * a,
  2361. integer * lda, doublereal * w, doublereal * work,
  2362. integer * lwork, integer * info, ftnlen jobz_len,
  2363. ftnlen uplo_len);
  2364. extern int dsyevd_(char *jobz, char *uplo, integer * n, doublereal * a,
  2365. integer * lda, doublereal * w, doublereal * work,
  2366. integer * lwork, integer * iwork, integer * liwork,
  2367. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  2368. extern int dsyevr_(char *jobz, char *range, char *uplo, integer * n,
  2369. doublereal * a, integer * lda, doublereal * vl,
  2370. doublereal * vu, integer * il, integer * iu,
  2371. doublereal * abstol, integer * m, doublereal * w,
  2372. doublereal * z__, integer * ldz, integer * isuppz,
  2373. doublereal * work, integer * lwork, integer * iwork,
  2374. integer * liwork, integer * info, ftnlen jobz_len,
  2375. ftnlen range_len, ftnlen uplo_len);
  2376. extern int dsyevx_(char *jobz, char *range, char *uplo, integer * n,
  2377. doublereal * a, integer * lda, doublereal * vl,
  2378. doublereal * vu, integer * il, integer * iu,
  2379. doublereal * abstol, integer * m, doublereal * w,
  2380. doublereal * z__, integer * ldz, doublereal * work,
  2381. integer * lwork, integer * iwork, integer * ifail,
  2382. integer * info, ftnlen jobz_len, ftnlen range_len,
  2383. ftnlen uplo_len);
  2384. extern int dsygs2_(integer * itype, char *uplo, integer * n, doublereal * a,
  2385. integer * lda, doublereal * b, integer * ldb,
  2386. integer * info, ftnlen uplo_len);
  2387. extern int dsygst_(integer * itype, char *uplo, integer * n, doublereal * a,
  2388. integer * lda, doublereal * b, integer * ldb,
  2389. integer * info, ftnlen uplo_len);
  2390. extern int dsygv_(integer * itype, char *jobz, char *uplo, integer * n,
  2391. doublereal * a, integer * lda, doublereal * b,
  2392. integer * ldb, doublereal * w, doublereal * work,
  2393. integer * lwork, integer * info, ftnlen jobz_len,
  2394. ftnlen uplo_len);
  2395. extern int dsygvd_(integer * itype, char *jobz, char *uplo, integer * n,
  2396. doublereal * a, integer * lda, doublereal * b,
  2397. integer * ldb, doublereal * w, doublereal * work,
  2398. integer * lwork, integer * iwork, integer * liwork,
  2399. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  2400. extern int dsygvx_(integer * itype, char *jobz, char *range, char *uplo,
  2401. integer * n, doublereal * a, integer * lda, doublereal * b,
  2402. integer * ldb, doublereal * vl, doublereal * vu,
  2403. integer * il, integer * iu, doublereal * abstol,
  2404. integer * m, doublereal * w, doublereal * z__,
  2405. integer * ldz, doublereal * work, integer * lwork,
  2406. integer * iwork, integer * ifail, integer * info,
  2407. ftnlen jobz_len, ftnlen range_len, ftnlen uplo_len);
  2408. extern int dsyrfs_(char *uplo, integer * n, integer * nrhs, doublereal * a,
  2409. integer * lda, doublereal * af, integer * ldaf,
  2410. integer * ipiv, doublereal * b, integer * ldb,
  2411. doublereal * x, integer * ldx, doublereal * ferr,
  2412. doublereal * berr, doublereal * work, integer * iwork,
  2413. integer * info, ftnlen uplo_len);
  2414. extern int dsysv_(char *uplo, integer * n, integer * nrhs, doublereal * a,
  2415. integer * lda, integer * ipiv, doublereal * b,
  2416. integer * ldb, doublereal * work, integer * lwork,
  2417. integer * info, ftnlen uplo_len);
  2418. extern int dsysvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  2419. doublereal * a, integer * lda, doublereal * af,
  2420. integer * ldaf, integer * ipiv, doublereal * b,
  2421. integer * ldb, doublereal * x, integer * ldx,
  2422. doublereal * rcond, doublereal * ferr, doublereal * berr,
  2423. doublereal * work, integer * lwork, integer * iwork,
  2424. integer * info, ftnlen fact_len, ftnlen uplo_len);
  2425. extern int dsytd2_(char *uplo, integer * n, doublereal * a, integer * lda,
  2426. doublereal * d__, doublereal * e, doublereal * tau,
  2427. integer * info, ftnlen uplo_len);
  2428. extern int dsytf2_(char *uplo, integer * n, doublereal * a, integer * lda,
  2429. integer * ipiv, integer * info, ftnlen uplo_len);
  2430. extern int dsytrd_(char *uplo, integer * n, doublereal * a, integer * lda,
  2431. doublereal * d__, doublereal * e, doublereal * tau,
  2432. doublereal * work, integer * lwork, integer * info,
  2433. ftnlen uplo_len);
  2434. extern int dsytrf_(char *uplo, integer * n, doublereal * a, integer * lda,
  2435. integer * ipiv, doublereal * work, integer * lwork,
  2436. integer * info, ftnlen uplo_len);
  2437. extern int dsytri_(char *uplo, integer * n, doublereal * a, integer * lda,
  2438. integer * ipiv, doublereal * work, integer * info,
  2439. ftnlen uplo_len);
  2440. extern int dsytrs_(char *uplo, integer * n, integer * nrhs, doublereal * a,
  2441. integer * lda, integer * ipiv, doublereal * b,
  2442. integer * ldb, integer * info, ftnlen uplo_len);
  2443. extern int dtbcon_(char *norm, char *uplo, char *diag, integer * n,
  2444. integer * kd, doublereal * ab, integer * ldab,
  2445. doublereal * rcond, doublereal * work, integer * iwork,
  2446. integer * info, ftnlen norm_len, ftnlen uplo_len,
  2447. ftnlen diag_len);
  2448. extern int dtbrfs_(char *uplo, char *trans, char *diag, integer * n,
  2449. integer * kd, integer * nrhs, doublereal * ab,
  2450. integer * ldab, doublereal * b, integer * ldb,
  2451. doublereal * x, integer * ldx, doublereal * ferr,
  2452. doublereal * berr, doublereal * work, integer * iwork,
  2453. integer * info, ftnlen uplo_len, ftnlen trans_len,
  2454. ftnlen diag_len);
  2455. extern int dtbtrs_(char *uplo, char *trans, char *diag, integer * n,
  2456. integer * kd, integer * nrhs, doublereal * ab,
  2457. integer * ldab, doublereal * b, integer * ldb,
  2458. integer * info, ftnlen uplo_len, ftnlen trans_len,
  2459. ftnlen diag_len);
  2460. extern int dtgevc_(char *side, char *howmny, logical * select, integer * n,
  2461. doublereal * a, integer * lda, doublereal * b,
  2462. integer * ldb, doublereal * vl, integer * ldvl,
  2463. doublereal * vr, integer * ldvr, integer * mm, integer * m,
  2464. doublereal * work, integer * info, ftnlen side_len,
  2465. ftnlen howmny_len);
  2466. extern int dtgex2_(logical * wantq, logical * wantz, integer * n,
  2467. doublereal * a, integer * lda, doublereal * b,
  2468. integer * ldb, doublereal * q, integer * ldq,
  2469. doublereal * z__, integer * ldz, integer * j1,
  2470. integer * n1, integer * n2, doublereal * work,
  2471. integer * lwork, integer * info);
  2472. extern int dtgexc_(logical * wantq, logical * wantz, integer * n,
  2473. doublereal * a, integer * lda, doublereal * b,
  2474. integer * ldb, doublereal * q, integer * ldq,
  2475. doublereal * z__, integer * ldz, integer * ifst,
  2476. integer * ilst, doublereal * work, integer * lwork,
  2477. integer * info);
  2478. extern int dtgsen_(integer * ijob, logical * wantq, logical * wantz,
  2479. logical * select, integer * n, doublereal * a,
  2480. integer * lda, doublereal * b, integer * ldb,
  2481. doublereal * alphar, doublereal * alphai,
  2482. doublereal * beta, doublereal * q, integer * ldq,
  2483. doublereal * z__, integer * ldz, integer * m,
  2484. doublereal * pl, doublereal * pr, doublereal * dif,
  2485. doublereal * work, integer * lwork, integer * iwork,
  2486. integer * liwork, integer * info);
  2487. extern int dtgsja_(char *jobu, char *jobv, char *jobq, integer * m,
  2488. integer * p, integer * n, integer * k, integer * l,
  2489. doublereal * a, integer * lda, doublereal * b,
  2490. integer * ldb, doublereal * tola, doublereal * tolb,
  2491. doublereal * alpha, doublereal * beta, doublereal * u,
  2492. integer * ldu, doublereal * v, integer * ldv,
  2493. doublereal * q, integer * ldq, doublereal * work,
  2494. integer * ncycle, integer * info, ftnlen jobu_len,
  2495. ftnlen jobv_len, ftnlen jobq_len);
  2496. extern int dtgsna_(char *job, char *howmny, logical * select, integer * n,
  2497. doublereal * a, integer * lda, doublereal * b,
  2498. integer * ldb, doublereal * vl, integer * ldvl,
  2499. doublereal * vr, integer * ldvr, doublereal * s,
  2500. doublereal * dif, integer * mm, integer * m,
  2501. doublereal * work, integer * lwork, integer * iwork,
  2502. integer * info, ftnlen job_len, ftnlen howmny_len);
  2503. extern int dtgsy2_(char *trans, integer * ijob, integer * m, integer * n,
  2504. doublereal * a, integer * lda, doublereal * b,
  2505. integer * ldb, doublereal * c__, integer * ldc,
  2506. doublereal * d__, integer * ldd, doublereal * e,
  2507. integer * lde, doublereal * f, integer * ldf,
  2508. doublereal * scale, doublereal * rdsum,
  2509. doublereal * rdscal, integer * iwork, integer * pq,
  2510. integer * info, ftnlen trans_len);
  2511. extern int dtgsyl_(char *trans, integer * ijob, integer * m, integer * n,
  2512. doublereal * a, integer * lda, doublereal * b,
  2513. integer * ldb, doublereal * c__, integer * ldc,
  2514. doublereal * d__, integer * ldd, doublereal * e,
  2515. integer * lde, doublereal * f, integer * ldf,
  2516. doublereal * scale, doublereal * dif, doublereal * work,
  2517. integer * lwork, integer * iwork, integer * info,
  2518. ftnlen trans_len);
  2519. extern int dtpcon_(char *norm, char *uplo, char *diag, integer * n,
  2520. doublereal * ap, doublereal * rcond, doublereal * work,
  2521. integer * iwork, integer * info, ftnlen norm_len,
  2522. ftnlen uplo_len, ftnlen diag_len);
  2523. extern int dtprfs_(char *uplo, char *trans, char *diag, integer * n,
  2524. integer * nrhs, doublereal * ap, doublereal * b,
  2525. integer * ldb, doublereal * x, integer * ldx,
  2526. doublereal * ferr, doublereal * berr, doublereal * work,
  2527. integer * iwork, integer * info, ftnlen uplo_len,
  2528. ftnlen trans_len, ftnlen diag_len);
  2529. extern int dtptri_(char *uplo, char *diag, integer * n, doublereal * ap,
  2530. integer * info, ftnlen uplo_len, ftnlen diag_len);
  2531. extern int dtptrs_(char *uplo, char *trans, char *diag, integer * n,
  2532. integer * nrhs, doublereal * ap, doublereal * b,
  2533. integer * ldb, integer * info, ftnlen uplo_len,
  2534. ftnlen trans_len, ftnlen diag_len);
  2535. extern int dtrcon_(char *norm, char *uplo, char *diag, integer * n,
  2536. doublereal * a, integer * lda, doublereal * rcond,
  2537. doublereal * work, integer * iwork, integer * info,
  2538. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  2539. extern int dtrevc_(char *side, char *howmny, logical * select, integer * n,
  2540. doublereal * t, integer * ldt, doublereal * vl,
  2541. integer * ldvl, doublereal * vr, integer * ldvr,
  2542. integer * mm, integer * m, doublereal * work,
  2543. integer * info, ftnlen side_len, ftnlen howmny_len);
  2544. extern int dtrexc_(char *compq, integer * n, doublereal * t, integer * ldt,
  2545. doublereal * q, integer * ldq, integer * ifst,
  2546. integer * ilst, doublereal * work, integer * info,
  2547. ftnlen compq_len);
  2548. extern int dtrrfs_(char *uplo, char *trans, char *diag, integer * n,
  2549. integer * nrhs, doublereal * a, integer * lda,
  2550. doublereal * b, integer * ldb, doublereal * x,
  2551. integer * ldx, doublereal * ferr, doublereal * berr,
  2552. doublereal * work, integer * iwork, integer * info,
  2553. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len);
  2554. extern int dtrsen_(char *job, char *compq, logical * select, integer * n,
  2555. doublereal * t, integer * ldt, doublereal * q,
  2556. integer * ldq, doublereal * wr, doublereal * wi,
  2557. integer * m, doublereal * s, doublereal * sep,
  2558. doublereal * work, integer * lwork, integer * iwork,
  2559. integer * liwork, integer * info, ftnlen job_len,
  2560. ftnlen compq_len);
  2561. extern int dtrsna_(char *job, char *howmny, logical * select, integer * n,
  2562. doublereal * t, integer * ldt, doublereal * vl,
  2563. integer * ldvl, doublereal * vr, integer * ldvr,
  2564. doublereal * s, doublereal * sep, integer * mm,
  2565. integer * m, doublereal * work, integer * ldwork,
  2566. integer * iwork, integer * info, ftnlen job_len,
  2567. ftnlen howmny_len);
  2568. extern int dtrsyl_(char *trana, char *tranb, integer * isgn, integer * m,
  2569. integer * n, doublereal * a, integer * lda, doublereal * b,
  2570. integer * ldb, doublereal * c__, integer * ldc,
  2571. doublereal * scale, integer * info, ftnlen trana_len,
  2572. ftnlen tranb_len);
  2573. extern int dtrti2_(char *uplo, char *diag, integer * n, doublereal * a,
  2574. integer * lda, integer * info, ftnlen uplo_len,
  2575. ftnlen diag_len);
  2576. extern int dtrtri_(char *uplo, char *diag, integer * n, doublereal * a,
  2577. integer * lda, integer * info, ftnlen uplo_len,
  2578. ftnlen diag_len);
  2579. extern int dtrtrs_(char *uplo, char *trans, char *diag, integer * n,
  2580. integer * nrhs, doublereal * a, integer * lda,
  2581. doublereal * b, integer * ldb, integer * info,
  2582. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len);
  2583. extern int dtzrqf_(integer * m, integer * n, doublereal * a, integer * lda,
  2584. doublereal * tau, integer * info);
  2585. extern int dtzrzf_(integer * m, integer * n, doublereal * a, integer * lda,
  2586. doublereal * tau, doublereal * work, integer * lwork,
  2587. integer * info);
  2588. extern doublereal dzsum1_(integer * n, doublecomplex * cx, integer * incx);
  2589. extern integer icmax1_(integer * n, complex * cx, integer * incx);
  2590. extern integer ieeeck_(integer * ispec, real * zero, real * one);
  2591. extern integer ilaenv_(integer * ispec, char *name__, char *opts,
  2592. integer * n1, integer * n2, integer * n3, integer * n4,
  2593. ftnlen name_len, ftnlen opts_len);
  2594. extern integer izmax1_(integer * n, doublecomplex * cx, integer * incx);
  2595. extern logical lsame_(char *ca, char *cb, ftnlen ca_len, ftnlen cb_len);
  2596. extern logical lsamen_(integer * n, char *ca, char *cb, ftnlen ca_len,
  2597. ftnlen cb_len);
  2598. extern int sbdsdc_(char *uplo, char *compq, integer * n, real * d__, real * e,
  2599. real * u, integer * ldu, real * vt, integer * ldvt,
  2600. real * q, integer * iq, real * work, integer * iwork,
  2601. integer * info, ftnlen uplo_len, ftnlen compq_len);
  2602. extern int sbdsqr_(char *uplo, integer * n, integer * ncvt, integer * nru,
  2603. integer * ncc, real * d__, real * e, real * vt,
  2604. integer * ldvt, real * u, integer * ldu, real * c__,
  2605. integer * ldc, real * work, integer * info,
  2606. ftnlen uplo_len);
  2607. extern E_f scsum1_(integer * n, complex * cx, integer * incx);
  2608. extern int sdisna_(char *job, integer * m, integer * n, real * d__,
  2609. real * sep, integer * info, ftnlen job_len);
  2610. extern E_f second_(void);
  2611. extern int sgbbrd_(char *vect, integer * m, integer * n, integer * ncc,
  2612. integer * kl, integer * ku, real * ab, integer * ldab,
  2613. real * d__, real * e, real * q, integer * ldq, real * pt,
  2614. integer * ldpt, real * c__, integer * ldc, real * work,
  2615. integer * info, ftnlen vect_len);
  2616. extern int sgbcon_(char *norm, integer * n, integer * kl, integer * ku,
  2617. real * ab, integer * ldab, integer * ipiv, real * anorm,
  2618. real * rcond, real * work, integer * iwork, integer * info,
  2619. ftnlen norm_len);
  2620. extern int sgbequ_(integer * m, integer * n, integer * kl, integer * ku,
  2621. real * ab, integer * ldab, real * r__, real * c__,
  2622. real * rowcnd, real * colcnd, real * amax, integer * info);
  2623. extern int sgbrfs_(char *trans, integer * n, integer * kl, integer * ku,
  2624. integer * nrhs, real * ab, integer * ldab, real * afb,
  2625. integer * ldafb, integer * ipiv, real * b, integer * ldb,
  2626. real * x, integer * ldx, real * ferr, real * berr,
  2627. real * work, integer * iwork, integer * info,
  2628. ftnlen trans_len);
  2629. extern int sgbsv_(integer * n, integer * kl, integer * ku, integer * nrhs,
  2630. real * ab, integer * ldab, integer * ipiv, real * b,
  2631. integer * ldb, integer * info);
  2632. extern int sgbsvx_(char *fact, char *trans, integer * n, integer * kl,
  2633. integer * ku, integer * nrhs, real * ab, integer * ldab,
  2634. real * afb, integer * ldafb, integer * ipiv, char *equed,
  2635. real * r__, real * c__, real * b, integer * ldb, real * x,
  2636. integer * ldx, real * rcond, real * ferr, real * berr,
  2637. real * work, integer * iwork, integer * info,
  2638. ftnlen fact_len, ftnlen trans_len, ftnlen equed_len);
  2639. extern int sgbtf2_(integer * m, integer * n, integer * kl, integer * ku,
  2640. real * ab, integer * ldab, integer * ipiv, integer * info);
  2641. extern int sgbtrf_(integer * m, integer * n, integer * kl, integer * ku,
  2642. real * ab, integer * ldab, integer * ipiv, integer * info);
  2643. extern int sgbtrs_(char *trans, integer * n, integer * kl, integer * ku,
  2644. integer * nrhs, real * ab, integer * ldab, integer * ipiv,
  2645. real * b, integer * ldb, integer * info, ftnlen trans_len);
  2646. extern int sgebak_(char *job, char *side, integer * n, integer * ilo,
  2647. integer * ihi, real * scale, integer * m, real * v,
  2648. integer * ldv, integer * info, ftnlen job_len,
  2649. ftnlen side_len);
  2650. extern int sgebal_(char *job, integer * n, real * a, integer * lda,
  2651. integer * ilo, integer * ihi, real * scale, integer * info,
  2652. ftnlen job_len);
  2653. extern int sgebd2_(integer * m, integer * n, real * a, integer * lda,
  2654. real * d__, real * e, real * tauq, real * taup,
  2655. real * work, integer * info);
  2656. extern int sgebrd_(integer * m, integer * n, real * a, integer * lda,
  2657. real * d__, real * e, real * tauq, real * taup,
  2658. real * work, integer * lwork, integer * info);
  2659. extern int sgecon_(char *norm, integer * n, real * a, integer * lda,
  2660. real * anorm, real * rcond, real * work, integer * iwork,
  2661. integer * info, ftnlen norm_len);
  2662. extern int sgeequ_(integer * m, integer * n, real * a, integer * lda,
  2663. real * r__, real * c__, real * rowcnd, real * colcnd,
  2664. real * amax, integer * info);
  2665. extern int sgees_(char *jobvs, char *sort, L_fp select, integer * n, real * a,
  2666. integer * lda, integer * sdim, real * wr, real * wi,
  2667. real * vs, integer * ldvs, real * work, integer * lwork,
  2668. logical * bwork, integer * info, ftnlen jobvs_len,
  2669. ftnlen sort_len);
  2670. extern int sgeesx_(char *jobvs, char *sort, L_fp select, char *sense,
  2671. integer * n, real * a, integer * lda, integer * sdim,
  2672. real * wr, real * wi, real * vs, integer * ldvs,
  2673. real * rconde, real * rcondv, real * work, integer * lwork,
  2674. integer * iwork, integer * liwork, logical * bwork,
  2675. integer * info, ftnlen jobvs_len, ftnlen sort_len,
  2676. ftnlen sense_len);
  2677. extern int sgeev_(char *jobvl, char *jobvr, integer * n, real * a,
  2678. integer * lda, real * wr, real * wi, real * vl,
  2679. integer * ldvl, real * vr, integer * ldvr, real * work,
  2680. integer * lwork, integer * info, ftnlen jobvl_len,
  2681. ftnlen jobvr_len);
  2682. extern int sgeevx_(char *balanc, char *jobvl, char *jobvr, char *sense,
  2683. integer * n, real * a, integer * lda, real * wr, real * wi,
  2684. real * vl, integer * ldvl, real * vr, integer * ldvr,
  2685. integer * ilo, integer * ihi, real * scale, real * abnrm,
  2686. real * rconde, real * rcondv, real * work, integer * lwork,
  2687. integer * iwork, integer * info, ftnlen balanc_len,
  2688. ftnlen jobvl_len, ftnlen jobvr_len, ftnlen sense_len);
  2689. extern int sgegs_(char *jobvsl, char *jobvsr, integer * n, real * a,
  2690. integer * lda, real * b, integer * ldb, real * alphar,
  2691. real * alphai, real * beta, real * vsl, integer * ldvsl,
  2692. real * vsr, integer * ldvsr, real * work, integer * lwork,
  2693. integer * info, ftnlen jobvsl_len, ftnlen jobvsr_len);
  2694. extern int sgegv_(char *jobvl, char *jobvr, integer * n, real * a,
  2695. integer * lda, real * b, integer * ldb, real * alphar,
  2696. real * alphai, real * beta, real * vl, integer * ldvl,
  2697. real * vr, integer * ldvr, real * work, integer * lwork,
  2698. integer * info, ftnlen jobvl_len, ftnlen jobvr_len);
  2699. extern int sgehd2_(integer * n, integer * ilo, integer * ihi, real * a,
  2700. integer * lda, real * tau, real * work, integer * info);
  2701. extern int sgehrd_(integer * n, integer * ilo, integer * ihi, real * a,
  2702. integer * lda, real * tau, real * work, integer * lwork,
  2703. integer * info);
  2704. extern int sgelq2_(integer * m, integer * n, real * a, integer * lda,
  2705. real * tau, real * work, integer * info);
  2706. extern int sgelqf_(integer * m, integer * n, real * a, integer * lda,
  2707. real * tau, real * work, integer * lwork, integer * info);
  2708. extern int sgels_(char *trans, integer * m, integer * n, integer * nrhs,
  2709. real * a, integer * lda, real * b, integer * ldb,
  2710. real * work, integer * lwork, integer * info,
  2711. ftnlen trans_len);
  2712. extern int sgelsd_(integer * m, integer * n, integer * nrhs, real * a,
  2713. integer * lda, real * b, integer * ldb, real * s,
  2714. real * rcond, integer * rank, real * work, integer * lwork,
  2715. integer * iwork, integer * info);
  2716. extern int sgelss_(integer * m, integer * n, integer * nrhs, real * a,
  2717. integer * lda, real * b, integer * ldb, real * s,
  2718. real * rcond, integer * rank, real * work, integer * lwork,
  2719. integer * info);
  2720. extern int sgelsx_(integer * m, integer * n, integer * nrhs, real * a,
  2721. integer * lda, real * b, integer * ldb, integer * jpvt,
  2722. real * rcond, integer * rank, real * work, integer * info);
  2723. extern int sgelsy_(integer * m, integer * n, integer * nrhs, real * a,
  2724. integer * lda, real * b, integer * ldb, integer * jpvt,
  2725. real * rcond, integer * rank, real * work, integer * lwork,
  2726. integer * info);
  2727. extern int sgeql2_(integer * m, integer * n, real * a, integer * lda,
  2728. real * tau, real * work, integer * info);
  2729. extern int sgeqlf_(integer * m, integer * n, real * a, integer * lda,
  2730. real * tau, real * work, integer * lwork, integer * info);
  2731. extern int sgeqp3_(integer * m, integer * n, real * a, integer * lda,
  2732. integer * jpvt, real * tau, real * work, integer * lwork,
  2733. integer * info);
  2734. extern int sgeqpf_(integer * m, integer * n, real * a, integer * lda,
  2735. integer * jpvt, real * tau, real * work, integer * info);
  2736. extern int sgeqr2_(integer * m, integer * n, real * a, integer * lda,
  2737. real * tau, real * work, integer * info);
  2738. extern int sgeqrf_(integer * m, integer * n, real * a, integer * lda,
  2739. real * tau, real * work, integer * lwork, integer * info);
  2740. extern int sgerfs_(char *trans, integer * n, integer * nrhs, real * a,
  2741. integer * lda, real * af, integer * ldaf, integer * ipiv,
  2742. real * b, integer * ldb, real * x, integer * ldx,
  2743. real * ferr, real * berr, real * work, integer * iwork,
  2744. integer * info, ftnlen trans_len);
  2745. extern int sgerq2_(integer * m, integer * n, real * a, integer * lda,
  2746. real * tau, real * work, integer * info);
  2747. extern int sgerqf_(integer * m, integer * n, real * a, integer * lda,
  2748. real * tau, real * work, integer * lwork, integer * info);
  2749. extern int sgesc2_(integer * n, real * a, integer * lda, real * rhs,
  2750. integer * ipiv, integer * jpiv, real * scale);
  2751. extern int sgesdd_(char *jobz, integer * m, integer * n, real * a,
  2752. integer * lda, real * s, real * u, integer * ldu,
  2753. real * vt, integer * ldvt, real * work, integer * lwork,
  2754. integer * iwork, integer * info, ftnlen jobz_len);
  2755. extern int sgesv_(integer * n, integer * nrhs, real * a, integer * lda,
  2756. integer * ipiv, real * b, integer * ldb, integer * info);
  2757. extern int sgesvd_(char *jobu, char *jobvt, integer * m, integer * n,
  2758. real * a, integer * lda, real * s, real * u, integer * ldu,
  2759. real * vt, integer * ldvt, real * work, integer * lwork,
  2760. integer * info, ftnlen jobu_len, ftnlen jobvt_len);
  2761. extern int sgesvx_(char *fact, char *trans, integer * n, integer * nrhs,
  2762. real * a, integer * lda, real * af, integer * ldaf,
  2763. integer * ipiv, char *equed, real * r__, real * c__,
  2764. real * b, integer * ldb, real * x, integer * ldx,
  2765. real * rcond, real * ferr, real * berr, real * work,
  2766. integer * iwork, integer * info, ftnlen fact_len,
  2767. ftnlen trans_len, ftnlen equed_len);
  2768. extern int sgetc2_(integer * n, real * a, integer * lda, integer * ipiv,
  2769. integer * jpiv, integer * info);
  2770. extern int sgetf2_(integer * m, integer * n, real * a, integer * lda,
  2771. integer * ipiv, integer * info);
  2772. extern int sgetrf_(integer * m, integer * n, real * a, integer * lda,
  2773. integer * ipiv, integer * info);
  2774. extern int sgetri_(integer * n, real * a, integer * lda, integer * ipiv,
  2775. real * work, integer * lwork, integer * info);
  2776. extern int sgetrs_(char *trans, integer * n, integer * nrhs, real * a,
  2777. integer * lda, integer * ipiv, real * b, integer * ldb,
  2778. integer * info, ftnlen trans_len);
  2779. extern int sggbak_(char *job, char *side, integer * n, integer * ilo,
  2780. integer * ihi, real * lscale, real * rscale, integer * m,
  2781. real * v, integer * ldv, integer * info, ftnlen job_len,
  2782. ftnlen side_len);
  2783. extern int sggbal_(char *job, integer * n, real * a, integer * lda, real * b,
  2784. integer * ldb, integer * ilo, integer * ihi, real * lscale,
  2785. real * rscale, real * work, integer * info,
  2786. ftnlen job_len);
  2787. extern int sgges_(char *jobvsl, char *jobvsr, char *sort, L_fp selctg,
  2788. integer * n, real * a, integer * lda, real * b,
  2789. integer * ldb, integer * sdim, real * alphar, real * alphai,
  2790. real * beta, real * vsl, integer * ldvsl, real * vsr,
  2791. integer * ldvsr, real * work, integer * lwork,
  2792. logical * bwork, integer * info, ftnlen jobvsl_len,
  2793. ftnlen jobvsr_len, ftnlen sort_len);
  2794. extern int sggesx_(char *jobvsl, char *jobvsr, char *sort, L_fp selctg,
  2795. char *sense, integer * n, real * a, integer * lda,
  2796. real * b, integer * ldb, integer * sdim, real * alphar,
  2797. real * alphai, real * beta, real * vsl, integer * ldvsl,
  2798. real * vsr, integer * ldvsr, real * rconde, real * rcondv,
  2799. real * work, integer * lwork, integer * iwork,
  2800. integer * liwork, logical * bwork, integer * info,
  2801. ftnlen jobvsl_len, ftnlen jobvsr_len, ftnlen sort_len,
  2802. ftnlen sense_len);
  2803. extern int sggev_(char *jobvl, char *jobvr, integer * n, real * a,
  2804. integer * lda, real * b, integer * ldb, real * alphar,
  2805. real * alphai, real * beta, real * vl, integer * ldvl,
  2806. real * vr, integer * ldvr, real * work, integer * lwork,
  2807. integer * info, ftnlen jobvl_len, ftnlen jobvr_len);
  2808. extern int sggevx_(char *balanc, char *jobvl, char *jobvr, char *sense,
  2809. integer * n, real * a, integer * lda, real * b,
  2810. integer * ldb, real * alphar, real * alphai, real * beta,
  2811. real * vl, integer * ldvl, real * vr, integer * ldvr,
  2812. integer * ilo, integer * ihi, real * lscale, real * rscale,
  2813. real * abnrm, real * bbnrm, real * rconde, real * rcondv,
  2814. real * work, integer * lwork, integer * iwork,
  2815. logical * bwork, integer * info, ftnlen balanc_len,
  2816. ftnlen jobvl_len, ftnlen jobvr_len, ftnlen sense_len);
  2817. extern int sggglm_(integer * n, integer * m, integer * p, real * a,
  2818. integer * lda, real * b, integer * ldb, real * d__,
  2819. real * x, real * y, real * work, integer * lwork,
  2820. integer * info);
  2821. extern int sgghrd_(char *compq, char *compz, integer * n, integer * ilo,
  2822. integer * ihi, real * a, integer * lda, real * b,
  2823. integer * ldb, real * q, integer * ldq, real * z__,
  2824. integer * ldz, integer * info, ftnlen compq_len,
  2825. ftnlen compz_len);
  2826. extern int sgglse_(integer * m, integer * n, integer * p, real * a,
  2827. integer * lda, real * b, integer * ldb, real * c__,
  2828. real * d__, real * x, real * work, integer * lwork,
  2829. integer * info);
  2830. extern int sggqrf_(integer * n, integer * m, integer * p, real * a,
  2831. integer * lda, real * taua, real * b, integer * ldb,
  2832. real * taub, real * work, integer * lwork, integer * info);
  2833. extern int sggrqf_(integer * m, integer * p, integer * n, real * a,
  2834. integer * lda, real * taua, real * b, integer * ldb,
  2835. real * taub, real * work, integer * lwork, integer * info);
  2836. extern int sggsvd_(char *jobu, char *jobv, char *jobq, integer * m,
  2837. integer * n, integer * p, integer * k, integer * l,
  2838. real * a, integer * lda, real * b, integer * ldb,
  2839. real * alpha, real * beta, real * u, integer * ldu,
  2840. real * v, integer * ldv, real * q, integer * ldq,
  2841. real * work, integer * iwork, integer * info,
  2842. ftnlen jobu_len, ftnlen jobv_len, ftnlen jobq_len);
  2843. extern int sggsvp_(char *jobu, char *jobv, char *jobq, integer * m,
  2844. integer * p, integer * n, real * a, integer * lda,
  2845. real * b, integer * ldb, real * tola, real * tolb,
  2846. integer * k, integer * l, real * u, integer * ldu,
  2847. real * v, integer * ldv, real * q, integer * ldq,
  2848. integer * iwork, real * tau, real * work, integer * info,
  2849. ftnlen jobu_len, ftnlen jobv_len, ftnlen jobq_len);
  2850. extern int sgtcon_(char *norm, integer * n, real * dl, real * d__, real * du,
  2851. real * du2, integer * ipiv, real * anorm, real * rcond,
  2852. real * work, integer * iwork, integer * info,
  2853. ftnlen norm_len);
  2854. extern int sgtrfs_(char *trans, integer * n, integer * nrhs, real * dl,
  2855. real * d__, real * du, real * dlf, real * df, real * duf,
  2856. real * du2, integer * ipiv, real * b, integer * ldb,
  2857. real * x, integer * ldx, real * ferr, real * berr,
  2858. real * work, integer * iwork, integer * info,
  2859. ftnlen trans_len);
  2860. extern int sgtsv_(integer * n, integer * nrhs, real * dl, real * d__,
  2861. real * du, real * b, integer * ldb, integer * info);
  2862. extern int sgtsvx_(char *fact, char *trans, integer * n, integer * nrhs,
  2863. real * dl, real * d__, real * du, real * dlf, real * df,
  2864. real * duf, real * du2, integer * ipiv, real * b,
  2865. integer * ldb, real * x, integer * ldx, real * rcond,
  2866. real * ferr, real * berr, real * work, integer * iwork,
  2867. integer * info, ftnlen fact_len, ftnlen trans_len);
  2868. extern int sgttrf_(integer * n, real * dl, real * d__, real * du, real * du2,
  2869. integer * ipiv, integer * info);
  2870. extern int sgttrs_(char *trans, integer * n, integer * nrhs, real * dl,
  2871. real * d__, real * du, real * du2, integer * ipiv,
  2872. real * b, integer * ldb, integer * info, ftnlen trans_len);
  2873. extern int sgtts2_(integer * itrans, integer * n, integer * nrhs, real * dl,
  2874. real * d__, real * du, real * du2, integer * ipiv,
  2875. real * b, integer * ldb);
  2876. extern int shgeqz_(char *job, char *compq, char *compz, integer * n,
  2877. integer * ilo, integer * ihi, real * a, integer * lda,
  2878. real * b, integer * ldb, real * alphar, real * alphai,
  2879. real * beta, real * q, integer * ldq, real * z__,
  2880. integer * ldz, real * work, integer * lwork,
  2881. integer * info, ftnlen job_len, ftnlen compq_len,
  2882. ftnlen compz_len);
  2883. extern int shsein_(char *side, char *eigsrc, char *initv, logical * select,
  2884. integer * n, real * h__, integer * ldh, real * wr,
  2885. real * wi, real * vl, integer * ldvl, real * vr,
  2886. integer * ldvr, integer * mm, integer * m, real * work,
  2887. integer * ifaill, integer * ifailr, integer * info,
  2888. ftnlen side_len, ftnlen eigsrc_len, ftnlen initv_len);
  2889. extern int shseqr_(char *job, char *compz, integer * n, integer * ilo,
  2890. integer * ihi, real * h__, integer * ldh, real * wr,
  2891. real * wi, real * z__, integer * ldz, real * work,
  2892. integer * lwork, integer * info, ftnlen job_len,
  2893. ftnlen compz_len);
  2894. extern int slabad_(real * small, real * large);
  2895. extern int slabrd_(integer * m, integer * n, integer * nb, real * a,
  2896. integer * lda, real * d__, real * e, real * tauq,
  2897. real * taup, real * x, integer * ldx, real * y,
  2898. integer * ldy);
  2899. extern int slacon_(integer * n, real * v, real * x, integer * isgn,
  2900. real * est, integer * kase);
  2901. extern int slacpy_(char *uplo, integer * m, integer * n, real * a,
  2902. integer * lda, real * b, integer * ldb, ftnlen uplo_len);
  2903. extern int sladiv_(real * a, real * b, real * c__, real * d__, real * p,
  2904. real * q);
  2905. extern int slae2_(real * a, real * b, real * c__, real * rt1, real * rt2);
  2906. extern int slaebz_(integer * ijob, integer * nitmax, integer * n,
  2907. integer * mmax, integer * minp, integer * nbmin,
  2908. real * abstol, real * reltol, real * pivmin, real * d__,
  2909. real * e, real * e2, integer * nval, real * ab, real * c__,
  2910. integer * mout, integer * nab, real * work,
  2911. integer * iwork, integer * info);
  2912. extern int slaed0_(integer * icompq, integer * qsiz, integer * n, real * d__,
  2913. real * e, real * q, integer * ldq, real * qstore,
  2914. integer * ldqs, real * work, integer * iwork,
  2915. integer * info);
  2916. extern int slaed1_(integer * n, real * d__, real * q, integer * ldq,
  2917. integer * indxq, real * rho, integer * cutpnt, real * work,
  2918. integer * iwork, integer * info);
  2919. extern int slaed2_(integer * k, integer * n, integer * n1, real * d__,
  2920. real * q, integer * ldq, integer * indxq, real * rho,
  2921. real * z__, real * dlamda, real * w, real * q2,
  2922. integer * indx, integer * indxc, integer * indxp,
  2923. integer * coltyp, integer * info);
  2924. extern int slaed3_(integer * k, integer * n, integer * n1, real * d__,
  2925. real * q, integer * ldq, real * rho, real * dlamda,
  2926. real * q2, integer * indx, integer * ctot, real * w,
  2927. real * s, integer * info);
  2928. extern int slaed4_(integer * n, integer * i__, real * d__, real * z__,
  2929. real * delta, real * rho, real * dlam, integer * info);
  2930. extern int slaed5_(integer * i__, real * d__, real * z__, real * delta,
  2931. real * rho, real * dlam);
  2932. extern int slaed6_(integer * kniter, logical * orgati, real * rho, real * d__,
  2933. real * z__, real * finit, real * tau, integer * info);
  2934. extern int slaed7_(integer * icompq, integer * n, integer * qsiz,
  2935. integer * tlvls, integer * curlvl, integer * curpbm,
  2936. real * d__, real * q, integer * ldq, integer * indxq,
  2937. real * rho, integer * cutpnt, real * qstore,
  2938. integer * qptr, integer * prmptr, integer * perm,
  2939. integer * givptr, integer * givcol, real * givnum,
  2940. real * work, integer * iwork, integer * info);
  2941. extern int slaed8_(integer * icompq, integer * k, integer * n, integer * qsiz,
  2942. real * d__, real * q, integer * ldq, integer * indxq,
  2943. real * rho, integer * cutpnt, real * z__, real * dlamda,
  2944. real * q2, integer * ldq2, real * w, integer * perm,
  2945. integer * givptr, integer * givcol, real * givnum,
  2946. integer * indxp, integer * indx, integer * info);
  2947. extern int slaed9_(integer * k, integer * kstart, integer * kstop,
  2948. integer * n, real * d__, real * q, integer * ldq,
  2949. real * rho, real * dlamda, real * w, real * s,
  2950. integer * lds, integer * info);
  2951. extern int slaeda_(integer * n, integer * tlvls, integer * curlvl,
  2952. integer * curpbm, integer * prmptr, integer * perm,
  2953. integer * givptr, integer * givcol, real * givnum,
  2954. real * q, integer * qptr, real * z__, real * ztemp,
  2955. integer * info);
  2956. extern int slaein_(logical * rightv, logical * noinit, integer * n,
  2957. real * h__, integer * ldh, real * wr, real * wi, real * vr,
  2958. real * vi, real * b, integer * ldb, real * work,
  2959. real * eps3, real * smlnum, real * bignum, integer * info);
  2960. extern int slaev2_(real * a, real * b, real * c__, real * rt1, real * rt2,
  2961. real * cs1, real * sn1);
  2962. extern int slaexc_(logical * wantq, integer * n, real * t, integer * ldt,
  2963. real * q, integer * ldq, integer * j1, integer * n1,
  2964. integer * n2, real * work, integer * info);
  2965. extern int slag2_(real * a, integer * lda, real * b, integer * ldb,
  2966. real * safmin, real * scale1, real * scale2, real * wr1,
  2967. real * wr2, real * wi);
  2968. extern int slags2_(logical * upper, real * a1, real * a2, real * a3,
  2969. real * b1, real * b2, real * b3, real * csu, real * snu,
  2970. real * csv, real * snv, real * csq, real * snq);
  2971. extern int slagtf_(integer * n, real * a, real * lambda, real * b, real * c__,
  2972. real * tol, real * d__, integer * in, integer * info);
  2973. extern int slagtm_(char *trans, integer * n, integer * nrhs, real * alpha,
  2974. real * dl, real * d__, real * du, real * x, integer * ldx,
  2975. real * beta, real * b, integer * ldb, ftnlen trans_len);
  2976. extern int slagts_(integer * job, integer * n, real * a, real * b, real * c__,
  2977. real * d__, integer * in, real * y, real * tol,
  2978. integer * info);
  2979. extern int slagv2_(real * a, integer * lda, real * b, integer * ldb,
  2980. real * alphar, real * alphai, real * beta, real * csl,
  2981. real * snl, real * csr, real * snr);
  2982. extern int slahqr_(logical * wantt, logical * wantz, integer * n,
  2983. integer * ilo, integer * ihi, real * h__, integer * ldh,
  2984. real * wr, real * wi, integer * iloz, integer * ihiz,
  2985. real * z__, integer * ldz, integer * info);
  2986. extern int slahrd_(integer * n, integer * k, integer * nb, real * a,
  2987. integer * lda, real * tau, real * t, integer * ldt,
  2988. real * y, integer * ldy);
  2989. extern int slaic1_(integer * job, integer * j, real * x, real * sest,
  2990. real * w, real * gamma, real * sestpr, real * s,
  2991. real * c__);
  2992. extern int slaln2_(logical * ltrans, integer * na, integer * nw, real * smin,
  2993. real * ca, real * a, integer * lda, real * d1, real * d2,
  2994. real * b, integer * ldb, real * wr, real * wi, real * x,
  2995. integer * ldx, real * scale, real * xnorm, integer * info);
  2996. extern int slals0_(integer * icompq, integer * nl, integer * nr,
  2997. integer * sqre, integer * nrhs, real * b, integer * ldb,
  2998. real * bx, integer * ldbx, integer * perm,
  2999. integer * givptr, integer * givcol, integer * ldgcol,
  3000. real * givnum, integer * ldgnum, real * poles, real * difl,
  3001. real * difr, real * z__, integer * k, real * c__, real * s,
  3002. real * work, integer * info);
  3003. extern int slalsa_(integer * icompq, integer * smlsiz, integer * n,
  3004. integer * nrhs, real * b, integer * ldb, real * bx,
  3005. integer * ldbx, real * u, integer * ldu, real * vt,
  3006. integer * k, real * difl, real * difr, real * z__,
  3007. real * poles, integer * givptr, integer * givcol,
  3008. integer * ldgcol, integer * perm, real * givnum,
  3009. real * c__, real * s, real * work, integer * iwork,
  3010. integer * info);
  3011. extern int slalsd_(char *uplo, integer * smlsiz, integer * n, integer * nrhs,
  3012. real * d__, real * e, real * b, integer * ldb,
  3013. real * rcond, integer * rank, real * work, integer * iwork,
  3014. integer * info, ftnlen uplo_len);
  3015. extern E_f slamch_(char *cmach, ftnlen cmach_len);
  3016. extern int slamc1_(integer * beta, integer * t, logical * rnd,
  3017. logical * ieee1);
  3018. extern int slamc2_(integer * beta, integer * t, logical * rnd, real * eps,
  3019. integer * emin, real * rmin, integer * emax, real * rmax);
  3020. extern E_f slamc3_(real * a, real * b);
  3021. extern int slamc4_(integer * emin, real * start, integer * base);
  3022. extern int slamc5_(integer * beta, integer * p, integer * emin,
  3023. logical * ieee, integer * emax, real * rmax);
  3024. extern int slamrg_(integer * n1, integer * n2, real * a, integer * strd1,
  3025. integer * strd2, integer * index);
  3026. extern E_f slangb_(char *norm, integer * n, integer * kl, integer * ku,
  3027. real * ab, integer * ldab, real * work, ftnlen norm_len);
  3028. extern E_f slange_(char *norm, integer * m, integer * n, real * a,
  3029. integer * lda, real * work, ftnlen norm_len);
  3030. extern E_f slangt_(char *norm, integer * n, real * dl, real * d__, real * du,
  3031. ftnlen norm_len);
  3032. extern E_f slanhs_(char *norm, integer * n, real * a, integer * lda,
  3033. real * work, ftnlen norm_len);
  3034. extern E_f slansb_(char *norm, char *uplo, integer * n, integer * k,
  3035. real * ab, integer * ldab, real * work, ftnlen norm_len,
  3036. ftnlen uplo_len);
  3037. extern E_f slansp_(char *norm, char *uplo, integer * n, real * ap,
  3038. real * work, ftnlen norm_len, ftnlen uplo_len);
  3039. extern E_f slanst_(char *norm, integer * n, real * d__, real * e,
  3040. ftnlen norm_len);
  3041. extern E_f slansy_(char *norm, char *uplo, integer * n, real * a,
  3042. integer * lda, real * work, ftnlen norm_len,
  3043. ftnlen uplo_len);
  3044. extern E_f slantb_(char *norm, char *uplo, char *diag, integer * n,
  3045. integer * k, real * ab, integer * ldab, real * work,
  3046. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  3047. extern E_f slantp_(char *norm, char *uplo, char *diag, integer * n, real * ap,
  3048. real * work, ftnlen norm_len, ftnlen uplo_len,
  3049. ftnlen diag_len);
  3050. extern E_f slantr_(char *norm, char *uplo, char *diag, integer * m,
  3051. integer * n, real * a, integer * lda, real * work,
  3052. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  3053. extern int slanv2_(real * a, real * b, real * c__, real * d__, real * rt1r,
  3054. real * rt1i, real * rt2r, real * rt2i, real * cs,
  3055. real * sn);
  3056. extern int slapll_(integer * n, real * x, integer * incx, real * y,
  3057. integer * incy, real * ssmin);
  3058. extern int slapmt_(logical * forwrd, integer * m, integer * n, real * x,
  3059. integer * ldx, integer * k);
  3060. extern E_f slapy2_(real * x, real * y);
  3061. extern E_f slapy3_(real * x, real * y, real * z__);
  3062. extern int slaqgb_(integer * m, integer * n, integer * kl, integer * ku,
  3063. real * ab, integer * ldab, real * r__, real * c__,
  3064. real * rowcnd, real * colcnd, real * amax, char *equed,
  3065. ftnlen equed_len);
  3066. extern int slaqge_(integer * m, integer * n, real * a, integer * lda,
  3067. real * r__, real * c__, real * rowcnd, real * colcnd,
  3068. real * amax, char *equed, ftnlen equed_len);
  3069. extern int slaqp2_(integer * m, integer * n, integer * offset, real * a,
  3070. integer * lda, integer * jpvt, real * tau, real * vn1,
  3071. real * vn2, real * work);
  3072. extern int slaqps_(integer * m, integer * n, integer * offset, integer * nb,
  3073. integer * kb, real * a, integer * lda, integer * jpvt,
  3074. real * tau, real * vn1, real * vn2, real * auxv, real * f,
  3075. integer * ldf);
  3076. extern int slaqsb_(char *uplo, integer * n, integer * kd, real * ab,
  3077. integer * ldab, real * s, real * scond, real * amax,
  3078. char *equed, ftnlen uplo_len, ftnlen equed_len);
  3079. extern int slaqsp_(char *uplo, integer * n, real * ap, real * s, real * scond,
  3080. real * amax, char *equed, ftnlen uplo_len,
  3081. ftnlen equed_len);
  3082. extern int slaqsy_(char *uplo, integer * n, real * a, integer * lda, real * s,
  3083. real * scond, real * amax, char *equed, ftnlen uplo_len,
  3084. ftnlen equed_len);
  3085. extern int slaqtr_(logical * ltran, logical * lreal, integer * n, real * t,
  3086. integer * ldt, real * b, real * w, real * scale, real * x,
  3087. real * work, integer * info);
  3088. extern int slar1v_(integer * n, integer * b1, integer * bn, real * sigma,
  3089. real * d__, real * l, real * ld, real * lld, real * gersch,
  3090. real * z__, real * ztz, real * mingma, integer * r__,
  3091. integer * isuppz, real * work);
  3092. extern int slar2v_(integer * n, real * x, real * y, real * z__,
  3093. integer * incx, real * c__, real * s, integer * incc);
  3094. extern int slarf_(char *side, integer * m, integer * n, real * v,
  3095. integer * incv, real * tau, real * c__, integer * ldc,
  3096. real * work, ftnlen side_len);
  3097. extern int slarfb_(char *side, char *trans, char *direct, char *storev,
  3098. integer * m, integer * n, integer * k, real * v,
  3099. integer * ldv, real * t, integer * ldt, real * c__,
  3100. integer * ldc, real * work, integer * ldwork,
  3101. ftnlen side_len, ftnlen trans_len, ftnlen direct_len,
  3102. ftnlen storev_len);
  3103. extern int slarfg_(integer * n, real * alpha, real * x, integer * incx,
  3104. real * tau);
  3105. extern int slarft_(char *direct, char *storev, integer * n, integer * k,
  3106. real * v, integer * ldv, real * tau, real * t,
  3107. integer * ldt, ftnlen direct_len, ftnlen storev_len);
  3108. extern int slarfx_(char *side, integer * m, integer * n, real * v, real * tau,
  3109. real * c__, integer * ldc, real * work, ftnlen side_len);
  3110. extern int slargv_(integer * n, real * x, integer * incx, real * y,
  3111. integer * incy, real * c__, integer * incc);
  3112. extern int slarnv_(integer * idist, integer * iseed, integer * n, real * x);
  3113. extern int slarrb_(integer * n, real * d__, real * l, real * ld, real * lld,
  3114. integer * ifirst, integer * ilast, real * sigma,
  3115. real * reltol, real * w, real * wgap, real * werr,
  3116. real * work, integer * iwork, integer * info);
  3117. extern int slarre_(integer * n, real * d__, real * e, real * tol,
  3118. integer * nsplit, integer * isplit, integer * m, real * w,
  3119. real * woff, real * gersch, real * work, integer * info);
  3120. extern int slarrf_(integer * n, real * d__, real * l, real * ld, real * lld,
  3121. integer * ifirst, integer * ilast, real * w, real * dplus,
  3122. real * lplus, real * work, integer * iwork,
  3123. integer * info);
  3124. extern int slarrv_(integer * n, real * d__, real * l, integer * isplit,
  3125. integer * m, real * w, integer * iblock, real * gersch,
  3126. real * tol, real * z__, integer * ldz, integer * isuppz,
  3127. real * work, integer * iwork, integer * info);
  3128. extern int slartg_(real * f, real * g, real * cs, real * sn, real * r__);
  3129. extern int slartv_(integer * n, real * x, integer * incx, real * y,
  3130. integer * incy, real * c__, real * s, integer * incc);
  3131. extern int slaruv_(integer * iseed, integer * n, real * x);
  3132. extern int slarz_(char *side, integer * m, integer * n, integer * l, real * v,
  3133. integer * incv, real * tau, real * c__, integer * ldc,
  3134. real * work, ftnlen side_len);
  3135. extern int slarzb_(char *side, char *trans, char *direct, char *storev,
  3136. integer * m, integer * n, integer * k, integer * l,
  3137. real * v, integer * ldv, real * t, integer * ldt,
  3138. real * c__, integer * ldc, real * work, integer * ldwork,
  3139. ftnlen side_len, ftnlen trans_len, ftnlen direct_len,
  3140. ftnlen storev_len);
  3141. extern int slarzt_(char *direct, char *storev, integer * n, integer * k,
  3142. real * v, integer * ldv, real * tau, real * t,
  3143. integer * ldt, ftnlen direct_len, ftnlen storev_len);
  3144. extern int slas2_(real * f, real * g, real * h__, real * ssmin, real * ssmax);
  3145. extern int slascl_(char *type__, integer * kl, integer * ku, real * cfrom,
  3146. real * cto, integer * m, integer * n, real * a,
  3147. integer * lda, integer * info, ftnlen type_len);
  3148. extern int slasd0_(integer * n, integer * sqre, real * d__, real * e,
  3149. real * u, integer * ldu, real * vt, integer * ldvt,
  3150. integer * smlsiz, integer * iwork, real * work,
  3151. integer * info);
  3152. extern int slasd1_(integer * nl, integer * nr, integer * sqre, real * d__,
  3153. real * alpha, real * beta, real * u, integer * ldu,
  3154. real * vt, integer * ldvt, integer * idxq, integer * iwork,
  3155. real * work, integer * info);
  3156. extern int slasd2_(integer * nl, integer * nr, integer * sqre, integer * k,
  3157. real * d__, real * z__, real * alpha, real * beta,
  3158. real * u, integer * ldu, real * vt, integer * ldvt,
  3159. real * dsigma, real * u2, integer * ldu2, real * vt2,
  3160. integer * ldvt2, integer * idxp, integer * idx,
  3161. integer * idxc, integer * idxq, integer * coltyp,
  3162. integer * info);
  3163. extern int slasd3_(integer * nl, integer * nr, integer * sqre, integer * k,
  3164. real * d__, real * q, integer * ldq, real * dsigma,
  3165. real * u, integer * ldu, real * u2, integer * ldu2,
  3166. real * vt, integer * ldvt, real * vt2, integer * ldvt2,
  3167. integer * idxc, integer * ctot, real * z__,
  3168. integer * info);
  3169. extern int slasd4_(integer * n, integer * i__, real * d__, real * z__,
  3170. real * delta, real * rho, real * sigma, real * work,
  3171. integer * info);
  3172. extern int slasd5_(integer * i__, real * d__, real * z__, real * delta,
  3173. real * rho, real * dsigma, real * work);
  3174. extern int slasd6_(integer * icompq, integer * nl, integer * nr,
  3175. integer * sqre, real * d__, real * vf, real * vl,
  3176. real * alpha, real * beta, integer * idxq, integer * perm,
  3177. integer * givptr, integer * givcol, integer * ldgcol,
  3178. real * givnum, integer * ldgnum, real * poles, real * difl,
  3179. real * difr, real * z__, integer * k, real * c__, real * s,
  3180. real * work, integer * iwork, integer * info);
  3181. extern int slasd7_(integer * icompq, integer * nl, integer * nr,
  3182. integer * sqre, integer * k, real * d__, real * z__,
  3183. real * zw, real * vf, real * vfw, real * vl, real * vlw,
  3184. real * alpha, real * beta, real * dsigma, integer * idx,
  3185. integer * idxp, integer * idxq, integer * perm,
  3186. integer * givptr, integer * givcol, integer * ldgcol,
  3187. real * givnum, integer * ldgnum, real * c__, real * s,
  3188. integer * info);
  3189. extern int slasd8_(integer * icompq, integer * k, real * d__, real * z__,
  3190. real * vf, real * vl, real * difl, real * difr,
  3191. integer * lddifr, real * dsigma, real * work,
  3192. integer * info);
  3193. extern int slasd9_(integer * icompq, integer * ldu, integer * k, real * d__,
  3194. real * z__, real * vf, real * vl, real * difl, real * difr,
  3195. real * dsigma, real * work, integer * info);
  3196. extern int slasda_(integer * icompq, integer * smlsiz, integer * n,
  3197. integer * sqre, real * d__, real * e, real * u,
  3198. integer * ldu, real * vt, integer * k, real * difl,
  3199. real * difr, real * z__, real * poles, integer * givptr,
  3200. integer * givcol, integer * ldgcol, integer * perm,
  3201. real * givnum, real * c__, real * s, real * work,
  3202. integer * iwork, integer * info);
  3203. extern int slasdq_(char *uplo, integer * sqre, integer * n, integer * ncvt,
  3204. integer * nru, integer * ncc, real * d__, real * e,
  3205. real * vt, integer * ldvt, real * u, integer * ldu,
  3206. real * c__, integer * ldc, real * work, integer * info,
  3207. ftnlen uplo_len);
  3208. extern int slasdt_(integer * n, integer * lvl, integer * nd, integer * inode,
  3209. integer * ndiml, integer * ndimr, integer * msub);
  3210. extern int slaset_(char *uplo, integer * m, integer * n, real * alpha,
  3211. real * beta, real * a, integer * lda, ftnlen uplo_len);
  3212. extern int slasq1_(integer * n, real * d__, real * e, real * work,
  3213. integer * info);
  3214. extern int slasq2_(integer * n, real * z__, integer * info);
  3215. extern int slasq3_(integer * i0, integer * n0, real * z__, integer * pp,
  3216. real * dmin__, real * sigma, real * desig, real * qmax,
  3217. integer * nfail, integer * iter, integer * ndiv);
  3218. extern int slasq4_(integer * i0, integer * n0, real * z__, integer * pp,
  3219. integer * n0in, real * dmin__, real * dmin1, real * dmin2,
  3220. real * dn, real * dn1, real * dn2, real * tau,
  3221. integer * ttype);
  3222. extern int slasq5_(integer * i0, integer * n0, real * z__, integer * pp,
  3223. real * tau, real * dmin__, real * dmin1, real * dmin2,
  3224. real * dn, real * dnm1, real * dnm2);
  3225. extern int slasq6_(integer * i0, integer * n0, real * z__, integer * pp,
  3226. real * dmin__, real * dmin1, real * dmin2, real * dn,
  3227. real * dnm1, real * dnm2);
  3228. extern int slasr_(char *side, char *pivot, char *direct, integer * m,
  3229. integer * n, real * c__, real * s, real * a, integer * lda,
  3230. ftnlen side_len, ftnlen pivot_len, ftnlen direct_len);
  3231. extern int slasrt_(char *id, integer * n, real * d__, integer * info,
  3232. ftnlen id_len);
  3233. extern int slassq_(integer * n, real * x, integer * incx, real * scale,
  3234. real * sumsq);
  3235. extern int slasv2_(real * f, real * g, real * h__, real * ssmin, real * ssmax,
  3236. real * snr, real * csr, real * snl, real * csl);
  3237. extern int slaswp_(integer * n, real * a, integer * lda, integer * k1,
  3238. integer * k2, integer * ipiv, integer * incx);
  3239. extern int slasy2_(logical * ltranl, logical * ltranr, integer * isgn,
  3240. integer * n1, integer * n2, real * tl, integer * ldtl,
  3241. real * tr, integer * ldtr, real * b, integer * ldb,
  3242. real * scale, real * x, integer * ldx, real * xnorm,
  3243. integer * info);
  3244. extern int slasyf_(char *uplo, integer * n, integer * nb, integer * kb,
  3245. real * a, integer * lda, integer * ipiv, real * w,
  3246. integer * ldw, integer * info, ftnlen uplo_len);
  3247. extern int slatbs_(char *uplo, char *trans, char *diag, char *normin,
  3248. integer * n, integer * kd, real * ab, integer * ldab,
  3249. real * x, real * scale, real * cnorm, integer * info,
  3250. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len,
  3251. ftnlen normin_len);
  3252. extern int slatdf_(integer * ijob, integer * n, real * z__, integer * ldz,
  3253. real * rhs, real * rdsum, real * rdscal, integer * ipiv,
  3254. integer * jpiv);
  3255. extern int slatps_(char *uplo, char *trans, char *diag, char *normin,
  3256. integer * n, real * ap, real * x, real * scale,
  3257. real * cnorm, integer * info, ftnlen uplo_len,
  3258. ftnlen trans_len, ftnlen diag_len, ftnlen normin_len);
  3259. extern int slatrd_(char *uplo, integer * n, integer * nb, real * a,
  3260. integer * lda, real * e, real * tau, real * w,
  3261. integer * ldw, ftnlen uplo_len);
  3262. extern int slatrs_(char *uplo, char *trans, char *diag, char *normin,
  3263. integer * n, real * a, integer * lda, real * x,
  3264. real * scale, real * cnorm, integer * info,
  3265. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len,
  3266. ftnlen normin_len);
  3267. extern int slatrz_(integer * m, integer * n, integer * l, real * a,
  3268. integer * lda, real * tau, real * work);
  3269. extern int slatzm_(char *side, integer * m, integer * n, real * v,
  3270. integer * incv, real * tau, real * c1, real * c2,
  3271. integer * ldc, real * work, ftnlen side_len);
  3272. extern int slauu2_(char *uplo, integer * n, real * a, integer * lda,
  3273. integer * info, ftnlen uplo_len);
  3274. extern int slauum_(char *uplo, integer * n, real * a, integer * lda,
  3275. integer * info, ftnlen uplo_len);
  3276. extern int sopgtr_(char *uplo, integer * n, real * ap, real * tau, real * q,
  3277. integer * ldq, real * work, integer * info,
  3278. ftnlen uplo_len);
  3279. extern int sopmtr_(char *side, char *uplo, char *trans, integer * m,
  3280. integer * n, real * ap, real * tau, real * c__,
  3281. integer * ldc, real * work, integer * info,
  3282. ftnlen side_len, ftnlen uplo_len, ftnlen trans_len);
  3283. extern int sorg2l_(integer * m, integer * n, integer * k, real * a,
  3284. integer * lda, real * tau, real * work, integer * info);
  3285. extern int sorg2r_(integer * m, integer * n, integer * k, real * a,
  3286. integer * lda, real * tau, real * work, integer * info);
  3287. extern int sorgbr_(char *vect, integer * m, integer * n, integer * k,
  3288. real * a, integer * lda, real * tau, real * work,
  3289. integer * lwork, integer * info, ftnlen vect_len);
  3290. extern int sorghr_(integer * n, integer * ilo, integer * ihi, real * a,
  3291. integer * lda, real * tau, real * work, integer * lwork,
  3292. integer * info);
  3293. extern int sorgl2_(integer * m, integer * n, integer * k, real * a,
  3294. integer * lda, real * tau, real * work, integer * info);
  3295. extern int sorglq_(integer * m, integer * n, integer * k, real * a,
  3296. integer * lda, real * tau, real * work, integer * lwork,
  3297. integer * info);
  3298. extern int sorgql_(integer * m, integer * n, integer * k, real * a,
  3299. integer * lda, real * tau, real * work, integer * lwork,
  3300. integer * info);
  3301. extern int sorgqr_(integer * m, integer * n, integer * k, real * a,
  3302. integer * lda, real * tau, real * work, integer * lwork,
  3303. integer * info);
  3304. extern int sorgr2_(integer * m, integer * n, integer * k, real * a,
  3305. integer * lda, real * tau, real * work, integer * info);
  3306. extern int sorgrq_(integer * m, integer * n, integer * k, real * a,
  3307. integer * lda, real * tau, real * work, integer * lwork,
  3308. integer * info);
  3309. extern int sorgtr_(char *uplo, integer * n, real * a, integer * lda,
  3310. real * tau, real * work, integer * lwork, integer * info,
  3311. ftnlen uplo_len);
  3312. extern int sorm2l_(char *side, char *trans, integer * m, integer * n,
  3313. integer * k, real * a, integer * lda, real * tau,
  3314. real * c__, integer * ldc, real * work, integer * info,
  3315. ftnlen side_len, ftnlen trans_len);
  3316. extern int sorm2r_(char *side, char *trans, integer * m, integer * n,
  3317. integer * k, real * a, integer * lda, real * tau,
  3318. real * c__, integer * ldc, real * work, integer * info,
  3319. ftnlen side_len, ftnlen trans_len);
  3320. extern int sormbr_(char *vect, char *side, char *trans, integer * m,
  3321. integer * n, integer * k, real * a, integer * lda,
  3322. real * tau, real * c__, integer * ldc, real * work,
  3323. integer * lwork, integer * info, ftnlen vect_len,
  3324. ftnlen side_len, ftnlen trans_len);
  3325. extern int sormhr_(char *side, char *trans, integer * m, integer * n,
  3326. integer * ilo, integer * ihi, real * a, integer * lda,
  3327. real * tau, real * c__, integer * ldc, real * work,
  3328. integer * lwork, integer * info, ftnlen side_len,
  3329. ftnlen trans_len);
  3330. extern int sorml2_(char *side, char *trans, integer * m, integer * n,
  3331. integer * k, real * a, integer * lda, real * tau,
  3332. real * c__, integer * ldc, real * work, integer * info,
  3333. ftnlen side_len, ftnlen trans_len);
  3334. extern int sormlq_(char *side, char *trans, integer * m, integer * n,
  3335. integer * k, real * a, integer * lda, real * tau,
  3336. real * c__, integer * ldc, real * work, integer * lwork,
  3337. integer * info, ftnlen side_len, ftnlen trans_len);
  3338. extern int sormql_(char *side, char *trans, integer * m, integer * n,
  3339. integer * k, real * a, integer * lda, real * tau,
  3340. real * c__, integer * ldc, real * work, integer * lwork,
  3341. integer * info, ftnlen side_len, ftnlen trans_len);
  3342. extern int sormqr_(char *side, char *trans, integer * m, integer * n,
  3343. integer * k, real * a, integer * lda, real * tau,
  3344. real * c__, integer * ldc, real * work, integer * lwork,
  3345. integer * info, ftnlen side_len, ftnlen trans_len);
  3346. extern int sormr2_(char *side, char *trans, integer * m, integer * n,
  3347. integer * k, real * a, integer * lda, real * tau,
  3348. real * c__, integer * ldc, real * work, integer * info,
  3349. ftnlen side_len, ftnlen trans_len);
  3350. extern int sormr3_(char *side, char *trans, integer * m, integer * n,
  3351. integer * k, integer * l, real * a, integer * lda,
  3352. real * tau, real * c__, integer * ldc, real * work,
  3353. integer * info, ftnlen side_len, ftnlen trans_len);
  3354. extern int sormrq_(char *side, char *trans, integer * m, integer * n,
  3355. integer * k, real * a, integer * lda, real * tau,
  3356. real * c__, integer * ldc, real * work, integer * lwork,
  3357. integer * info, ftnlen side_len, ftnlen trans_len);
  3358. extern int sormrz_(char *side, char *trans, integer * m, integer * n,
  3359. integer * k, integer * l, real * a, integer * lda,
  3360. real * tau, real * c__, integer * ldc, real * work,
  3361. integer * lwork, integer * info, ftnlen side_len,
  3362. ftnlen trans_len);
  3363. extern int sormtr_(char *side, char *uplo, char *trans, integer * m,
  3364. integer * n, real * a, integer * lda, real * tau,
  3365. real * c__, integer * ldc, real * work, integer * lwork,
  3366. integer * info, ftnlen side_len, ftnlen uplo_len,
  3367. ftnlen trans_len);
  3368. extern int spbcon_(char *uplo, integer * n, integer * kd, real * ab,
  3369. integer * ldab, real * anorm, real * rcond, real * work,
  3370. integer * iwork, integer * info, ftnlen uplo_len);
  3371. extern int spbequ_(char *uplo, integer * n, integer * kd, real * ab,
  3372. integer * ldab, real * s, real * scond, real * amax,
  3373. integer * info, ftnlen uplo_len);
  3374. extern int spbrfs_(char *uplo, integer * n, integer * kd, integer * nrhs,
  3375. real * ab, integer * ldab, real * afb, integer * ldafb,
  3376. real * b, integer * ldb, real * x, integer * ldx,
  3377. real * ferr, real * berr, real * work, integer * iwork,
  3378. integer * info, ftnlen uplo_len);
  3379. extern int spbstf_(char *uplo, integer * n, integer * kd, real * ab,
  3380. integer * ldab, integer * info, ftnlen uplo_len);
  3381. extern int spbsv_(char *uplo, integer * n, integer * kd, integer * nrhs,
  3382. real * ab, integer * ldab, real * b, integer * ldb,
  3383. integer * info, ftnlen uplo_len);
  3384. extern int spbsvx_(char *fact, char *uplo, integer * n, integer * kd,
  3385. integer * nrhs, real * ab, integer * ldab, real * afb,
  3386. integer * ldafb, char *equed, real * s, real * b,
  3387. integer * ldb, real * x, integer * ldx, real * rcond,
  3388. real * ferr, real * berr, real * work, integer * iwork,
  3389. integer * info, ftnlen fact_len, ftnlen uplo_len,
  3390. ftnlen equed_len);
  3391. extern int spbtf2_(char *uplo, integer * n, integer * kd, real * ab,
  3392. integer * ldab, integer * info, ftnlen uplo_len);
  3393. extern int spbtrf_(char *uplo, integer * n, integer * kd, real * ab,
  3394. integer * ldab, integer * info, ftnlen uplo_len);
  3395. extern int spbtrs_(char *uplo, integer * n, integer * kd, integer * nrhs,
  3396. real * ab, integer * ldab, real * b, integer * ldb,
  3397. integer * info, ftnlen uplo_len);
  3398. extern int spocon_(char *uplo, integer * n, real * a, integer * lda,
  3399. real * anorm, real * rcond, real * work, integer * iwork,
  3400. integer * info, ftnlen uplo_len);
  3401. extern int spoequ_(integer * n, real * a, integer * lda, real * s,
  3402. real * scond, real * amax, integer * info);
  3403. extern int sporfs_(char *uplo, integer * n, integer * nrhs, real * a,
  3404. integer * lda, real * af, integer * ldaf, real * b,
  3405. integer * ldb, real * x, integer * ldx, real * ferr,
  3406. real * berr, real * work, integer * iwork, integer * info,
  3407. ftnlen uplo_len);
  3408. extern int sposv_(char *uplo, integer * n, integer * nrhs, real * a,
  3409. integer * lda, real * b, integer * ldb, integer * info,
  3410. ftnlen uplo_len);
  3411. extern int sposvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  3412. real * a, integer * lda, real * af, integer * ldaf,
  3413. char *equed, real * s, real * b, integer * ldb, real * x,
  3414. integer * ldx, real * rcond, real * ferr, real * berr,
  3415. real * work, integer * iwork, integer * info,
  3416. ftnlen fact_len, ftnlen uplo_len, ftnlen equed_len);
  3417. extern int spotf2_(char *uplo, integer * n, real * a, integer * lda,
  3418. integer * info, ftnlen uplo_len);
  3419. extern int spotrf_(char *uplo, integer * n, real * a, integer * lda,
  3420. integer * info, ftnlen uplo_len);
  3421. extern int spotri_(char *uplo, integer * n, real * a, integer * lda,
  3422. integer * info, ftnlen uplo_len);
  3423. extern int spotrs_(char *uplo, integer * n, integer * nrhs, real * a,
  3424. integer * lda, real * b, integer * ldb, integer * info,
  3425. ftnlen uplo_len);
  3426. extern int sppcon_(char *uplo, integer * n, real * ap, real * anorm,
  3427. real * rcond, real * work, integer * iwork, integer * info,
  3428. ftnlen uplo_len);
  3429. extern int sppequ_(char *uplo, integer * n, real * ap, real * s, real * scond,
  3430. real * amax, integer * info, ftnlen uplo_len);
  3431. extern int spprfs_(char *uplo, integer * n, integer * nrhs, real * ap,
  3432. real * afp, real * b, integer * ldb, real * x,
  3433. integer * ldx, real * ferr, real * berr, real * work,
  3434. integer * iwork, integer * info, ftnlen uplo_len);
  3435. extern int sppsv_(char *uplo, integer * n, integer * nrhs, real * ap,
  3436. real * b, integer * ldb, integer * info, ftnlen uplo_len);
  3437. extern int sppsvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  3438. real * ap, real * afp, char *equed, real * s, real * b,
  3439. integer * ldb, real * x, integer * ldx, real * rcond,
  3440. real * ferr, real * berr, real * work, integer * iwork,
  3441. integer * info, ftnlen fact_len, ftnlen uplo_len,
  3442. ftnlen equed_len);
  3443. extern int spptrf_(char *uplo, integer * n, real * ap, integer * info,
  3444. ftnlen uplo_len);
  3445. extern int spptri_(char *uplo, integer * n, real * ap, integer * info,
  3446. ftnlen uplo_len);
  3447. extern int spptrs_(char *uplo, integer * n, integer * nrhs, real * ap,
  3448. real * b, integer * ldb, integer * info, ftnlen uplo_len);
  3449. extern int sptcon_(integer * n, real * d__, real * e, real * anorm,
  3450. real * rcond, real * work, integer * info);
  3451. extern int spteqr_(char *compz, integer * n, real * d__, real * e, real * z__,
  3452. integer * ldz, real * work, integer * info,
  3453. ftnlen compz_len);
  3454. extern int sptrfs_(integer * n, integer * nrhs, real * d__, real * e,
  3455. real * df, real * ef, real * b, integer * ldb, real * x,
  3456. integer * ldx, real * ferr, real * berr, real * work,
  3457. integer * info);
  3458. extern int sptsv_(integer * n, integer * nrhs, real * d__, real * e, real * b,
  3459. integer * ldb, integer * info);
  3460. extern int sptsvx_(char *fact, integer * n, integer * nrhs, real * d__,
  3461. real * e, real * df, real * ef, real * b, integer * ldb,
  3462. real * x, integer * ldx, real * rcond, real * ferr,
  3463. real * berr, real * work, integer * info, ftnlen fact_len);
  3464. extern int spttrf_(integer * n, real * d__, real * e, integer * info);
  3465. extern int spttrs_(integer * n, integer * nrhs, real * d__, real * e,
  3466. real * b, integer * ldb, integer * info);
  3467. extern int sptts2_(integer * n, integer * nrhs, real * d__, real * e,
  3468. real * b, integer * ldb);
  3469. extern int srscl_(integer * n, real * sa, real * sx, integer * incx);
  3470. extern int ssbev_(char *jobz, char *uplo, integer * n, integer * kd,
  3471. real * ab, integer * ldab, real * w, real * z__,
  3472. integer * ldz, real * work, integer * info, ftnlen jobz_len,
  3473. ftnlen uplo_len);
  3474. extern int ssbevd_(char *jobz, char *uplo, integer * n, integer * kd,
  3475. real * ab, integer * ldab, real * w, real * z__,
  3476. integer * ldz, real * work, integer * lwork,
  3477. integer * iwork, integer * liwork, integer * info,
  3478. ftnlen jobz_len, ftnlen uplo_len);
  3479. extern int ssbevx_(char *jobz, char *range, char *uplo, integer * n,
  3480. integer * kd, real * ab, integer * ldab, real * q,
  3481. integer * ldq, real * vl, real * vu, integer * il,
  3482. integer * iu, real * abstol, integer * m, real * w,
  3483. real * z__, integer * ldz, real * work, integer * iwork,
  3484. integer * ifail, integer * info, ftnlen jobz_len,
  3485. ftnlen range_len, ftnlen uplo_len);
  3486. extern int ssbgst_(char *vect, char *uplo, integer * n, integer * ka,
  3487. integer * kb, real * ab, integer * ldab, real * bb,
  3488. integer * ldbb, real * x, integer * ldx, real * work,
  3489. integer * info, ftnlen vect_len, ftnlen uplo_len);
  3490. extern int ssbgv_(char *jobz, char *uplo, integer * n, integer * ka,
  3491. integer * kb, real * ab, integer * ldab, real * bb,
  3492. integer * ldbb, real * w, real * z__, integer * ldz,
  3493. real * work, integer * info, ftnlen jobz_len,
  3494. ftnlen uplo_len);
  3495. extern int ssbgvd_(char *jobz, char *uplo, integer * n, integer * ka,
  3496. integer * kb, real * ab, integer * ldab, real * bb,
  3497. integer * ldbb, real * w, real * z__, integer * ldz,
  3498. real * work, integer * lwork, integer * iwork,
  3499. integer * liwork, integer * info, ftnlen jobz_len,
  3500. ftnlen uplo_len);
  3501. extern int ssbgvx_(char *jobz, char *range, char *uplo, integer * n,
  3502. integer * ka, integer * kb, real * ab, integer * ldab,
  3503. real * bb, integer * ldbb, real * q, integer * ldq,
  3504. real * vl, real * vu, integer * il, integer * iu,
  3505. real * abstol, integer * m, real * w, real * z__,
  3506. integer * ldz, real * work, integer * iwork,
  3507. integer * ifail, integer * info, ftnlen jobz_len,
  3508. ftnlen range_len, ftnlen uplo_len);
  3509. extern int ssbtrd_(char *vect, char *uplo, integer * n, integer * kd,
  3510. real * ab, integer * ldab, real * d__, real * e, real * q,
  3511. integer * ldq, real * work, integer * info,
  3512. ftnlen vect_len, ftnlen uplo_len);
  3513. extern int sspcon_(char *uplo, integer * n, real * ap, integer * ipiv,
  3514. real * anorm, real * rcond, real * work, integer * iwork,
  3515. integer * info, ftnlen uplo_len);
  3516. extern int sspev_(char *jobz, char *uplo, integer * n, real * ap, real * w,
  3517. real * z__, integer * ldz, real * work, integer * info,
  3518. ftnlen jobz_len, ftnlen uplo_len);
  3519. extern int sspevd_(char *jobz, char *uplo, integer * n, real * ap, real * w,
  3520. real * z__, integer * ldz, real * work, integer * lwork,
  3521. integer * iwork, integer * liwork, integer * info,
  3522. ftnlen jobz_len, ftnlen uplo_len);
  3523. extern int sspevx_(char *jobz, char *range, char *uplo, integer * n,
  3524. real * ap, real * vl, real * vu, integer * il,
  3525. integer * iu, real * abstol, integer * m, real * w,
  3526. real * z__, integer * ldz, real * work, integer * iwork,
  3527. integer * ifail, integer * info, ftnlen jobz_len,
  3528. ftnlen range_len, ftnlen uplo_len);
  3529. extern int sspgst_(integer * itype, char *uplo, integer * n, real * ap,
  3530. real * bp, integer * info, ftnlen uplo_len);
  3531. extern int sspgv_(integer * itype, char *jobz, char *uplo, integer * n,
  3532. real * ap, real * bp, real * w, real * z__, integer * ldz,
  3533. real * work, integer * info, ftnlen jobz_len,
  3534. ftnlen uplo_len);
  3535. extern int sspgvd_(integer * itype, char *jobz, char *uplo, integer * n,
  3536. real * ap, real * bp, real * w, real * z__, integer * ldz,
  3537. real * work, integer * lwork, integer * iwork,
  3538. integer * liwork, integer * info, ftnlen jobz_len,
  3539. ftnlen uplo_len);
  3540. extern int sspgvx_(integer * itype, char *jobz, char *range, char *uplo,
  3541. integer * n, real * ap, real * bp, real * vl, real * vu,
  3542. integer * il, integer * iu, real * abstol, integer * m,
  3543. real * w, real * z__, integer * ldz, real * work,
  3544. integer * iwork, integer * ifail, integer * info,
  3545. ftnlen jobz_len, ftnlen range_len, ftnlen uplo_len);
  3546. extern int ssprfs_(char *uplo, integer * n, integer * nrhs, real * ap,
  3547. real * afp, integer * ipiv, real * b, integer * ldb,
  3548. real * x, integer * ldx, real * ferr, real * berr,
  3549. real * work, integer * iwork, integer * info,
  3550. ftnlen uplo_len);
  3551. extern int sspsv_(char *uplo, integer * n, integer * nrhs, real * ap,
  3552. integer * ipiv, real * b, integer * ldb, integer * info,
  3553. ftnlen uplo_len);
  3554. extern int sspsvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  3555. real * ap, real * afp, integer * ipiv, real * b,
  3556. integer * ldb, real * x, integer * ldx, real * rcond,
  3557. real * ferr, real * berr, real * work, integer * iwork,
  3558. integer * info, ftnlen fact_len, ftnlen uplo_len);
  3559. extern int ssptrd_(char *uplo, integer * n, real * ap, real * d__, real * e,
  3560. real * tau, integer * info, ftnlen uplo_len);
  3561. extern int ssptrf_(char *uplo, integer * n, real * ap, integer * ipiv,
  3562. integer * info, ftnlen uplo_len);
  3563. extern int ssptri_(char *uplo, integer * n, real * ap, integer * ipiv,
  3564. real * work, integer * info, ftnlen uplo_len);
  3565. extern int ssptrs_(char *uplo, integer * n, integer * nrhs, real * ap,
  3566. integer * ipiv, real * b, integer * ldb, integer * info,
  3567. ftnlen uplo_len);
  3568. extern int sstebz_(char *range, char *order, integer * n, real * vl,
  3569. real * vu, integer * il, integer * iu, real * abstol,
  3570. real * d__, real * e, integer * m, integer * nsplit,
  3571. real * w, integer * iblock, integer * isplit, real * work,
  3572. integer * iwork, integer * info, ftnlen range_len,
  3573. ftnlen order_len);
  3574. extern int sstedc_(char *compz, integer * n, real * d__, real * e, real * z__,
  3575. integer * ldz, real * work, integer * lwork,
  3576. integer * iwork, integer * liwork, integer * info,
  3577. ftnlen compz_len);
  3578. extern int sstegr_(char *jobz, char *range, integer * n, real * d__, real * e,
  3579. real * vl, real * vu, integer * il, integer * iu,
  3580. real * abstol, integer * m, real * w, real * z__,
  3581. integer * ldz, integer * isuppz, real * work,
  3582. integer * lwork, integer * iwork, integer * liwork,
  3583. integer * info, ftnlen jobz_len, ftnlen range_len);
  3584. extern int sstein_(integer * n, real * d__, real * e, integer * m, real * w,
  3585. integer * iblock, integer * isplit, real * z__,
  3586. integer * ldz, real * work, integer * iwork,
  3587. integer * ifail, integer * info);
  3588. extern int ssteqr_(char *compz, integer * n, real * d__, real * e, real * z__,
  3589. integer * ldz, real * work, integer * info,
  3590. ftnlen compz_len);
  3591. extern int ssterf_(integer * n, real * d__, real * e, integer * info);
  3592. extern int sstev_(char *jobz, integer * n, real * d__, real * e, real * z__,
  3593. integer * ldz, real * work, integer * info,
  3594. ftnlen jobz_len);
  3595. extern int sstevd_(char *jobz, integer * n, real * d__, real * e, real * z__,
  3596. integer * ldz, real * work, integer * lwork,
  3597. integer * iwork, integer * liwork, integer * info,
  3598. ftnlen jobz_len);
  3599. extern int sstevr_(char *jobz, char *range, integer * n, real * d__, real * e,
  3600. real * vl, real * vu, integer * il, integer * iu,
  3601. real * abstol, integer * m, real * w, real * z__,
  3602. integer * ldz, integer * isuppz, real * work,
  3603. integer * lwork, integer * iwork, integer * liwork,
  3604. integer * info, ftnlen jobz_len, ftnlen range_len);
  3605. extern int sstevx_(char *jobz, char *range, integer * n, real * d__, real * e,
  3606. real * vl, real * vu, integer * il, integer * iu,
  3607. real * abstol, integer * m, real * w, real * z__,
  3608. integer * ldz, real * work, integer * iwork,
  3609. integer * ifail, integer * info, ftnlen jobz_len,
  3610. ftnlen range_len);
  3611. extern int ssycon_(char *uplo, integer * n, real * a, integer * lda,
  3612. integer * ipiv, real * anorm, real * rcond, real * work,
  3613. integer * iwork, integer * info, ftnlen uplo_len);
  3614. extern int ssyev_(char *jobz, char *uplo, integer * n, real * a,
  3615. integer * lda, real * w, real * work, integer * lwork,
  3616. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  3617. extern int ssyevd_(char *jobz, char *uplo, integer * n, real * a,
  3618. integer * lda, real * w, real * work, integer * lwork,
  3619. integer * iwork, integer * liwork, integer * info,
  3620. ftnlen jobz_len, ftnlen uplo_len);
  3621. extern int ssyevr_(char *jobz, char *range, char *uplo, integer * n, real * a,
  3622. integer * lda, real * vl, real * vu, integer * il,
  3623. integer * iu, real * abstol, integer * m, real * w,
  3624. real * z__, integer * ldz, integer * isuppz, real * work,
  3625. integer * lwork, integer * iwork, integer * liwork,
  3626. integer * info, ftnlen jobz_len, ftnlen range_len,
  3627. ftnlen uplo_len);
  3628. extern int ssyevx_(char *jobz, char *range, char *uplo, integer * n, real * a,
  3629. integer * lda, real * vl, real * vu, integer * il,
  3630. integer * iu, real * abstol, integer * m, real * w,
  3631. real * z__, integer * ldz, real * work, integer * lwork,
  3632. integer * iwork, integer * ifail, integer * info,
  3633. ftnlen jobz_len, ftnlen range_len, ftnlen uplo_len);
  3634. extern int ssygs2_(integer * itype, char *uplo, integer * n, real * a,
  3635. integer * lda, real * b, integer * ldb, integer * info,
  3636. ftnlen uplo_len);
  3637. extern int ssygst_(integer * itype, char *uplo, integer * n, real * a,
  3638. integer * lda, real * b, integer * ldb, integer * info,
  3639. ftnlen uplo_len);
  3640. extern int ssygv_(integer * itype, char *jobz, char *uplo, integer * n,
  3641. real * a, integer * lda, real * b, integer * ldb, real * w,
  3642. real * work, integer * lwork, integer * info,
  3643. ftnlen jobz_len, ftnlen uplo_len);
  3644. extern int ssygvd_(integer * itype, char *jobz, char *uplo, integer * n,
  3645. real * a, integer * lda, real * b, integer * ldb, real * w,
  3646. real * work, integer * lwork, integer * iwork,
  3647. integer * liwork, integer * info, ftnlen jobz_len,
  3648. ftnlen uplo_len);
  3649. extern int ssygvx_(integer * itype, char *jobz, char *range, char *uplo,
  3650. integer * n, real * a, integer * lda, real * b,
  3651. integer * ldb, real * vl, real * vu, integer * il,
  3652. integer * iu, real * abstol, integer * m, real * w,
  3653. real * z__, integer * ldz, real * work, integer * lwork,
  3654. integer * iwork, integer * ifail, integer * info,
  3655. ftnlen jobz_len, ftnlen range_len, ftnlen uplo_len);
  3656. extern int ssyrfs_(char *uplo, integer * n, integer * nrhs, real * a,
  3657. integer * lda, real * af, integer * ldaf, integer * ipiv,
  3658. real * b, integer * ldb, real * x, integer * ldx,
  3659. real * ferr, real * berr, real * work, integer * iwork,
  3660. integer * info, ftnlen uplo_len);
  3661. extern int ssysv_(char *uplo, integer * n, integer * nrhs, real * a,
  3662. integer * lda, integer * ipiv, real * b, integer * ldb,
  3663. real * work, integer * lwork, integer * info,
  3664. ftnlen uplo_len);
  3665. extern int ssysvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  3666. real * a, integer * lda, real * af, integer * ldaf,
  3667. integer * ipiv, real * b, integer * ldb, real * x,
  3668. integer * ldx, real * rcond, real * ferr, real * berr,
  3669. real * work, integer * lwork, integer * iwork,
  3670. integer * info, ftnlen fact_len, ftnlen uplo_len);
  3671. extern int ssytd2_(char *uplo, integer * n, real * a, integer * lda,
  3672. real * d__, real * e, real * tau, integer * info,
  3673. ftnlen uplo_len);
  3674. extern int ssytf2_(char *uplo, integer * n, real * a, integer * lda,
  3675. integer * ipiv, integer * info, ftnlen uplo_len);
  3676. extern int ssytrd_(char *uplo, integer * n, real * a, integer * lda,
  3677. real * d__, real * e, real * tau, real * work,
  3678. integer * lwork, integer * info, ftnlen uplo_len);
  3679. extern int ssytrf_(char *uplo, integer * n, real * a, integer * lda,
  3680. integer * ipiv, real * work, integer * lwork,
  3681. integer * info, ftnlen uplo_len);
  3682. extern int ssytri_(char *uplo, integer * n, real * a, integer * lda,
  3683. integer * ipiv, real * work, integer * info,
  3684. ftnlen uplo_len);
  3685. extern int ssytrs_(char *uplo, integer * n, integer * nrhs, real * a,
  3686. integer * lda, integer * ipiv, real * b, integer * ldb,
  3687. integer * info, ftnlen uplo_len);
  3688. extern int stbcon_(char *norm, char *uplo, char *diag, integer * n,
  3689. integer * kd, real * ab, integer * ldab, real * rcond,
  3690. real * work, integer * iwork, integer * info,
  3691. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  3692. extern int stbrfs_(char *uplo, char *trans, char *diag, integer * n,
  3693. integer * kd, integer * nrhs, real * ab, integer * ldab,
  3694. real * b, integer * ldb, real * x, integer * ldx,
  3695. real * ferr, real * berr, real * work, integer * iwork,
  3696. integer * info, ftnlen uplo_len, ftnlen trans_len,
  3697. ftnlen diag_len);
  3698. extern int stbtrs_(char *uplo, char *trans, char *diag, integer * n,
  3699. integer * kd, integer * nrhs, real * ab, integer * ldab,
  3700. real * b, integer * ldb, integer * info, ftnlen uplo_len,
  3701. ftnlen trans_len, ftnlen diag_len);
  3702. extern int stgevc_(char *side, char *howmny, logical * select, integer * n,
  3703. real * a, integer * lda, real * b, integer * ldb,
  3704. real * vl, integer * ldvl, real * vr, integer * ldvr,
  3705. integer * mm, integer * m, real * work, integer * info,
  3706. ftnlen side_len, ftnlen howmny_len);
  3707. extern int stgex2_(logical * wantq, logical * wantz, integer * n, real * a,
  3708. integer * lda, real * b, integer * ldb, real * q,
  3709. integer * ldq, real * z__, integer * ldz, integer * j1,
  3710. integer * n1, integer * n2, real * work, integer * lwork,
  3711. integer * info);
  3712. extern int stgexc_(logical * wantq, logical * wantz, integer * n, real * a,
  3713. integer * lda, real * b, integer * ldb, real * q,
  3714. integer * ldq, real * z__, integer * ldz, integer * ifst,
  3715. integer * ilst, real * work, integer * lwork,
  3716. integer * info);
  3717. extern int stgsen_(integer * ijob, logical * wantq, logical * wantz,
  3718. logical * select, integer * n, real * a, integer * lda,
  3719. real * b, integer * ldb, real * alphar, real * alphai,
  3720. real * beta, real * q, integer * ldq, real * z__,
  3721. integer * ldz, integer * m, real * pl, real * pr,
  3722. real * dif, real * work, integer * lwork, integer * iwork,
  3723. integer * liwork, integer * info);
  3724. extern int stgsja_(char *jobu, char *jobv, char *jobq, integer * m,
  3725. integer * p, integer * n, integer * k, integer * l,
  3726. real * a, integer * lda, real * b, integer * ldb,
  3727. real * tola, real * tolb, real * alpha, real * beta,
  3728. real * u, integer * ldu, real * v, integer * ldv, real * q,
  3729. integer * ldq, real * work, integer * ncycle,
  3730. integer * info, ftnlen jobu_len, ftnlen jobv_len,
  3731. ftnlen jobq_len);
  3732. extern int stgsna_(char *job, char *howmny, logical * select, integer * n,
  3733. real * a, integer * lda, real * b, integer * ldb,
  3734. real * vl, integer * ldvl, real * vr, integer * ldvr,
  3735. real * s, real * dif, integer * mm, integer * m,
  3736. real * work, integer * lwork, integer * iwork,
  3737. integer * info, ftnlen job_len, ftnlen howmny_len);
  3738. extern int stgsy2_(char *trans, integer * ijob, integer * m, integer * n,
  3739. real * a, integer * lda, real * b, integer * ldb,
  3740. real * c__, integer * ldc, real * d__, integer * ldd,
  3741. real * e, integer * lde, real * f, integer * ldf,
  3742. real * scale, real * rdsum, real * rdscal, integer * iwork,
  3743. integer * pq, integer * info, ftnlen trans_len);
  3744. extern int stgsyl_(char *trans, integer * ijob, integer * m, integer * n,
  3745. real * a, integer * lda, real * b, integer * ldb,
  3746. real * c__, integer * ldc, real * d__, integer * ldd,
  3747. real * e, integer * lde, real * f, integer * ldf,
  3748. real * scale, real * dif, real * work, integer * lwork,
  3749. integer * iwork, integer * info, ftnlen trans_len);
  3750. extern int stpcon_(char *norm, char *uplo, char *diag, integer * n, real * ap,
  3751. real * rcond, real * work, integer * iwork, integer * info,
  3752. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  3753. extern int stprfs_(char *uplo, char *trans, char *diag, integer * n,
  3754. integer * nrhs, real * ap, real * b, integer * ldb,
  3755. real * x, integer * ldx, real * ferr, real * berr,
  3756. real * work, integer * iwork, integer * info,
  3757. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len);
  3758. extern int stptri_(char *uplo, char *diag, integer * n, real * ap,
  3759. integer * info, ftnlen uplo_len, ftnlen diag_len);
  3760. extern int stptrs_(char *uplo, char *trans, char *diag, integer * n,
  3761. integer * nrhs, real * ap, real * b, integer * ldb,
  3762. integer * info, ftnlen uplo_len, ftnlen trans_len,
  3763. ftnlen diag_len);
  3764. extern int strcon_(char *norm, char *uplo, char *diag, integer * n, real * a,
  3765. integer * lda, real * rcond, real * work, integer * iwork,
  3766. integer * info, ftnlen norm_len, ftnlen uplo_len,
  3767. ftnlen diag_len);
  3768. extern int strevc_(char *side, char *howmny, logical * select, integer * n,
  3769. real * t, integer * ldt, real * vl, integer * ldvl,
  3770. real * vr, integer * ldvr, integer * mm, integer * m,
  3771. real * work, integer * info, ftnlen side_len,
  3772. ftnlen howmny_len);
  3773. extern int strexc_(char *compq, integer * n, real * t, integer * ldt,
  3774. real * q, integer * ldq, integer * ifst, integer * ilst,
  3775. real * work, integer * info, ftnlen compq_len);
  3776. extern int strrfs_(char *uplo, char *trans, char *diag, integer * n,
  3777. integer * nrhs, real * a, integer * lda, real * b,
  3778. integer * ldb, real * x, integer * ldx, real * ferr,
  3779. real * berr, real * work, integer * iwork, integer * info,
  3780. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len);
  3781. extern int strsen_(char *job, char *compq, logical * select, integer * n,
  3782. real * t, integer * ldt, real * q, integer * ldq,
  3783. real * wr, real * wi, integer * m, real * s, real * sep,
  3784. real * work, integer * lwork, integer * iwork,
  3785. integer * liwork, integer * info, ftnlen job_len,
  3786. ftnlen compq_len);
  3787. extern int strsna_(char *job, char *howmny, logical * select, integer * n,
  3788. real * t, integer * ldt, real * vl, integer * ldvl,
  3789. real * vr, integer * ldvr, real * s, real * sep,
  3790. integer * mm, integer * m, real * work, integer * ldwork,
  3791. integer * iwork, integer * info, ftnlen job_len,
  3792. ftnlen howmny_len);
  3793. extern int strsyl_(char *trana, char *tranb, integer * isgn, integer * m,
  3794. integer * n, real * a, integer * lda, real * b,
  3795. integer * ldb, real * c__, integer * ldc, real * scale,
  3796. integer * info, ftnlen trana_len, ftnlen tranb_len);
  3797. extern int strti2_(char *uplo, char *diag, integer * n, real * a,
  3798. integer * lda, integer * info, ftnlen uplo_len,
  3799. ftnlen diag_len);
  3800. extern int strtri_(char *uplo, char *diag, integer * n, real * a,
  3801. integer * lda, integer * info, ftnlen uplo_len,
  3802. ftnlen diag_len);
  3803. extern int strtrs_(char *uplo, char *trans, char *diag, integer * n,
  3804. integer * nrhs, real * a, integer * lda, real * b,
  3805. integer * ldb, integer * info, ftnlen uplo_len,
  3806. ftnlen trans_len, ftnlen diag_len);
  3807. extern int stzrqf_(integer * m, integer * n, real * a, integer * lda,
  3808. real * tau, integer * info);
  3809. extern int stzrzf_(integer * m, integer * n, real * a, integer * lda,
  3810. real * tau, real * work, integer * lwork, integer * info);
  3811. extern int xerbla_(char *srname, integer * info, ftnlen srname_len);
  3812. extern int zbdsqr_(char *uplo, integer * n, integer * ncvt, integer * nru,
  3813. integer * ncc, doublereal * d__, doublereal * e,
  3814. doublecomplex * vt, integer * ldvt, doublecomplex * u,
  3815. integer * ldu, doublecomplex * c__, integer * ldc,
  3816. doublereal * rwork, integer * info, ftnlen uplo_len);
  3817. extern int zdrot_(integer * n, doublecomplex * cx, integer * incx,
  3818. doublecomplex * cy, integer * incy, doublereal * c__,
  3819. doublereal * s);
  3820. extern int zdrscl_(integer * n, doublereal * sa, doublecomplex * sx,
  3821. integer * incx);
  3822. extern int zgbbrd_(char *vect, integer * m, integer * n, integer * ncc,
  3823. integer * kl, integer * ku, doublecomplex * ab,
  3824. integer * ldab, doublereal * d__, doublereal * e,
  3825. doublecomplex * q, integer * ldq, doublecomplex * pt,
  3826. integer * ldpt, doublecomplex * c__, integer * ldc,
  3827. doublecomplex * work, doublereal * rwork, integer * info,
  3828. ftnlen vect_len);
  3829. extern int zgbcon_(char *norm, integer * n, integer * kl, integer * ku,
  3830. doublecomplex * ab, integer * ldab, integer * ipiv,
  3831. doublereal * anorm, doublereal * rcond,
  3832. doublecomplex * work, doublereal * rwork, integer * info,
  3833. ftnlen norm_len);
  3834. extern int zgbequ_(integer * m, integer * n, integer * kl, integer * ku,
  3835. doublecomplex * ab, integer * ldab, doublereal * r__,
  3836. doublereal * c__, doublereal * rowcnd, doublereal * colcnd,
  3837. doublereal * amax, integer * info);
  3838. extern int zgbrfs_(char *trans, integer * n, integer * kl, integer * ku,
  3839. integer * nrhs, doublecomplex * ab, integer * ldab,
  3840. doublecomplex * afb, integer * ldafb, integer * ipiv,
  3841. doublecomplex * b, integer * ldb, doublecomplex * x,
  3842. integer * ldx, doublereal * ferr, doublereal * berr,
  3843. doublecomplex * work, doublereal * rwork, integer * info,
  3844. ftnlen trans_len);
  3845. extern int zgbsv_(integer * n, integer * kl, integer * ku, integer * nrhs,
  3846. doublecomplex * ab, integer * ldab, integer * ipiv,
  3847. doublecomplex * b, integer * ldb, integer * info);
  3848. extern int zgbsvx_(char *fact, char *trans, integer * n, integer * kl,
  3849. integer * ku, integer * nrhs, doublecomplex * ab,
  3850. integer * ldab, doublecomplex * afb, integer * ldafb,
  3851. integer * ipiv, char *equed, doublereal * r__,
  3852. doublereal * c__, doublecomplex * b, integer * ldb,
  3853. doublecomplex * x, integer * ldx, doublereal * rcond,
  3854. doublereal * ferr, doublereal * berr, doublecomplex * work,
  3855. doublereal * rwork, integer * info, ftnlen fact_len,
  3856. ftnlen trans_len, ftnlen equed_len);
  3857. extern int zgbtf2_(integer * m, integer * n, integer * kl, integer * ku,
  3858. doublecomplex * ab, integer * ldab, integer * ipiv,
  3859. integer * info);
  3860. extern int zgbtrf_(integer * m, integer * n, integer * kl, integer * ku,
  3861. doublecomplex * ab, integer * ldab, integer * ipiv,
  3862. integer * info);
  3863. extern int zgbtrs_(char *trans, integer * n, integer * kl, integer * ku,
  3864. integer * nrhs, doublecomplex * ab, integer * ldab,
  3865. integer * ipiv, doublecomplex * b, integer * ldb,
  3866. integer * info, ftnlen trans_len);
  3867. extern int zgebak_(char *job, char *side, integer * n, integer * ilo,
  3868. integer * ihi, doublereal * scale, integer * m,
  3869. doublecomplex * v, integer * ldv, integer * info,
  3870. ftnlen job_len, ftnlen side_len);
  3871. extern int zgebal_(char *job, integer * n, doublecomplex * a, integer * lda,
  3872. integer * ilo, integer * ihi, doublereal * scale,
  3873. integer * info, ftnlen job_len);
  3874. extern int zgebd2_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3875. doublereal * d__, doublereal * e, doublecomplex * tauq,
  3876. doublecomplex * taup, doublecomplex * work,
  3877. integer * info);
  3878. extern int zgebrd_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3879. doublereal * d__, doublereal * e, doublecomplex * tauq,
  3880. doublecomplex * taup, doublecomplex * work,
  3881. integer * lwork, integer * info);
  3882. extern int zgecon_(char *norm, integer * n, doublecomplex * a, integer * lda,
  3883. doublereal * anorm, doublereal * rcond,
  3884. doublecomplex * work, doublereal * rwork, integer * info,
  3885. ftnlen norm_len);
  3886. extern int zgeequ_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3887. doublereal * r__, doublereal * c__, doublereal * rowcnd,
  3888. doublereal * colcnd, doublereal * amax, integer * info);
  3889. extern int zgees_(char *jobvs, char *sort, L_fp select, integer * n,
  3890. doublecomplex * a, integer * lda, integer * sdim,
  3891. doublecomplex * w, doublecomplex * vs, integer * ldvs,
  3892. doublecomplex * work, integer * lwork, doublereal * rwork,
  3893. logical * bwork, integer * info, ftnlen jobvs_len,
  3894. ftnlen sort_len);
  3895. extern int zgeesx_(char *jobvs, char *sort, L_fp select, char *sense,
  3896. integer * n, doublecomplex * a, integer * lda,
  3897. integer * sdim, doublecomplex * w, doublecomplex * vs,
  3898. integer * ldvs, doublereal * rconde, doublereal * rcondv,
  3899. doublecomplex * work, integer * lwork, doublereal * rwork,
  3900. logical * bwork, integer * info, ftnlen jobvs_len,
  3901. ftnlen sort_len, ftnlen sense_len);
  3902. extern int zgeev_(char *jobvl, char *jobvr, integer * n, doublecomplex * a,
  3903. integer * lda, doublecomplex * w, doublecomplex * vl,
  3904. integer * ldvl, doublecomplex * vr, integer * ldvr,
  3905. doublecomplex * work, integer * lwork, doublereal * rwork,
  3906. integer * info, ftnlen jobvl_len, ftnlen jobvr_len);
  3907. extern int zgeevx_(char *balanc, char *jobvl, char *jobvr, char *sense,
  3908. integer * n, doublecomplex * a, integer * lda,
  3909. doublecomplex * w, doublecomplex * vl, integer * ldvl,
  3910. doublecomplex * vr, integer * ldvr, integer * ilo,
  3911. integer * ihi, doublereal * scale, doublereal * abnrm,
  3912. doublereal * rconde, doublereal * rcondv,
  3913. doublecomplex * work, integer * lwork, doublereal * rwork,
  3914. integer * info, ftnlen balanc_len, ftnlen jobvl_len,
  3915. ftnlen jobvr_len, ftnlen sense_len);
  3916. extern int zgegs_(char *jobvsl, char *jobvsr, integer * n, doublecomplex * a,
  3917. integer * lda, doublecomplex * b, integer * ldb,
  3918. doublecomplex * alpha, doublecomplex * beta,
  3919. doublecomplex * vsl, integer * ldvsl, doublecomplex * vsr,
  3920. integer * ldvsr, doublecomplex * work, integer * lwork,
  3921. doublereal * rwork, integer * info, ftnlen jobvsl_len,
  3922. ftnlen jobvsr_len);
  3923. extern int zgegv_(char *jobvl, char *jobvr, integer * n, doublecomplex * a,
  3924. integer * lda, doublecomplex * b, integer * ldb,
  3925. doublecomplex * alpha, doublecomplex * beta,
  3926. doublecomplex * vl, integer * ldvl, doublecomplex * vr,
  3927. integer * ldvr, doublecomplex * work, integer * lwork,
  3928. doublereal * rwork, integer * info, ftnlen jobvl_len,
  3929. ftnlen jobvr_len);
  3930. extern int zgehd2_(integer * n, integer * ilo, integer * ihi,
  3931. doublecomplex * a, integer * lda, doublecomplex * tau,
  3932. doublecomplex * work, integer * info);
  3933. extern int zgehrd_(integer * n, integer * ilo, integer * ihi,
  3934. doublecomplex * a, integer * lda, doublecomplex * tau,
  3935. doublecomplex * work, integer * lwork, integer * info);
  3936. extern int zgelq2_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3937. doublecomplex * tau, doublecomplex * work, integer * info);
  3938. extern int zgelqf_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3939. doublecomplex * tau, doublecomplex * work, integer * lwork,
  3940. integer * info);
  3941. extern int zgels_(char *trans, integer * m, integer * n, integer * nrhs,
  3942. doublecomplex * a, integer * lda, doublecomplex * b,
  3943. integer * ldb, doublecomplex * work, integer * lwork,
  3944. integer * info, ftnlen trans_len);
  3945. extern int zgelsd_(integer * m, integer * n, integer * nrhs,
  3946. doublecomplex * a, integer * lda, doublecomplex * b,
  3947. integer * ldb, doublereal * s, doublereal * rcond,
  3948. integer * rank, doublecomplex * work, integer * lwork,
  3949. doublereal * rwork, integer * iwork, integer * info);
  3950. extern int zgelss_(integer * m, integer * n, integer * nrhs,
  3951. doublecomplex * a, integer * lda, doublecomplex * b,
  3952. integer * ldb, doublereal * s, doublereal * rcond,
  3953. integer * rank, doublecomplex * work, integer * lwork,
  3954. doublereal * rwork, integer * info);
  3955. extern int zgelsx_(integer * m, integer * n, integer * nrhs,
  3956. doublecomplex * a, integer * lda, doublecomplex * b,
  3957. integer * ldb, integer * jpvt, doublereal * rcond,
  3958. integer * rank, doublecomplex * work, doublereal * rwork,
  3959. integer * info);
  3960. extern int zgelsy_(integer * m, integer * n, integer * nrhs,
  3961. doublecomplex * a, integer * lda, doublecomplex * b,
  3962. integer * ldb, integer * jpvt, doublereal * rcond,
  3963. integer * rank, doublecomplex * work, integer * lwork,
  3964. doublereal * rwork, integer * info);
  3965. extern int zgeql2_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3966. doublecomplex * tau, doublecomplex * work, integer * info);
  3967. extern int zgeqlf_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3968. doublecomplex * tau, doublecomplex * work, integer * lwork,
  3969. integer * info);
  3970. extern int zgeqp3_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3971. integer * jpvt, doublecomplex * tau, doublecomplex * work,
  3972. integer * lwork, doublereal * rwork, integer * info);
  3973. extern int zgeqpf_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3974. integer * jpvt, doublecomplex * tau, doublecomplex * work,
  3975. doublereal * rwork, integer * info);
  3976. extern int zgeqr2_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3977. doublecomplex * tau, doublecomplex * work, integer * info);
  3978. extern int zgeqrf_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3979. doublecomplex * tau, doublecomplex * work, integer * lwork,
  3980. integer * info);
  3981. extern int zgerfs_(char *trans, integer * n, integer * nrhs,
  3982. doublecomplex * a, integer * lda, doublecomplex * af,
  3983. integer * ldaf, integer * ipiv, doublecomplex * b,
  3984. integer * ldb, doublecomplex * x, integer * ldx,
  3985. doublereal * ferr, doublereal * berr, doublecomplex * work,
  3986. doublereal * rwork, integer * info, ftnlen trans_len);
  3987. extern int zgerq2_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3988. doublecomplex * tau, doublecomplex * work, integer * info);
  3989. extern int zgerqf_(integer * m, integer * n, doublecomplex * a, integer * lda,
  3990. doublecomplex * tau, doublecomplex * work, integer * lwork,
  3991. integer * info);
  3992. extern int zgesc2_(integer * n, doublecomplex * a, integer * lda,
  3993. doublecomplex * rhs, integer * ipiv, integer * jpiv,
  3994. doublereal * scale);
  3995. extern int zgesdd_(char *jobz, integer * m, integer * n, doublecomplex * a,
  3996. integer * lda, doublereal * s, doublecomplex * u,
  3997. integer * ldu, doublecomplex * vt, integer * ldvt,
  3998. doublecomplex * work, integer * lwork, doublereal * rwork,
  3999. integer * iwork, integer * info, ftnlen jobz_len);
  4000. extern int zgesv_(integer * n, integer * nrhs, doublecomplex * a,
  4001. integer * lda, integer * ipiv, doublecomplex * b,
  4002. integer * ldb, integer * info);
  4003. extern int zgesvd_(char *jobu, char *jobvt, integer * m, integer * n,
  4004. doublecomplex * a, integer * lda, doublereal * s,
  4005. doublecomplex * u, integer * ldu, doublecomplex * vt,
  4006. integer * ldvt, doublecomplex * work, integer * lwork,
  4007. doublereal * rwork, integer * info, ftnlen jobu_len,
  4008. ftnlen jobvt_len);
  4009. extern int zgesvx_(char *fact, char *trans, integer * n, integer * nrhs,
  4010. doublecomplex * a, integer * lda, doublecomplex * af,
  4011. integer * ldaf, integer * ipiv, char *equed,
  4012. doublereal * r__, doublereal * c__, doublecomplex * b,
  4013. integer * ldb, doublecomplex * x, integer * ldx,
  4014. doublereal * rcond, doublereal * ferr, doublereal * berr,
  4015. doublecomplex * work, doublereal * rwork, integer * info,
  4016. ftnlen fact_len, ftnlen trans_len, ftnlen equed_len);
  4017. extern int zgetc2_(integer * n, doublecomplex * a, integer * lda,
  4018. integer * ipiv, integer * jpiv, integer * info);
  4019. extern int zgetf2_(integer * m, integer * n, doublecomplex * a, integer * lda,
  4020. integer * ipiv, integer * info);
  4021. extern int zgetrf_(integer * m, integer * n, doublecomplex * a, integer * lda,
  4022. integer * ipiv, integer * info);
  4023. extern int zgetri_(integer * n, doublecomplex * a, integer * lda,
  4024. integer * ipiv, doublecomplex * work, integer * lwork,
  4025. integer * info);
  4026. extern int zgetrs_(char *trans, integer * n, integer * nrhs,
  4027. doublecomplex * a, integer * lda, integer * ipiv,
  4028. doublecomplex * b, integer * ldb, integer * info,
  4029. ftnlen trans_len);
  4030. extern int zggbak_(char *job, char *side, integer * n, integer * ilo,
  4031. integer * ihi, doublereal * lscale, doublereal * rscale,
  4032. integer * m, doublecomplex * v, integer * ldv,
  4033. integer * info, ftnlen job_len, ftnlen side_len);
  4034. extern int zggbal_(char *job, integer * n, doublecomplex * a, integer * lda,
  4035. doublecomplex * b, integer * ldb, integer * ilo,
  4036. integer * ihi, doublereal * lscale, doublereal * rscale,
  4037. doublereal * work, integer * info, ftnlen job_len);
  4038. extern int zgges_(char *jobvsl, char *jobvsr, char *sort, L_fp delctg,
  4039. integer * n, doublecomplex * a, integer * lda,
  4040. doublecomplex * b, integer * ldb, integer * sdim,
  4041. doublecomplex * alpha, doublecomplex * beta,
  4042. doublecomplex * vsl, integer * ldvsl, doublecomplex * vsr,
  4043. integer * ldvsr, doublecomplex * work, integer * lwork,
  4044. doublereal * rwork, logical * bwork, integer * info,
  4045. ftnlen jobvsl_len, ftnlen jobvsr_len, ftnlen sort_len);
  4046. extern int zggesx_(char *jobvsl, char *jobvsr, char *sort, L_fp delctg,
  4047. char *sense, integer * n, doublecomplex * a, integer * lda,
  4048. doublecomplex * b, integer * ldb, integer * sdim,
  4049. doublecomplex * alpha, doublecomplex * beta,
  4050. doublecomplex * vsl, integer * ldvsl, doublecomplex * vsr,
  4051. integer * ldvsr, doublereal * rconde, doublereal * rcondv,
  4052. doublecomplex * work, integer * lwork, doublereal * rwork,
  4053. integer * iwork, integer * liwork, logical * bwork,
  4054. integer * info, ftnlen jobvsl_len, ftnlen jobvsr_len,
  4055. ftnlen sort_len, ftnlen sense_len);
  4056. extern int zggev_(char *jobvl, char *jobvr, integer * n, doublecomplex * a,
  4057. integer * lda, doublecomplex * b, integer * ldb,
  4058. doublecomplex * alpha, doublecomplex * beta,
  4059. doublecomplex * vl, integer * ldvl, doublecomplex * vr,
  4060. integer * ldvr, doublecomplex * work, integer * lwork,
  4061. doublereal * rwork, integer * info, ftnlen jobvl_len,
  4062. ftnlen jobvr_len);
  4063. extern int zggevx_(char *balanc, char *jobvl, char *jobvr, char *sense,
  4064. integer * n, doublecomplex * a, integer * lda,
  4065. doublecomplex * b, integer * ldb, doublecomplex * alpha,
  4066. doublecomplex * beta, doublecomplex * vl, integer * ldvl,
  4067. doublecomplex * vr, integer * ldvr, integer * ilo,
  4068. integer * ihi, doublereal * lscale, doublereal * rscale,
  4069. doublereal * abnrm, doublereal * bbnrm,
  4070. doublereal * rconde, doublereal * rcondv,
  4071. doublecomplex * work, integer * lwork, doublereal * rwork,
  4072. integer * iwork, logical * bwork, integer * info,
  4073. ftnlen balanc_len, ftnlen jobvl_len, ftnlen jobvr_len,
  4074. ftnlen sense_len);
  4075. extern int zggglm_(integer * n, integer * m, integer * p, doublecomplex * a,
  4076. integer * lda, doublecomplex * b, integer * ldb,
  4077. doublecomplex * d__, doublecomplex * x, doublecomplex * y,
  4078. doublecomplex * work, integer * lwork, integer * info);
  4079. extern int zgghrd_(char *compq, char *compz, integer * n, integer * ilo,
  4080. integer * ihi, doublecomplex * a, integer * lda,
  4081. doublecomplex * b, integer * ldb, doublecomplex * q,
  4082. integer * ldq, doublecomplex * z__, integer * ldz,
  4083. integer * info, ftnlen compq_len, ftnlen compz_len);
  4084. extern int zgglse_(integer * m, integer * n, integer * p, doublecomplex * a,
  4085. integer * lda, doublecomplex * b, integer * ldb,
  4086. doublecomplex * c__, doublecomplex * d__,
  4087. doublecomplex * x, doublecomplex * work, integer * lwork,
  4088. integer * info);
  4089. extern int zggqrf_(integer * n, integer * m, integer * p, doublecomplex * a,
  4090. integer * lda, doublecomplex * taua, doublecomplex * b,
  4091. integer * ldb, doublecomplex * taub, doublecomplex * work,
  4092. integer * lwork, integer * info);
  4093. extern int zggrqf_(integer * m, integer * p, integer * n, doublecomplex * a,
  4094. integer * lda, doublecomplex * taua, doublecomplex * b,
  4095. integer * ldb, doublecomplex * taub, doublecomplex * work,
  4096. integer * lwork, integer * info);
  4097. extern int zggsvd_(char *jobu, char *jobv, char *jobq, integer * m,
  4098. integer * n, integer * p, integer * k, integer * l,
  4099. doublecomplex * a, integer * lda, doublecomplex * b,
  4100. integer * ldb, doublereal * alpha, doublereal * beta,
  4101. doublecomplex * u, integer * ldu, doublecomplex * v,
  4102. integer * ldv, doublecomplex * q, integer * ldq,
  4103. doublecomplex * work, doublereal * rwork, integer * iwork,
  4104. integer * info, ftnlen jobu_len, ftnlen jobv_len,
  4105. ftnlen jobq_len);
  4106. extern int zggsvp_(char *jobu, char *jobv, char *jobq, integer * m,
  4107. integer * p, integer * n, doublecomplex * a, integer * lda,
  4108. doublecomplex * b, integer * ldb, doublereal * tola,
  4109. doublereal * tolb, integer * k, integer * l,
  4110. doublecomplex * u, integer * ldu, doublecomplex * v,
  4111. integer * ldv, doublecomplex * q, integer * ldq,
  4112. integer * iwork, doublereal * rwork, doublecomplex * tau,
  4113. doublecomplex * work, integer * info, ftnlen jobu_len,
  4114. ftnlen jobv_len, ftnlen jobq_len);
  4115. extern int zgtcon_(char *norm, integer * n, doublecomplex * dl,
  4116. doublecomplex * d__, doublecomplex * du,
  4117. doublecomplex * du2, integer * ipiv, doublereal * anorm,
  4118. doublereal * rcond, doublecomplex * work, integer * info,
  4119. ftnlen norm_len);
  4120. extern int zgtrfs_(char *trans, integer * n, integer * nrhs,
  4121. doublecomplex * dl, doublecomplex * d__,
  4122. doublecomplex * du, doublecomplex * dlf,
  4123. doublecomplex * df, doublecomplex * duf,
  4124. doublecomplex * du2, integer * ipiv, doublecomplex * b,
  4125. integer * ldb, doublecomplex * x, integer * ldx,
  4126. doublereal * ferr, doublereal * berr, doublecomplex * work,
  4127. doublereal * rwork, integer * info, ftnlen trans_len);
  4128. extern int zgtsv_(integer * n, integer * nrhs, doublecomplex * dl,
  4129. doublecomplex * d__, doublecomplex * du, doublecomplex * b,
  4130. integer * ldb, integer * info);
  4131. extern int zgtsvx_(char *fact, char *trans, integer * n, integer * nrhs,
  4132. doublecomplex * dl, doublecomplex * d__,
  4133. doublecomplex * du, doublecomplex * dlf,
  4134. doublecomplex * df, doublecomplex * duf,
  4135. doublecomplex * du2, integer * ipiv, doublecomplex * b,
  4136. integer * ldb, doublecomplex * x, integer * ldx,
  4137. doublereal * rcond, doublereal * ferr, doublereal * berr,
  4138. doublecomplex * work, doublereal * rwork, integer * info,
  4139. ftnlen fact_len, ftnlen trans_len);
  4140. extern int zgttrf_(integer * n, doublecomplex * dl, doublecomplex * d__,
  4141. doublecomplex * du, doublecomplex * du2, integer * ipiv,
  4142. integer * info);
  4143. extern int zgttrs_(char *trans, integer * n, integer * nrhs,
  4144. doublecomplex * dl, doublecomplex * d__,
  4145. doublecomplex * du, doublecomplex * du2, integer * ipiv,
  4146. doublecomplex * b, integer * ldb, integer * info,
  4147. ftnlen trans_len);
  4148. extern int zgtts2_(integer * itrans, integer * n, integer * nrhs,
  4149. doublecomplex * dl, doublecomplex * d__,
  4150. doublecomplex * du, doublecomplex * du2, integer * ipiv,
  4151. doublecomplex * b, integer * ldb);
  4152. extern int zhbev_(char *jobz, char *uplo, integer * n, integer * kd,
  4153. doublecomplex * ab, integer * ldab, doublereal * w,
  4154. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4155. doublereal * rwork, integer * info, ftnlen jobz_len,
  4156. ftnlen uplo_len);
  4157. extern int zhbevd_(char *jobz, char *uplo, integer * n, integer * kd,
  4158. doublecomplex * ab, integer * ldab, doublereal * w,
  4159. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4160. integer * lwork, doublereal * rwork, integer * lrwork,
  4161. integer * iwork, integer * liwork, integer * info,
  4162. ftnlen jobz_len, ftnlen uplo_len);
  4163. extern int zhbevx_(char *jobz, char *range, char *uplo, integer * n,
  4164. integer * kd, doublecomplex * ab, integer * ldab,
  4165. doublecomplex * q, integer * ldq, doublereal * vl,
  4166. doublereal * vu, integer * il, integer * iu,
  4167. doublereal * abstol, integer * m, doublereal * w,
  4168. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4169. doublereal * rwork, integer * iwork, integer * ifail,
  4170. integer * info, ftnlen jobz_len, ftnlen range_len,
  4171. ftnlen uplo_len);
  4172. extern int zhbgst_(char *vect, char *uplo, integer * n, integer * ka,
  4173. integer * kb, doublecomplex * ab, integer * ldab,
  4174. doublecomplex * bb, integer * ldbb, doublecomplex * x,
  4175. integer * ldx, doublecomplex * work, doublereal * rwork,
  4176. integer * info, ftnlen vect_len, ftnlen uplo_len);
  4177. extern int zhbgv_(char *jobz, char *uplo, integer * n, integer * ka,
  4178. integer * kb, doublecomplex * ab, integer * ldab,
  4179. doublecomplex * bb, integer * ldbb, doublereal * w,
  4180. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4181. doublereal * rwork, integer * info, ftnlen jobz_len,
  4182. ftnlen uplo_len);
  4183. extern int zhbgvd_(char *jobz, char *uplo, integer * n, integer * ka,
  4184. integer * kb, doublecomplex * ab, integer * ldab,
  4185. doublecomplex * bb, integer * ldbb, doublereal * w,
  4186. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4187. integer * lwork, doublereal * rwork, integer * lrwork,
  4188. integer * iwork, integer * liwork, integer * info,
  4189. ftnlen jobz_len, ftnlen uplo_len);
  4190. extern int zhbgvx_(char *jobz, char *range, char *uplo, integer * n,
  4191. integer * ka, integer * kb, doublecomplex * ab,
  4192. integer * ldab, doublecomplex * bb, integer * ldbb,
  4193. doublecomplex * q, integer * ldq, doublereal * vl,
  4194. doublereal * vu, integer * il, integer * iu,
  4195. doublereal * abstol, integer * m, doublereal * w,
  4196. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4197. doublereal * rwork, integer * iwork, integer * ifail,
  4198. integer * info, ftnlen jobz_len, ftnlen range_len,
  4199. ftnlen uplo_len);
  4200. extern int zhbtrd_(char *vect, char *uplo, integer * n, integer * kd,
  4201. doublecomplex * ab, integer * ldab, doublereal * d__,
  4202. doublereal * e, doublecomplex * q, integer * ldq,
  4203. doublecomplex * work, integer * info, ftnlen vect_len,
  4204. ftnlen uplo_len);
  4205. extern int zhecon_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4206. integer * ipiv, doublereal * anorm, doublereal * rcond,
  4207. doublecomplex * work, integer * info, ftnlen uplo_len);
  4208. extern int zheev_(char *jobz, char *uplo, integer * n, doublecomplex * a,
  4209. integer * lda, doublereal * w, doublecomplex * work,
  4210. integer * lwork, doublereal * rwork, integer * info,
  4211. ftnlen jobz_len, ftnlen uplo_len);
  4212. extern int zheevd_(char *jobz, char *uplo, integer * n, doublecomplex * a,
  4213. integer * lda, doublereal * w, doublecomplex * work,
  4214. integer * lwork, doublereal * rwork, integer * lrwork,
  4215. integer * iwork, integer * liwork, integer * info,
  4216. ftnlen jobz_len, ftnlen uplo_len);
  4217. extern int zheevr_(char *jobz, char *range, char *uplo, integer * n,
  4218. doublecomplex * a, integer * lda, doublereal * vl,
  4219. doublereal * vu, integer * il, integer * iu,
  4220. doublereal * abstol, integer * m, doublereal * w,
  4221. doublecomplex * z__, integer * ldz, integer * isuppz,
  4222. doublecomplex * work, integer * lwork, doublereal * rwork,
  4223. integer * lrwork, integer * iwork, integer * liwork,
  4224. integer * info, ftnlen jobz_len, ftnlen range_len,
  4225. ftnlen uplo_len);
  4226. extern int zheevx_(char *jobz, char *range, char *uplo, integer * n,
  4227. doublecomplex * a, integer * lda, doublereal * vl,
  4228. doublereal * vu, integer * il, integer * iu,
  4229. doublereal * abstol, integer * m, doublereal * w,
  4230. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4231. integer * lwork, doublereal * rwork, integer * iwork,
  4232. integer * ifail, integer * info, ftnlen jobz_len,
  4233. ftnlen range_len, ftnlen uplo_len);
  4234. extern int zhegs2_(integer * itype, char *uplo, integer * n,
  4235. doublecomplex * a, integer * lda, doublecomplex * b,
  4236. integer * ldb, integer * info, ftnlen uplo_len);
  4237. extern int zhegst_(integer * itype, char *uplo, integer * n,
  4238. doublecomplex * a, integer * lda, doublecomplex * b,
  4239. integer * ldb, integer * info, ftnlen uplo_len);
  4240. extern int zhegv_(integer * itype, char *jobz, char *uplo, integer * n,
  4241. doublecomplex * a, integer * lda, doublecomplex * b,
  4242. integer * ldb, doublereal * w, doublecomplex * work,
  4243. integer * lwork, doublereal * rwork, integer * info,
  4244. ftnlen jobz_len, ftnlen uplo_len);
  4245. extern int zhegvd_(integer * itype, char *jobz, char *uplo, integer * n,
  4246. doublecomplex * a, integer * lda, doublecomplex * b,
  4247. integer * ldb, doublereal * w, doublecomplex * work,
  4248. integer * lwork, doublereal * rwork, integer * lrwork,
  4249. integer * iwork, integer * liwork, integer * info,
  4250. ftnlen jobz_len, ftnlen uplo_len);
  4251. extern int zhegvx_(integer * itype, char *jobz, char *range, char *uplo,
  4252. integer * n, doublecomplex * a, integer * lda,
  4253. doublecomplex * b, integer * ldb, doublereal * vl,
  4254. doublereal * vu, integer * il, integer * iu,
  4255. doublereal * abstol, integer * m, doublereal * w,
  4256. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4257. integer * lwork, doublereal * rwork, integer * iwork,
  4258. integer * ifail, integer * info, ftnlen jobz_len,
  4259. ftnlen range_len, ftnlen uplo_len);
  4260. extern int zherfs_(char *uplo, integer * n, integer * nrhs, doublecomplex * a,
  4261. integer * lda, doublecomplex * af, integer * ldaf,
  4262. integer * ipiv, doublecomplex * b, integer * ldb,
  4263. doublecomplex * x, integer * ldx, doublereal * ferr,
  4264. doublereal * berr, doublecomplex * work,
  4265. doublereal * rwork, integer * info, ftnlen uplo_len);
  4266. extern int zhesv_(char *uplo, integer * n, integer * nrhs, doublecomplex * a,
  4267. integer * lda, integer * ipiv, doublecomplex * b,
  4268. integer * ldb, doublecomplex * work, integer * lwork,
  4269. integer * info, ftnlen uplo_len);
  4270. extern int zhesvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  4271. doublecomplex * a, integer * lda, doublecomplex * af,
  4272. integer * ldaf, integer * ipiv, doublecomplex * b,
  4273. integer * ldb, doublecomplex * x, integer * ldx,
  4274. doublereal * rcond, doublereal * ferr, doublereal * berr,
  4275. doublecomplex * work, integer * lwork, doublereal * rwork,
  4276. integer * info, ftnlen fact_len, ftnlen uplo_len);
  4277. extern int zhetd2_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4278. doublereal * d__, doublereal * e, doublecomplex * tau,
  4279. integer * info, ftnlen uplo_len);
  4280. extern int zhetf2_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4281. integer * ipiv, integer * info, ftnlen uplo_len);
  4282. extern int zhetrd_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4283. doublereal * d__, doublereal * e, doublecomplex * tau,
  4284. doublecomplex * work, integer * lwork, integer * info,
  4285. ftnlen uplo_len);
  4286. extern int zhetrf_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4287. integer * ipiv, doublecomplex * work, integer * lwork,
  4288. integer * info, ftnlen uplo_len);
  4289. extern int zhetri_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4290. integer * ipiv, doublecomplex * work, integer * info,
  4291. ftnlen uplo_len);
  4292. extern int zhetrs_(char *uplo, integer * n, integer * nrhs, doublecomplex * a,
  4293. integer * lda, integer * ipiv, doublecomplex * b,
  4294. integer * ldb, integer * info, ftnlen uplo_len);
  4295. extern int zhgeqz_(char *job, char *compq, char *compz, integer * n,
  4296. integer * ilo, integer * ihi, doublecomplex * a,
  4297. integer * lda, doublecomplex * b, integer * ldb,
  4298. doublecomplex * alpha, doublecomplex * beta,
  4299. doublecomplex * q, integer * ldq, doublecomplex * z__,
  4300. integer * ldz, doublecomplex * work, integer * lwork,
  4301. doublereal * rwork, integer * info, ftnlen job_len,
  4302. ftnlen compq_len, ftnlen compz_len);
  4303. extern int zhpcon_(char *uplo, integer * n, doublecomplex * ap,
  4304. integer * ipiv, doublereal * anorm, doublereal * rcond,
  4305. doublecomplex * work, integer * info, ftnlen uplo_len);
  4306. extern int zhpev_(char *jobz, char *uplo, integer * n, doublecomplex * ap,
  4307. doublereal * w, doublecomplex * z__, integer * ldz,
  4308. doublecomplex * work, doublereal * rwork, integer * info,
  4309. ftnlen jobz_len, ftnlen uplo_len);
  4310. extern int zhpevd_(char *jobz, char *uplo, integer * n, doublecomplex * ap,
  4311. doublereal * w, doublecomplex * z__, integer * ldz,
  4312. doublecomplex * work, integer * lwork, doublereal * rwork,
  4313. integer * lrwork, integer * iwork, integer * liwork,
  4314. integer * info, ftnlen jobz_len, ftnlen uplo_len);
  4315. extern int zhpevx_(char *jobz, char *range, char *uplo, integer * n,
  4316. doublecomplex * ap, doublereal * vl, doublereal * vu,
  4317. integer * il, integer * iu, doublereal * abstol,
  4318. integer * m, doublereal * w, doublecomplex * z__,
  4319. integer * ldz, doublecomplex * work, doublereal * rwork,
  4320. integer * iwork, integer * ifail, integer * info,
  4321. ftnlen jobz_len, ftnlen range_len, ftnlen uplo_len);
  4322. extern int zhpgst_(integer * itype, char *uplo, integer * n,
  4323. doublecomplex * ap, doublecomplex * bp, integer * info,
  4324. ftnlen uplo_len);
  4325. extern int zhpgv_(integer * itype, char *jobz, char *uplo, integer * n,
  4326. doublecomplex * ap, doublecomplex * bp, doublereal * w,
  4327. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4328. doublereal * rwork, integer * info, ftnlen jobz_len,
  4329. ftnlen uplo_len);
  4330. extern int zhpgvd_(integer * itype, char *jobz, char *uplo, integer * n,
  4331. doublecomplex * ap, doublecomplex * bp, doublereal * w,
  4332. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4333. integer * lwork, doublereal * rwork, integer * lrwork,
  4334. integer * iwork, integer * liwork, integer * info,
  4335. ftnlen jobz_len, ftnlen uplo_len);
  4336. extern int zhpgvx_(integer * itype, char *jobz, char *range, char *uplo,
  4337. integer * n, doublecomplex * ap, doublecomplex * bp,
  4338. doublereal * vl, doublereal * vu, integer * il,
  4339. integer * iu, doublereal * abstol, integer * m,
  4340. doublereal * w, doublecomplex * z__, integer * ldz,
  4341. doublecomplex * work, doublereal * rwork, integer * iwork,
  4342. integer * ifail, integer * info, ftnlen jobz_len,
  4343. ftnlen range_len, ftnlen uplo_len);
  4344. extern int zhprfs_(char *uplo, integer * n, integer * nrhs,
  4345. doublecomplex * ap, doublecomplex * afp, integer * ipiv,
  4346. doublecomplex * b, integer * ldb, doublecomplex * x,
  4347. integer * ldx, doublereal * ferr, doublereal * berr,
  4348. doublecomplex * work, doublereal * rwork, integer * info,
  4349. ftnlen uplo_len);
  4350. extern int zhpsv_(char *uplo, integer * n, integer * nrhs, doublecomplex * ap,
  4351. integer * ipiv, doublecomplex * b, integer * ldb,
  4352. integer * info, ftnlen uplo_len);
  4353. extern int zhpsvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  4354. doublecomplex * ap, doublecomplex * afp, integer * ipiv,
  4355. doublecomplex * b, integer * ldb, doublecomplex * x,
  4356. integer * ldx, doublereal * rcond, doublereal * ferr,
  4357. doublereal * berr, doublecomplex * work,
  4358. doublereal * rwork, integer * info, ftnlen fact_len,
  4359. ftnlen uplo_len);
  4360. extern int zhptrd_(char *uplo, integer * n, doublecomplex * ap,
  4361. doublereal * d__, doublereal * e, doublecomplex * tau,
  4362. integer * info, ftnlen uplo_len);
  4363. extern int zhptrf_(char *uplo, integer * n, doublecomplex * ap,
  4364. integer * ipiv, integer * info, ftnlen uplo_len);
  4365. extern int zhptri_(char *uplo, integer * n, doublecomplex * ap,
  4366. integer * ipiv, doublecomplex * work, integer * info,
  4367. ftnlen uplo_len);
  4368. extern int zhptrs_(char *uplo, integer * n, integer * nrhs,
  4369. doublecomplex * ap, integer * ipiv, doublecomplex * b,
  4370. integer * ldb, integer * info, ftnlen uplo_len);
  4371. extern int zhsein_(char *side, char *eigsrc, char *initv, logical * select,
  4372. integer * n, doublecomplex * h__, integer * ldh,
  4373. doublecomplex * w, doublecomplex * vl, integer * ldvl,
  4374. doublecomplex * vr, integer * ldvr, integer * mm,
  4375. integer * m, doublecomplex * work, doublereal * rwork,
  4376. integer * ifaill, integer * ifailr, integer * info,
  4377. ftnlen side_len, ftnlen eigsrc_len, ftnlen initv_len);
  4378. extern int zhseqr_(char *job, char *compz, integer * n, integer * ilo,
  4379. integer * ihi, doublecomplex * h__, integer * ldh,
  4380. doublecomplex * w, doublecomplex * z__, integer * ldz,
  4381. doublecomplex * work, integer * lwork, integer * info,
  4382. ftnlen job_len, ftnlen compz_len);
  4383. extern int zlabrd_(integer * m, integer * n, integer * nb, doublecomplex * a,
  4384. integer * lda, doublereal * d__, doublereal * e,
  4385. doublecomplex * tauq, doublecomplex * taup,
  4386. doublecomplex * x, integer * ldx, doublecomplex * y,
  4387. integer * ldy);
  4388. extern int zlacgv_(integer * n, doublecomplex * x, integer * incx);
  4389. extern int zlacon_(integer * n, doublecomplex * v, doublecomplex * x,
  4390. doublereal * est, integer * kase);
  4391. extern int zlacp2_(char *uplo, integer * m, integer * n, doublereal * a,
  4392. integer * lda, doublecomplex * b, integer * ldb,
  4393. ftnlen uplo_len);
  4394. extern int zlacpy_(char *uplo, integer * m, integer * n, doublecomplex * a,
  4395. integer * lda, doublecomplex * b, integer * ldb,
  4396. ftnlen uplo_len);
  4397. extern int zlacrm_(integer * m, integer * n, doublecomplex * a, integer * lda,
  4398. doublereal * b, integer * ldb, doublecomplex * c__,
  4399. integer * ldc, doublereal * rwork);
  4400. extern int zlacrt_(integer * n, doublecomplex * cx, integer * incx,
  4401. doublecomplex * cy, integer * incy, doublecomplex * c__,
  4402. doublecomplex * s);
  4403. extern Z_f zladiv_(doublecomplex * ret_val, doublecomplex * x,
  4404. doublecomplex * y);
  4405. extern int zlaed0_(integer * qsiz, integer * n, doublereal * d__,
  4406. doublereal * e, doublecomplex * q, integer * ldq,
  4407. doublecomplex * qstore, integer * ldqs, doublereal * rwork,
  4408. integer * iwork, integer * info);
  4409. extern int zlaed7_(integer * n, integer * cutpnt, integer * qsiz,
  4410. integer * tlvls, integer * curlvl, integer * curpbm,
  4411. doublereal * d__, doublecomplex * q, integer * ldq,
  4412. doublereal * rho, integer * indxq, doublereal * qstore,
  4413. integer * qptr, integer * prmptr, integer * perm,
  4414. integer * givptr, integer * givcol, doublereal * givnum,
  4415. doublecomplex * work, doublereal * rwork, integer * iwork,
  4416. integer * info);
  4417. extern int zlaed8_(integer * k, integer * n, integer * qsiz,
  4418. doublecomplex * q, integer * ldq, doublereal * d__,
  4419. doublereal * rho, integer * cutpnt, doublereal * z__,
  4420. doublereal * dlamda, doublecomplex * q2, integer * ldq2,
  4421. doublereal * w, integer * indxp, integer * indx,
  4422. integer * indxq, integer * perm, integer * givptr,
  4423. integer * givcol, doublereal * givnum, integer * info);
  4424. extern int zlaein_(logical * rightv, logical * noinit, integer * n,
  4425. doublecomplex * h__, integer * ldh, doublecomplex * w,
  4426. doublecomplex * v, doublecomplex * b, integer * ldb,
  4427. doublereal * rwork, doublereal * eps3, doublereal * smlnum,
  4428. integer * info);
  4429. extern int zlaesy_(doublecomplex * a, doublecomplex * b, doublecomplex * c__,
  4430. doublecomplex * rt1, doublecomplex * rt2,
  4431. doublecomplex * evscal, doublecomplex * cs1,
  4432. doublecomplex * sn1);
  4433. extern int zlaev2_(doublecomplex * a, doublecomplex * b, doublecomplex * c__,
  4434. doublereal * rt1, doublereal * rt2, doublereal * cs1,
  4435. doublecomplex * sn1);
  4436. extern int zlags2_(logical * upper, doublereal * a1, doublecomplex * a2,
  4437. doublereal * a3, doublereal * b1, doublecomplex * b2,
  4438. doublereal * b3, doublereal * csu, doublecomplex * snu,
  4439. doublereal * csv, doublecomplex * snv, doublereal * csq,
  4440. doublecomplex * snq);
  4441. extern int zlagtm_(char *trans, integer * n, integer * nrhs,
  4442. doublereal * alpha, doublecomplex * dl,
  4443. doublecomplex * d__, doublecomplex * du, doublecomplex * x,
  4444. integer * ldx, doublereal * beta, doublecomplex * b,
  4445. integer * ldb, ftnlen trans_len);
  4446. extern int zlahef_(char *uplo, integer * n, integer * nb, integer * kb,
  4447. doublecomplex * a, integer * lda, integer * ipiv,
  4448. doublecomplex * w, integer * ldw, integer * info,
  4449. ftnlen uplo_len);
  4450. extern int zlahqr_(logical * wantt, logical * wantz, integer * n,
  4451. integer * ilo, integer * ihi, doublecomplex * h__,
  4452. integer * ldh, doublecomplex * w, integer * iloz,
  4453. integer * ihiz, doublecomplex * z__, integer * ldz,
  4454. integer * info);
  4455. extern int zlahrd_(integer * n, integer * k, integer * nb, doublecomplex * a,
  4456. integer * lda, doublecomplex * tau, doublecomplex * t,
  4457. integer * ldt, doublecomplex * y, integer * ldy);
  4458. extern int zlaic1_(integer * job, integer * j, doublecomplex * x,
  4459. doublereal * sest, doublecomplex * w,
  4460. doublecomplex * gamma, doublereal * sestpr,
  4461. doublecomplex * s, doublecomplex * c__);
  4462. extern int zlals0_(integer * icompq, integer * nl, integer * nr,
  4463. integer * sqre, integer * nrhs, doublecomplex * b,
  4464. integer * ldb, doublecomplex * bx, integer * ldbx,
  4465. integer * perm, integer * givptr, integer * givcol,
  4466. integer * ldgcol, doublereal * givnum, integer * ldgnum,
  4467. doublereal * poles, doublereal * difl, doublereal * difr,
  4468. doublereal * z__, integer * k, doublereal * c__,
  4469. doublereal * s, doublereal * rwork, integer * info);
  4470. extern int zlalsa_(integer * icompq, integer * smlsiz, integer * n,
  4471. integer * nrhs, doublecomplex * b, integer * ldb,
  4472. doublecomplex * bx, integer * ldbx, doublereal * u,
  4473. integer * ldu, doublereal * vt, integer * k,
  4474. doublereal * difl, doublereal * difr, doublereal * z__,
  4475. doublereal * poles, integer * givptr, integer * givcol,
  4476. integer * ldgcol, integer * perm, doublereal * givnum,
  4477. doublereal * c__, doublereal * s, doublereal * rwork,
  4478. integer * iwork, integer * info);
  4479. extern int zlalsd_(char *uplo, integer * smlsiz, integer * n, integer * nrhs,
  4480. doublereal * d__, doublereal * e, doublecomplex * b,
  4481. integer * ldb, doublereal * rcond, integer * rank,
  4482. doublecomplex * work, doublereal * rwork, integer * iwork,
  4483. integer * info, ftnlen uplo_len);
  4484. extern doublereal zlangb_(char *norm, integer * n, integer * kl, integer * ku,
  4485. doublecomplex * ab, integer * ldab,
  4486. doublereal * work, ftnlen norm_len);
  4487. extern doublereal zlange_(char *norm, integer * m, integer * n,
  4488. doublecomplex * a, integer * lda, doublereal * work,
  4489. ftnlen norm_len);
  4490. extern doublereal zlangt_(char *norm, integer * n, doublecomplex * dl,
  4491. doublecomplex * d__, doublecomplex * du,
  4492. ftnlen norm_len);
  4493. extern doublereal zlanhb_(char *norm, char *uplo, integer * n, integer * k,
  4494. doublecomplex * ab, integer * ldab,
  4495. doublereal * work, ftnlen norm_len,
  4496. ftnlen uplo_len);
  4497. extern doublereal zlanhe_(char *norm, char *uplo, integer * n,
  4498. doublecomplex * a, integer * lda, doublereal * work,
  4499. ftnlen norm_len, ftnlen uplo_len);
  4500. extern doublereal zlanhp_(char *norm, char *uplo, integer * n,
  4501. doublecomplex * ap, doublereal * work,
  4502. ftnlen norm_len, ftnlen uplo_len);
  4503. extern doublereal zlanhs_(char *norm, integer * n, doublecomplex * a,
  4504. integer * lda, doublereal * work, ftnlen norm_len);
  4505. extern doublereal zlanht_(char *norm, integer * n, doublereal * d__,
  4506. doublecomplex * e, ftnlen norm_len);
  4507. extern doublereal zlansb_(char *norm, char *uplo, integer * n, integer * k,
  4508. doublecomplex * ab, integer * ldab,
  4509. doublereal * work, ftnlen norm_len,
  4510. ftnlen uplo_len);
  4511. extern doublereal zlansp_(char *norm, char *uplo, integer * n,
  4512. doublecomplex * ap, doublereal * work,
  4513. ftnlen norm_len, ftnlen uplo_len);
  4514. extern doublereal zlansy_(char *norm, char *uplo, integer * n,
  4515. doublecomplex * a, integer * lda, doublereal * work,
  4516. ftnlen norm_len, ftnlen uplo_len);
  4517. extern doublereal zlantb_(char *norm, char *uplo, char *diag, integer * n,
  4518. integer * k, doublecomplex * ab, integer * ldab,
  4519. doublereal * work, ftnlen norm_len, ftnlen uplo_len,
  4520. ftnlen diag_len);
  4521. extern doublereal zlantp_(char *norm, char *uplo, char *diag, integer * n,
  4522. doublecomplex * ap, doublereal * work,
  4523. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  4524. extern doublereal zlantr_(char *norm, char *uplo, char *diag, integer * m,
  4525. integer * n, doublecomplex * a, integer * lda,
  4526. doublereal * work, ftnlen norm_len, ftnlen uplo_len,
  4527. ftnlen diag_len);
  4528. extern int zlapll_(integer * n, doublecomplex * x, integer * incx,
  4529. doublecomplex * y, integer * incy, doublereal * ssmin);
  4530. extern int zlapmt_(logical * forwrd, integer * m, integer * n,
  4531. doublecomplex * x, integer * ldx, integer * k);
  4532. extern int zlaqgb_(integer * m, integer * n, integer * kl, integer * ku,
  4533. doublecomplex * ab, integer * ldab, doublereal * r__,
  4534. doublereal * c__, doublereal * rowcnd, doublereal * colcnd,
  4535. doublereal * amax, char *equed, ftnlen equed_len);
  4536. extern int zlaqge_(integer * m, integer * n, doublecomplex * a, integer * lda,
  4537. doublereal * r__, doublereal * c__, doublereal * rowcnd,
  4538. doublereal * colcnd, doublereal * amax, char *equed,
  4539. ftnlen equed_len);
  4540. extern int zlaqhb_(char *uplo, integer * n, integer * kd, doublecomplex * ab,
  4541. integer * ldab, doublereal * s, doublereal * scond,
  4542. doublereal * amax, char *equed, ftnlen uplo_len,
  4543. ftnlen equed_len);
  4544. extern int zlaqhe_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4545. doublereal * s, doublereal * scond, doublereal * amax,
  4546. char *equed, ftnlen uplo_len, ftnlen equed_len);
  4547. extern int zlaqhp_(char *uplo, integer * n, doublecomplex * ap,
  4548. doublereal * s, doublereal * scond, doublereal * amax,
  4549. char *equed, ftnlen uplo_len, ftnlen equed_len);
  4550. extern int zlaqp2_(integer * m, integer * n, integer * offset,
  4551. doublecomplex * a, integer * lda, integer * jpvt,
  4552. doublecomplex * tau, doublereal * vn1, doublereal * vn2,
  4553. doublecomplex * work);
  4554. extern int zlaqps_(integer * m, integer * n, integer * offset, integer * nb,
  4555. integer * kb, doublecomplex * a, integer * lda,
  4556. integer * jpvt, doublecomplex * tau, doublereal * vn1,
  4557. doublereal * vn2, doublecomplex * auxv, doublecomplex * f,
  4558. integer * ldf);
  4559. extern int zlaqsb_(char *uplo, integer * n, integer * kd, doublecomplex * ab,
  4560. integer * ldab, doublereal * s, doublereal * scond,
  4561. doublereal * amax, char *equed, ftnlen uplo_len,
  4562. ftnlen equed_len);
  4563. extern int zlaqsp_(char *uplo, integer * n, doublecomplex * ap,
  4564. doublereal * s, doublereal * scond, doublereal * amax,
  4565. char *equed, ftnlen uplo_len, ftnlen equed_len);
  4566. extern int zlaqsy_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4567. doublereal * s, doublereal * scond, doublereal * amax,
  4568. char *equed, ftnlen uplo_len, ftnlen equed_len);
  4569. extern int zlar1v_(integer * n, integer * b1, integer * bn,
  4570. doublereal * sigma, doublereal * d__, doublereal * l,
  4571. doublereal * ld, doublereal * lld, doublereal * gersch,
  4572. doublecomplex * z__, doublereal * ztz, doublereal * mingma,
  4573. integer * r__, integer * isuppz, doublereal * work);
  4574. extern int zlar2v_(integer * n, doublecomplex * x, doublecomplex * y,
  4575. doublecomplex * z__, integer * incx, doublereal * c__,
  4576. doublecomplex * s, integer * incc);
  4577. extern int zlarcm_(integer * m, integer * n, doublereal * a, integer * lda,
  4578. doublecomplex * b, integer * ldb, doublecomplex * c__,
  4579. integer * ldc, doublereal * rwork);
  4580. extern int zlarf_(char *side, integer * m, integer * n, doublecomplex * v,
  4581. integer * incv, doublecomplex * tau, doublecomplex * c__,
  4582. integer * ldc, doublecomplex * work, ftnlen side_len);
  4583. extern int zlarfb_(char *side, char *trans, char *direct, char *storev,
  4584. integer * m, integer * n, integer * k, doublecomplex * v,
  4585. integer * ldv, doublecomplex * t, integer * ldt,
  4586. doublecomplex * c__, integer * ldc, doublecomplex * work,
  4587. integer * ldwork, ftnlen side_len, ftnlen trans_len,
  4588. ftnlen direct_len, ftnlen storev_len);
  4589. extern int zlarfg_(integer * n, doublecomplex * alpha, doublecomplex * x,
  4590. integer * incx, doublecomplex * tau);
  4591. extern int zlarft_(char *direct, char *storev, integer * n, integer * k,
  4592. doublecomplex * v, integer * ldv, doublecomplex * tau,
  4593. doublecomplex * t, integer * ldt, ftnlen direct_len,
  4594. ftnlen storev_len);
  4595. extern int zlarfx_(char *side, integer * m, integer * n, doublecomplex * v,
  4596. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  4597. doublecomplex * work, ftnlen side_len);
  4598. extern int zlargv_(integer * n, doublecomplex * x, integer * incx,
  4599. doublecomplex * y, integer * incy, doublereal * c__,
  4600. integer * incc);
  4601. extern int zlarnv_(integer * idist, integer * iseed, integer * n,
  4602. doublecomplex * x);
  4603. extern int zlarrv_(integer * n, doublereal * d__, doublereal * l,
  4604. integer * isplit, integer * m, doublereal * w,
  4605. integer * iblock, doublereal * gersch, doublereal * tol,
  4606. doublecomplex * z__, integer * ldz, integer * isuppz,
  4607. doublereal * work, integer * iwork, integer * info);
  4608. extern int zlartg_(doublecomplex * f, doublecomplex * g, doublereal * cs,
  4609. doublecomplex * sn, doublecomplex * r__);
  4610. extern int zlartv_(integer * n, doublecomplex * x, integer * incx,
  4611. doublecomplex * y, integer * incy, doublereal * c__,
  4612. doublecomplex * s, integer * incc);
  4613. extern int zlarz_(char *side, integer * m, integer * n, integer * l,
  4614. doublecomplex * v, integer * incv, doublecomplex * tau,
  4615. doublecomplex * c__, integer * ldc, doublecomplex * work,
  4616. ftnlen side_len);
  4617. extern int zlarzb_(char *side, char *trans, char *direct, char *storev,
  4618. integer * m, integer * n, integer * k, integer * l,
  4619. doublecomplex * v, integer * ldv, doublecomplex * t,
  4620. integer * ldt, doublecomplex * c__, integer * ldc,
  4621. doublecomplex * work, integer * ldwork, ftnlen side_len,
  4622. ftnlen trans_len, ftnlen direct_len, ftnlen storev_len);
  4623. extern int zlarzt_(char *direct, char *storev, integer * n, integer * k,
  4624. doublecomplex * v, integer * ldv, doublecomplex * tau,
  4625. doublecomplex * t, integer * ldt, ftnlen direct_len,
  4626. ftnlen storev_len);
  4627. extern int zlascl_(char *type__, integer * kl, integer * ku,
  4628. doublereal * cfrom, doublereal * cto, integer * m,
  4629. integer * n, doublecomplex * a, integer * lda,
  4630. integer * info, ftnlen type_len);
  4631. extern int zlaset_(char *uplo, integer * m, integer * n,
  4632. doublecomplex * alpha, doublecomplex * beta,
  4633. doublecomplex * a, integer * lda, ftnlen uplo_len);
  4634. extern int zlasr_(char *side, char *pivot, char *direct, integer * m,
  4635. integer * n, doublereal * c__, doublereal * s,
  4636. doublecomplex * a, integer * lda, ftnlen side_len,
  4637. ftnlen pivot_len, ftnlen direct_len);
  4638. extern int zlassq_(integer * n, doublecomplex * x, integer * incx,
  4639. doublereal * scale, doublereal * sumsq);
  4640. extern int zlaswp_(integer * n, doublecomplex * a, integer * lda,
  4641. integer * k1, integer * k2, integer * ipiv,
  4642. integer * incx);
  4643. extern int zlasyf_(char *uplo, integer * n, integer * nb, integer * kb,
  4644. doublecomplex * a, integer * lda, integer * ipiv,
  4645. doublecomplex * w, integer * ldw, integer * info,
  4646. ftnlen uplo_len);
  4647. extern int zlatbs_(char *uplo, char *trans, char *diag, char *normin,
  4648. integer * n, integer * kd, doublecomplex * ab,
  4649. integer * ldab, doublecomplex * x, doublereal * scale,
  4650. doublereal * cnorm, integer * info, ftnlen uplo_len,
  4651. ftnlen trans_len, ftnlen diag_len, ftnlen normin_len);
  4652. extern int zlatdf_(integer * ijob, integer * n, doublecomplex * z__,
  4653. integer * ldz, doublecomplex * rhs, doublereal * rdsum,
  4654. doublereal * rdscal, integer * ipiv, integer * jpiv);
  4655. extern int zlatps_(char *uplo, char *trans, char *diag, char *normin,
  4656. integer * n, doublecomplex * ap, doublecomplex * x,
  4657. doublereal * scale, doublereal * cnorm, integer * info,
  4658. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len,
  4659. ftnlen normin_len);
  4660. extern int zlatrd_(char *uplo, integer * n, integer * nb, doublecomplex * a,
  4661. integer * lda, doublereal * e, doublecomplex * tau,
  4662. doublecomplex * w, integer * ldw, ftnlen uplo_len);
  4663. extern int zlatrs_(char *uplo, char *trans, char *diag, char *normin,
  4664. integer * n, doublecomplex * a, integer * lda,
  4665. doublecomplex * x, doublereal * scale, doublereal * cnorm,
  4666. integer * info, ftnlen uplo_len, ftnlen trans_len,
  4667. ftnlen diag_len, ftnlen normin_len);
  4668. extern int zlatrz_(integer * m, integer * n, integer * l, doublecomplex * a,
  4669. integer * lda, doublecomplex * tau, doublecomplex * work);
  4670. extern int zlatzm_(char *side, integer * m, integer * n, doublecomplex * v,
  4671. integer * incv, doublecomplex * tau, doublecomplex * c1,
  4672. doublecomplex * c2, integer * ldc, doublecomplex * work,
  4673. ftnlen side_len);
  4674. extern int zlauu2_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4675. integer * info, ftnlen uplo_len);
  4676. extern int zlauum_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4677. integer * info, ftnlen uplo_len);
  4678. extern int zpbcon_(char *uplo, integer * n, integer * kd, doublecomplex * ab,
  4679. integer * ldab, doublereal * anorm, doublereal * rcond,
  4680. doublecomplex * work, doublereal * rwork, integer * info,
  4681. ftnlen uplo_len);
  4682. extern int zpbequ_(char *uplo, integer * n, integer * kd, doublecomplex * ab,
  4683. integer * ldab, doublereal * s, doublereal * scond,
  4684. doublereal * amax, integer * info, ftnlen uplo_len);
  4685. extern int zpbrfs_(char *uplo, integer * n, integer * kd, integer * nrhs,
  4686. doublecomplex * ab, integer * ldab, doublecomplex * afb,
  4687. integer * ldafb, doublecomplex * b, integer * ldb,
  4688. doublecomplex * x, integer * ldx, doublereal * ferr,
  4689. doublereal * berr, doublecomplex * work,
  4690. doublereal * rwork, integer * info, ftnlen uplo_len);
  4691. extern int zpbstf_(char *uplo, integer * n, integer * kd, doublecomplex * ab,
  4692. integer * ldab, integer * info, ftnlen uplo_len);
  4693. extern int zpbsv_(char *uplo, integer * n, integer * kd, integer * nrhs,
  4694. doublecomplex * ab, integer * ldab, doublecomplex * b,
  4695. integer * ldb, integer * info, ftnlen uplo_len);
  4696. extern int zpbsvx_(char *fact, char *uplo, integer * n, integer * kd,
  4697. integer * nrhs, doublecomplex * ab, integer * ldab,
  4698. doublecomplex * afb, integer * ldafb, char *equed,
  4699. doublereal * s, doublecomplex * b, integer * ldb,
  4700. doublecomplex * x, integer * ldx, doublereal * rcond,
  4701. doublereal * ferr, doublereal * berr, doublecomplex * work,
  4702. doublereal * rwork, integer * info, ftnlen fact_len,
  4703. ftnlen uplo_len, ftnlen equed_len);
  4704. extern int zpbtf2_(char *uplo, integer * n, integer * kd, doublecomplex * ab,
  4705. integer * ldab, integer * info, ftnlen uplo_len);
  4706. extern int zpbtrf_(char *uplo, integer * n, integer * kd, doublecomplex * ab,
  4707. integer * ldab, integer * info, ftnlen uplo_len);
  4708. extern int zpbtrs_(char *uplo, integer * n, integer * kd, integer * nrhs,
  4709. doublecomplex * ab, integer * ldab, doublecomplex * b,
  4710. integer * ldb, integer * info, ftnlen uplo_len);
  4711. extern int zpocon_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4712. doublereal * anorm, doublereal * rcond,
  4713. doublecomplex * work, doublereal * rwork, integer * info,
  4714. ftnlen uplo_len);
  4715. extern int zpoequ_(integer * n, doublecomplex * a, integer * lda,
  4716. doublereal * s, doublereal * scond, doublereal * amax,
  4717. integer * info);
  4718. extern int zporfs_(char *uplo, integer * n, integer * nrhs, doublecomplex * a,
  4719. integer * lda, doublecomplex * af, integer * ldaf,
  4720. doublecomplex * b, integer * ldb, doublecomplex * x,
  4721. integer * ldx, doublereal * ferr, doublereal * berr,
  4722. doublecomplex * work, doublereal * rwork, integer * info,
  4723. ftnlen uplo_len);
  4724. extern int zposv_(char *uplo, integer * n, integer * nrhs, doublecomplex * a,
  4725. integer * lda, doublecomplex * b, integer * ldb,
  4726. integer * info, ftnlen uplo_len);
  4727. extern int zposvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  4728. doublecomplex * a, integer * lda, doublecomplex * af,
  4729. integer * ldaf, char *equed, doublereal * s,
  4730. doublecomplex * b, integer * ldb, doublecomplex * x,
  4731. integer * ldx, doublereal * rcond, doublereal * ferr,
  4732. doublereal * berr, doublecomplex * work,
  4733. doublereal * rwork, integer * info, ftnlen fact_len,
  4734. ftnlen uplo_len, ftnlen equed_len);
  4735. extern int zpotf2_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4736. integer * info, ftnlen uplo_len);
  4737. extern int zpotrf_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4738. integer * info, ftnlen uplo_len);
  4739. extern int zpotri_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4740. integer * info, ftnlen uplo_len);
  4741. extern int zpotrs_(char *uplo, integer * n, integer * nrhs, doublecomplex * a,
  4742. integer * lda, doublecomplex * b, integer * ldb,
  4743. integer * info, ftnlen uplo_len);
  4744. extern int zppcon_(char *uplo, integer * n, doublecomplex * ap,
  4745. doublereal * anorm, doublereal * rcond,
  4746. doublecomplex * work, doublereal * rwork, integer * info,
  4747. ftnlen uplo_len);
  4748. extern int zppequ_(char *uplo, integer * n, doublecomplex * ap,
  4749. doublereal * s, doublereal * scond, doublereal * amax,
  4750. integer * info, ftnlen uplo_len);
  4751. extern int zpprfs_(char *uplo, integer * n, integer * nrhs,
  4752. doublecomplex * ap, doublecomplex * afp, doublecomplex * b,
  4753. integer * ldb, doublecomplex * x, integer * ldx,
  4754. doublereal * ferr, doublereal * berr, doublecomplex * work,
  4755. doublereal * rwork, integer * info, ftnlen uplo_len);
  4756. extern int zppsv_(char *uplo, integer * n, integer * nrhs, doublecomplex * ap,
  4757. doublecomplex * b, integer * ldb, integer * info,
  4758. ftnlen uplo_len);
  4759. extern int zppsvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  4760. doublecomplex * ap, doublecomplex * afp, char *equed,
  4761. doublereal * s, doublecomplex * b, integer * ldb,
  4762. doublecomplex * x, integer * ldx, doublereal * rcond,
  4763. doublereal * ferr, doublereal * berr, doublecomplex * work,
  4764. doublereal * rwork, integer * info, ftnlen fact_len,
  4765. ftnlen uplo_len, ftnlen equed_len);
  4766. extern int zpptrf_(char *uplo, integer * n, doublecomplex * ap,
  4767. integer * info, ftnlen uplo_len);
  4768. extern int zpptri_(char *uplo, integer * n, doublecomplex * ap,
  4769. integer * info, ftnlen uplo_len);
  4770. extern int zpptrs_(char *uplo, integer * n, integer * nrhs,
  4771. doublecomplex * ap, doublecomplex * b, integer * ldb,
  4772. integer * info, ftnlen uplo_len);
  4773. extern int zptcon_(integer * n, doublereal * d__, doublecomplex * e,
  4774. doublereal * anorm, doublereal * rcond, doublereal * rwork,
  4775. integer * info);
  4776. extern int zpteqr_(char *compz, integer * n, doublereal * d__, doublereal * e,
  4777. doublecomplex * z__, integer * ldz, doublereal * work,
  4778. integer * info, ftnlen compz_len);
  4779. extern int zptrfs_(char *uplo, integer * n, integer * nrhs, doublereal * d__,
  4780. doublecomplex * e, doublereal * df, doublecomplex * ef,
  4781. doublecomplex * b, integer * ldb, doublecomplex * x,
  4782. integer * ldx, doublereal * ferr, doublereal * berr,
  4783. doublecomplex * work, doublereal * rwork, integer * info,
  4784. ftnlen uplo_len);
  4785. extern int zptsv_(integer * n, integer * nrhs, doublereal * d__,
  4786. doublecomplex * e, doublecomplex * b, integer * ldb,
  4787. integer * info);
  4788. extern int zptsvx_(char *fact, integer * n, integer * nrhs, doublereal * d__,
  4789. doublecomplex * e, doublereal * df, doublecomplex * ef,
  4790. doublecomplex * b, integer * ldb, doublecomplex * x,
  4791. integer * ldx, doublereal * rcond, doublereal * ferr,
  4792. doublereal * berr, doublecomplex * work,
  4793. doublereal * rwork, integer * info, ftnlen fact_len);
  4794. extern int zpttrf_(integer * n, doublereal * d__, doublecomplex * e,
  4795. integer * info);
  4796. extern int zpttrs_(char *uplo, integer * n, integer * nrhs, doublereal * d__,
  4797. doublecomplex * e, doublecomplex * b, integer * ldb,
  4798. integer * info, ftnlen uplo_len);
  4799. extern int zptts2_(integer * iuplo, integer * n, integer * nrhs,
  4800. doublereal * d__, doublecomplex * e, doublecomplex * b,
  4801. integer * ldb);
  4802. extern int zrot_(integer * n, doublecomplex * cx, integer * incx,
  4803. doublecomplex * cy, integer * incy, doublereal * c__,
  4804. doublecomplex * s);
  4805. extern int zspcon_(char *uplo, integer * n, doublecomplex * ap,
  4806. integer * ipiv, doublereal * anorm, doublereal * rcond,
  4807. doublecomplex * work, integer * info, ftnlen uplo_len);
  4808. extern int zspmv_(char *uplo, integer * n, doublecomplex * alpha,
  4809. doublecomplex * ap, doublecomplex * x, integer * incx,
  4810. doublecomplex * beta, doublecomplex * y, integer * incy,
  4811. ftnlen uplo_len);
  4812. extern int zspr_(char *uplo, integer * n, doublecomplex * alpha,
  4813. doublecomplex * x, integer * incx, doublecomplex * ap,
  4814. ftnlen uplo_len);
  4815. extern int zsprfs_(char *uplo, integer * n, integer * nrhs,
  4816. doublecomplex * ap, doublecomplex * afp, integer * ipiv,
  4817. doublecomplex * b, integer * ldb, doublecomplex * x,
  4818. integer * ldx, doublereal * ferr, doublereal * berr,
  4819. doublecomplex * work, doublereal * rwork, integer * info,
  4820. ftnlen uplo_len);
  4821. extern int zspsv_(char *uplo, integer * n, integer * nrhs, doublecomplex * ap,
  4822. integer * ipiv, doublecomplex * b, integer * ldb,
  4823. integer * info, ftnlen uplo_len);
  4824. extern int zspsvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  4825. doublecomplex * ap, doublecomplex * afp, integer * ipiv,
  4826. doublecomplex * b, integer * ldb, doublecomplex * x,
  4827. integer * ldx, doublereal * rcond, doublereal * ferr,
  4828. doublereal * berr, doublecomplex * work,
  4829. doublereal * rwork, integer * info, ftnlen fact_len,
  4830. ftnlen uplo_len);
  4831. extern int zsptrf_(char *uplo, integer * n, doublecomplex * ap,
  4832. integer * ipiv, integer * info, ftnlen uplo_len);
  4833. extern int zsptri_(char *uplo, integer * n, doublecomplex * ap,
  4834. integer * ipiv, doublecomplex * work, integer * info,
  4835. ftnlen uplo_len);
  4836. extern int zsptrs_(char *uplo, integer * n, integer * nrhs,
  4837. doublecomplex * ap, integer * ipiv, doublecomplex * b,
  4838. integer * ldb, integer * info, ftnlen uplo_len);
  4839. extern int zstedc_(char *compz, integer * n, doublereal * d__, doublereal * e,
  4840. doublecomplex * z__, integer * ldz, doublecomplex * work,
  4841. integer * lwork, doublereal * rwork, integer * lrwork,
  4842. integer * iwork, integer * liwork, integer * info,
  4843. ftnlen compz_len);
  4844. extern int zstegr_(char *jobz, char *range, integer * n, doublereal * d__,
  4845. doublereal * e, doublereal * vl, doublereal * vu,
  4846. integer * il, integer * iu, doublereal * abstol,
  4847. integer * m, doublereal * w, doublecomplex * z__,
  4848. integer * ldz, integer * isuppz, doublereal * work,
  4849. integer * lwork, integer * iwork, integer * liwork,
  4850. integer * info, ftnlen jobz_len, ftnlen range_len);
  4851. extern int zstein_(integer * n, doublereal * d__, doublereal * e, integer * m,
  4852. doublereal * w, integer * iblock, integer * isplit,
  4853. doublecomplex * z__, integer * ldz, doublereal * work,
  4854. integer * iwork, integer * ifail, integer * info);
  4855. extern int zsteqr_(char *compz, integer * n, doublereal * d__, doublereal * e,
  4856. doublecomplex * z__, integer * ldz, doublereal * work,
  4857. integer * info, ftnlen compz_len);
  4858. extern int zsycon_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4859. integer * ipiv, doublereal * anorm, doublereal * rcond,
  4860. doublecomplex * work, integer * info, ftnlen uplo_len);
  4861. extern int zsymv_(char *uplo, integer * n, doublecomplex * alpha,
  4862. doublecomplex * a, integer * lda, doublecomplex * x,
  4863. integer * incx, doublecomplex * beta, doublecomplex * y,
  4864. integer * incy, ftnlen uplo_len);
  4865. extern int zsyr_(char *uplo, integer * n, doublecomplex * alpha,
  4866. doublecomplex * x, integer * incx, doublecomplex * a,
  4867. integer * lda, ftnlen uplo_len);
  4868. extern int zsyrfs_(char *uplo, integer * n, integer * nrhs, doublecomplex * a,
  4869. integer * lda, doublecomplex * af, integer * ldaf,
  4870. integer * ipiv, doublecomplex * b, integer * ldb,
  4871. doublecomplex * x, integer * ldx, doublereal * ferr,
  4872. doublereal * berr, doublecomplex * work,
  4873. doublereal * rwork, integer * info, ftnlen uplo_len);
  4874. extern int zsysv_(char *uplo, integer * n, integer * nrhs, doublecomplex * a,
  4875. integer * lda, integer * ipiv, doublecomplex * b,
  4876. integer * ldb, doublecomplex * work, integer * lwork,
  4877. integer * info, ftnlen uplo_len);
  4878. extern int zsysvx_(char *fact, char *uplo, integer * n, integer * nrhs,
  4879. doublecomplex * a, integer * lda, doublecomplex * af,
  4880. integer * ldaf, integer * ipiv, doublecomplex * b,
  4881. integer * ldb, doublecomplex * x, integer * ldx,
  4882. doublereal * rcond, doublereal * ferr, doublereal * berr,
  4883. doublecomplex * work, integer * lwork, doublereal * rwork,
  4884. integer * info, ftnlen fact_len, ftnlen uplo_len);
  4885. extern int zsytf2_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4886. integer * ipiv, integer * info, ftnlen uplo_len);
  4887. extern int zsytrf_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4888. integer * ipiv, doublecomplex * work, integer * lwork,
  4889. integer * info, ftnlen uplo_len);
  4890. extern int zsytri_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  4891. integer * ipiv, doublecomplex * work, integer * info,
  4892. ftnlen uplo_len);
  4893. extern int zsytrs_(char *uplo, integer * n, integer * nrhs, doublecomplex * a,
  4894. integer * lda, integer * ipiv, doublecomplex * b,
  4895. integer * ldb, integer * info, ftnlen uplo_len);
  4896. extern int ztbcon_(char *norm, char *uplo, char *diag, integer * n,
  4897. integer * kd, doublecomplex * ab, integer * ldab,
  4898. doublereal * rcond, doublecomplex * work,
  4899. doublereal * rwork, integer * info, ftnlen norm_len,
  4900. ftnlen uplo_len, ftnlen diag_len);
  4901. extern int ztbrfs_(char *uplo, char *trans, char *diag, integer * n,
  4902. integer * kd, integer * nrhs, doublecomplex * ab,
  4903. integer * ldab, doublecomplex * b, integer * ldb,
  4904. doublecomplex * x, integer * ldx, doublereal * ferr,
  4905. doublereal * berr, doublecomplex * work,
  4906. doublereal * rwork, integer * info, ftnlen uplo_len,
  4907. ftnlen trans_len, ftnlen diag_len);
  4908. extern int ztbtrs_(char *uplo, char *trans, char *diag, integer * n,
  4909. integer * kd, integer * nrhs, doublecomplex * ab,
  4910. integer * ldab, doublecomplex * b, integer * ldb,
  4911. integer * info, ftnlen uplo_len, ftnlen trans_len,
  4912. ftnlen diag_len);
  4913. extern int ztgevc_(char *side, char *howmny, logical * select, integer * n,
  4914. doublecomplex * a, integer * lda, doublecomplex * b,
  4915. integer * ldb, doublecomplex * vl, integer * ldvl,
  4916. doublecomplex * vr, integer * ldvr, integer * mm,
  4917. integer * m, doublecomplex * work, doublereal * rwork,
  4918. integer * info, ftnlen side_len, ftnlen howmny_len);
  4919. extern int ztgex2_(logical * wantq, logical * wantz, integer * n,
  4920. doublecomplex * a, integer * lda, doublecomplex * b,
  4921. integer * ldb, doublecomplex * q, integer * ldq,
  4922. doublecomplex * z__, integer * ldz, integer * j1,
  4923. integer * info);
  4924. extern int ztgexc_(logical * wantq, logical * wantz, integer * n,
  4925. doublecomplex * a, integer * lda, doublecomplex * b,
  4926. integer * ldb, doublecomplex * q, integer * ldq,
  4927. doublecomplex * z__, integer * ldz, integer * ifst,
  4928. integer * ilst, integer * info);
  4929. extern int ztgsen_(integer * ijob, logical * wantq, logical * wantz,
  4930. logical * select, integer * n, doublecomplex * a,
  4931. integer * lda, doublecomplex * b, integer * ldb,
  4932. doublecomplex * alpha, doublecomplex * beta,
  4933. doublecomplex * q, integer * ldq, doublecomplex * z__,
  4934. integer * ldz, integer * m, doublereal * pl,
  4935. doublereal * pr, doublereal * dif, doublecomplex * work,
  4936. integer * lwork, integer * iwork, integer * liwork,
  4937. integer * info);
  4938. extern int ztgsja_(char *jobu, char *jobv, char *jobq, integer * m,
  4939. integer * p, integer * n, integer * k, integer * l,
  4940. doublecomplex * a, integer * lda, doublecomplex * b,
  4941. integer * ldb, doublereal * tola, doublereal * tolb,
  4942. doublereal * alpha, doublereal * beta, doublecomplex * u,
  4943. integer * ldu, doublecomplex * v, integer * ldv,
  4944. doublecomplex * q, integer * ldq, doublecomplex * work,
  4945. integer * ncycle, integer * info, ftnlen jobu_len,
  4946. ftnlen jobv_len, ftnlen jobq_len);
  4947. extern int ztgsna_(char *job, char *howmny, logical * select, integer * n,
  4948. doublecomplex * a, integer * lda, doublecomplex * b,
  4949. integer * ldb, doublecomplex * vl, integer * ldvl,
  4950. doublecomplex * vr, integer * ldvr, doublereal * s,
  4951. doublereal * dif, integer * mm, integer * m,
  4952. doublecomplex * work, integer * lwork, integer * iwork,
  4953. integer * info, ftnlen job_len, ftnlen howmny_len);
  4954. extern int ztgsy2_(char *trans, integer * ijob, integer * m, integer * n,
  4955. doublecomplex * a, integer * lda, doublecomplex * b,
  4956. integer * ldb, doublecomplex * c__, integer * ldc,
  4957. doublecomplex * d__, integer * ldd, doublecomplex * e,
  4958. integer * lde, doublecomplex * f, integer * ldf,
  4959. doublereal * scale, doublereal * rdsum,
  4960. doublereal * rdscal, integer * info, ftnlen trans_len);
  4961. extern int ztgsyl_(char *trans, integer * ijob, integer * m, integer * n,
  4962. doublecomplex * a, integer * lda, doublecomplex * b,
  4963. integer * ldb, doublecomplex * c__, integer * ldc,
  4964. doublecomplex * d__, integer * ldd, doublecomplex * e,
  4965. integer * lde, doublecomplex * f, integer * ldf,
  4966. doublereal * scale, doublereal * dif, doublecomplex * work,
  4967. integer * lwork, integer * iwork, integer * info,
  4968. ftnlen trans_len);
  4969. extern int ztpcon_(char *norm, char *uplo, char *diag, integer * n,
  4970. doublecomplex * ap, doublereal * rcond,
  4971. doublecomplex * work, doublereal * rwork, integer * info,
  4972. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  4973. extern int ztprfs_(char *uplo, char *trans, char *diag, integer * n,
  4974. integer * nrhs, doublecomplex * ap, doublecomplex * b,
  4975. integer * ldb, doublecomplex * x, integer * ldx,
  4976. doublereal * ferr, doublereal * berr, doublecomplex * work,
  4977. doublereal * rwork, integer * info, ftnlen uplo_len,
  4978. ftnlen trans_len, ftnlen diag_len);
  4979. extern int ztptri_(char *uplo, char *diag, integer * n, doublecomplex * ap,
  4980. integer * info, ftnlen uplo_len, ftnlen diag_len);
  4981. extern int ztptrs_(char *uplo, char *trans, char *diag, integer * n,
  4982. integer * nrhs, doublecomplex * ap, doublecomplex * b,
  4983. integer * ldb, integer * info, ftnlen uplo_len,
  4984. ftnlen trans_len, ftnlen diag_len);
  4985. extern int ztrcon_(char *norm, char *uplo, char *diag, integer * n,
  4986. doublecomplex * a, integer * lda, doublereal * rcond,
  4987. doublecomplex * work, doublereal * rwork, integer * info,
  4988. ftnlen norm_len, ftnlen uplo_len, ftnlen diag_len);
  4989. extern int ztrevc_(char *side, char *howmny, logical * select, integer * n,
  4990. doublecomplex * t, integer * ldt, doublecomplex * vl,
  4991. integer * ldvl, doublecomplex * vr, integer * ldvr,
  4992. integer * mm, integer * m, doublecomplex * work,
  4993. doublereal * rwork, integer * info, ftnlen side_len,
  4994. ftnlen howmny_len);
  4995. extern int ztrexc_(char *compq, integer * n, doublecomplex * t, integer * ldt,
  4996. doublecomplex * q, integer * ldq, integer * ifst,
  4997. integer * ilst, integer * info, ftnlen compq_len);
  4998. extern int ztrrfs_(char *uplo, char *trans, char *diag, integer * n,
  4999. integer * nrhs, doublecomplex * a, integer * lda,
  5000. doublecomplex * b, integer * ldb, doublecomplex * x,
  5001. integer * ldx, doublereal * ferr, doublereal * berr,
  5002. doublecomplex * work, doublereal * rwork, integer * info,
  5003. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len);
  5004. extern int ztrsen_(char *job, char *compq, logical * select, integer * n,
  5005. doublecomplex * t, integer * ldt, doublecomplex * q,
  5006. integer * ldq, doublecomplex * w, integer * m,
  5007. doublereal * s, doublereal * sep, doublecomplex * work,
  5008. integer * lwork, integer * info, ftnlen job_len,
  5009. ftnlen compq_len);
  5010. extern int ztrsna_(char *job, char *howmny, logical * select, integer * n,
  5011. doublecomplex * t, integer * ldt, doublecomplex * vl,
  5012. integer * ldvl, doublecomplex * vr, integer * ldvr,
  5013. doublereal * s, doublereal * sep, integer * mm,
  5014. integer * m, doublecomplex * work, integer * ldwork,
  5015. doublereal * rwork, integer * info, ftnlen job_len,
  5016. ftnlen howmny_len);
  5017. extern int ztrsyl_(char *trana, char *tranb, integer * isgn, integer * m,
  5018. integer * n, doublecomplex * a, integer * lda,
  5019. doublecomplex * b, integer * ldb, doublecomplex * c__,
  5020. integer * ldc, doublereal * scale, integer * info,
  5021. ftnlen trana_len, ftnlen tranb_len);
  5022. extern int ztrti2_(char *uplo, char *diag, integer * n, doublecomplex * a,
  5023. integer * lda, integer * info, ftnlen uplo_len,
  5024. ftnlen diag_len);
  5025. extern int ztrtri_(char *uplo, char *diag, integer * n, doublecomplex * a,
  5026. integer * lda, integer * info, ftnlen uplo_len,
  5027. ftnlen diag_len);
  5028. extern int ztrtrs_(char *uplo, char *trans, char *diag, integer * n,
  5029. integer * nrhs, doublecomplex * a, integer * lda,
  5030. doublecomplex * b, integer * ldb, integer * info,
  5031. ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len);
  5032. extern int ztzrqf_(integer * m, integer * n, doublecomplex * a, integer * lda,
  5033. doublecomplex * tau, integer * info);
  5034. extern int ztzrzf_(integer * m, integer * n, doublecomplex * a, integer * lda,
  5035. doublecomplex * tau, doublecomplex * work, integer * lwork,
  5036. integer * info);
  5037. extern int zung2l_(integer * m, integer * n, integer * k, doublecomplex * a,
  5038. integer * lda, doublecomplex * tau, doublecomplex * work,
  5039. integer * info);
  5040. extern int zung2r_(integer * m, integer * n, integer * k, doublecomplex * a,
  5041. integer * lda, doublecomplex * tau, doublecomplex * work,
  5042. integer * info);
  5043. extern int zungbr_(char *vect, integer * m, integer * n, integer * k,
  5044. doublecomplex * a, integer * lda, doublecomplex * tau,
  5045. doublecomplex * work, integer * lwork, integer * info,
  5046. ftnlen vect_len);
  5047. extern int zunghr_(integer * n, integer * ilo, integer * ihi,
  5048. doublecomplex * a, integer * lda, doublecomplex * tau,
  5049. doublecomplex * work, integer * lwork, integer * info);
  5050. extern int zungl2_(integer * m, integer * n, integer * k, doublecomplex * a,
  5051. integer * lda, doublecomplex * tau, doublecomplex * work,
  5052. integer * info);
  5053. extern int zunglq_(integer * m, integer * n, integer * k, doublecomplex * a,
  5054. integer * lda, doublecomplex * tau, doublecomplex * work,
  5055. integer * lwork, integer * info);
  5056. extern int zungql_(integer * m, integer * n, integer * k, doublecomplex * a,
  5057. integer * lda, doublecomplex * tau, doublecomplex * work,
  5058. integer * lwork, integer * info);
  5059. extern int zungqr_(integer * m, integer * n, integer * k, doublecomplex * a,
  5060. integer * lda, doublecomplex * tau, doublecomplex * work,
  5061. integer * lwork, integer * info);
  5062. extern int zungr2_(integer * m, integer * n, integer * k, doublecomplex * a,
  5063. integer * lda, doublecomplex * tau, doublecomplex * work,
  5064. integer * info);
  5065. extern int zungrq_(integer * m, integer * n, integer * k, doublecomplex * a,
  5066. integer * lda, doublecomplex * tau, doublecomplex * work,
  5067. integer * lwork, integer * info);
  5068. extern int zungtr_(char *uplo, integer * n, doublecomplex * a, integer * lda,
  5069. doublecomplex * tau, doublecomplex * work, integer * lwork,
  5070. integer * info, ftnlen uplo_len);
  5071. extern int zunm2l_(char *side, char *trans, integer * m, integer * n,
  5072. integer * k, doublecomplex * a, integer * lda,
  5073. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5074. doublecomplex * work, integer * info, ftnlen side_len,
  5075. ftnlen trans_len);
  5076. extern int zunm2r_(char *side, char *trans, integer * m, integer * n,
  5077. integer * k, doublecomplex * a, integer * lda,
  5078. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5079. doublecomplex * work, integer * info, ftnlen side_len,
  5080. ftnlen trans_len);
  5081. extern int zunmbr_(char *vect, char *side, char *trans, integer * m,
  5082. integer * n, integer * k, doublecomplex * a, integer * lda,
  5083. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5084. doublecomplex * work, integer * lwork, integer * info,
  5085. ftnlen vect_len, ftnlen side_len, ftnlen trans_len);
  5086. extern int zunmhr_(char *side, char *trans, integer * m, integer * n,
  5087. integer * ilo, integer * ihi, doublecomplex * a,
  5088. integer * lda, doublecomplex * tau, doublecomplex * c__,
  5089. integer * ldc, doublecomplex * work, integer * lwork,
  5090. integer * info, ftnlen side_len, ftnlen trans_len);
  5091. extern int zunml2_(char *side, char *trans, integer * m, integer * n,
  5092. integer * k, doublecomplex * a, integer * lda,
  5093. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5094. doublecomplex * work, integer * info, ftnlen side_len,
  5095. ftnlen trans_len);
  5096. extern int zunmlq_(char *side, char *trans, integer * m, integer * n,
  5097. integer * k, doublecomplex * a, integer * lda,
  5098. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5099. doublecomplex * work, integer * lwork, integer * info,
  5100. ftnlen side_len, ftnlen trans_len);
  5101. extern int zunmql_(char *side, char *trans, integer * m, integer * n,
  5102. integer * k, doublecomplex * a, integer * lda,
  5103. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5104. doublecomplex * work, integer * lwork, integer * info,
  5105. ftnlen side_len, ftnlen trans_len);
  5106. extern int zunmqr_(char *side, char *trans, integer * m, integer * n,
  5107. integer * k, doublecomplex * a, integer * lda,
  5108. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5109. doublecomplex * work, integer * lwork, integer * info,
  5110. ftnlen side_len, ftnlen trans_len);
  5111. extern int zunmr2_(char *side, char *trans, integer * m, integer * n,
  5112. integer * k, doublecomplex * a, integer * lda,
  5113. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5114. doublecomplex * work, integer * info, ftnlen side_len,
  5115. ftnlen trans_len);
  5116. extern int zunmr3_(char *side, char *trans, integer * m, integer * n,
  5117. integer * k, integer * l, doublecomplex * a, integer * lda,
  5118. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5119. doublecomplex * work, integer * info, ftnlen side_len,
  5120. ftnlen trans_len);
  5121. extern int zunmrq_(char *side, char *trans, integer * m, integer * n,
  5122. integer * k, doublecomplex * a, integer * lda,
  5123. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5124. doublecomplex * work, integer * lwork, integer * info,
  5125. ftnlen side_len, ftnlen trans_len);
  5126. extern int zunmrz_(char *side, char *trans, integer * m, integer * n,
  5127. integer * k, integer * l, doublecomplex * a, integer * lda,
  5128. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5129. doublecomplex * work, integer * lwork, integer * info,
  5130. ftnlen side_len, ftnlen trans_len);
  5131. extern int zunmtr_(char *side, char *uplo, char *trans, integer * m,
  5132. integer * n, doublecomplex * a, integer * lda,
  5133. doublecomplex * tau, doublecomplex * c__, integer * ldc,
  5134. doublecomplex * work, integer * lwork, integer * info,
  5135. ftnlen side_len, ftnlen uplo_len, ftnlen trans_len);
  5136. extern int zupgtr_(char *uplo, integer * n, doublecomplex * ap,
  5137. doublecomplex * tau, doublecomplex * q, integer * ldq,
  5138. doublecomplex * work, integer * info, ftnlen uplo_len);
  5139. extern int zupmtr_(char *side, char *uplo, char *trans, integer * m,
  5140. integer * n, doublecomplex * ap, doublecomplex * tau,
  5141. doublecomplex * c__, integer * ldc, doublecomplex * work,
  5142. integer * info, ftnlen side_len, ftnlen uplo_len,
  5143. ftnlen trans_len);
  5144. #endif