1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
|
<center><a href="slepcblaslapack.h">Actual source code: slepcblaslapack.h</a></center><br>
<html>
<head> <link rel="canonical" href="https://slepc.upv.es/documentation/current/include/slepcblaslapack.h.html" />
<title></title>
<meta name="generator" content="c2html 0.9.4">
<meta name="date" content="2021-02-01T14:42:23+00:00">
</head>
<body bgcolor="#FFFFFF">
<div id="version" align=right><b>slepc-3.14.2 2021-02-01</b></div>
<div id="bugreport" align=right><a href="mailto:slepc-maint@upv.es?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: slepc-3.14.2 v3.14.2 include/slepcblaslapack.h.html "><small>Report Typos and Errors</small></a></div>
<pre width="80">
<a name="line1"> 1: </a><font color="#B22222">/*</font>
<a name="line2"> 2: </a><font color="#B22222"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</font>
<a name="line3"> 3: </a><font color="#B22222"> SLEPc - Scalable Library for Eigenvalue Problem Computations</font>
<a name="line4"> 4: </a><font color="#B22222"> Copyright (c) 2002-2020, Universitat Politecnica de Valencia, Spain</font>
<a name="line6"> 6: </a><font color="#B22222"> This file is part of SLEPc.</font>
<a name="line7"> 7: </a><font color="#B22222"> SLEPc is distributed under a 2-clause BSD license (see LICENSE).</font>
<a name="line8"> 8: </a><font color="#B22222"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</font>
<a name="line9"> 9: </a><font color="#B22222">*/</font>
<a name="line10"> 10: </a><font color="#B22222">/*</font>
<a name="line11"> 11: </a><font color="#B22222"> Necessary routines in BLAS and LAPACK not included in petscblaslapack.h</font>
<a name="line12"> 12: </a><font color="#B22222">*/</font>
<a name="line14"> 14: </a><font color="#A020F0">#if !defined(SLEPCBLASLAPACK_H)</font>
<a name="line15"> 15: </a><strong><font color="#228B22">#define SLEPCBLASLAPACK_H</font></strong>
<a name="line16"> 16: </a><font color="#A020F0">#include <petscblaslapack.h></font>
<a name="line18"> 18: </a><font color="#B22222">/* Macro to check nonzero info after LAPACK call */</font>
<a name="line19"> 19: </a><strong><font color="#228B22">#define SlepcCheckLapackInfo(routine,info) \</font></strong>
<a name="line20"> 20: </a><strong><font color="#228B22"> do { \</font></strong>
<a name="line21"> 21: </a><strong><font color="#228B22"> if (info) SETERRQ2(PETSC_COMM_SELF,PETSC_ERR_LIB,</font><font color="#666666">"Error in LAPACK subroutine %s: info=%d"</font><font color="#228B22">,routine,(int)info); \</font></strong>
<a name="line22"> 22: </a><strong><font color="#228B22"> } while (0)</font></strong>
<a name="line24"> 24: </a><font color="#B22222">/* LAPACK return type: we assume slange, etc. behave in the same way as snrm2 */</font>
<a name="line25"> 25: </a><font color="#A020F0">#if defined(PETSC_USE_REAL_SINGLE) && defined(PETSC_BLASLAPACK_SNRM2_RETURNS_DOUBLE)</font>
<a name="line26"> 26: </a><strong><font color="#228B22">#define SlepcLRT double</font></strong>
<a name="line27"> 27: </a><font color="#A020F0">#else</font>
<a name="line28"> 28: </a><strong><font color="#228B22">#define SlepcLRT PetscReal</font></strong>
<a name="line29"> 29: </a><font color="#A020F0">#endif</font>
<a name="line31"> 31: </a><font color="#B22222">/* Special macro for srot, csrot, drot, zdrot (BLASMIXEDrot_) */</font>
<a name="line32"> 32: </a><font color="#A020F0">#if !defined(PETSC_USE_COMPLEX)</font>
<a name="line33"> 33: </a><font color="#A020F0"># define PETSC_BLASLAPACK_MIXEDPREFIX_ PETSC_BLASLAPACK_PREFIX_</font>
<a name="line34"> 34: </a><font color="#A020F0">#else</font>
<a name="line35"> 35: </a><font color="#A020F0"># if defined(PETSC_BLASLAPACK_CAPS)</font>
<a name="line36"> 36: </a><font color="#A020F0"># if defined(PETSC_USE_REAL_SINGLE)</font>
<a name="line37"> 37: </a><font color="#A020F0"># define PETSC_BLASLAPACK_MIXEDPREFIX_ CS</font>
<a name="line38"> 38: </a><font color="#A020F0"># elif defined(PETSC_USE_REAL_DOUBLE)</font>
<a name="line39"> 39: </a><font color="#A020F0"># define PETSC_BLASLAPACK_MIXEDPREFIX_ ZD</font>
<a name="line40"> 40: </a><font color="#A020F0"># elif defined(PETSC_USE_REAL___FLOAT128)</font>
<a name="line41"> 41: </a><font color="#A020F0"># define PETSC_BLASLAPACK_MIXEDPREFIX_ WQ</font>
<a name="line42"> 42: </a><font color="#A020F0"># else</font>
<a name="line43"> 43: </a><font color="#A020F0"># define PETSC_BLASLAPACK_MIXEDPREFIX_ KH</font>
<a name="line44"> 44: </a><font color="#A020F0"># endif</font>
<a name="line45"> 45: </a><font color="#A020F0"># else</font>
<a name="line46"> 46: </a><font color="#A020F0"># if defined(PETSC_USE_REAL_SINGLE)</font>
<a name="line47"> 47: </a><font color="#A020F0"># define PETSC_BLASLAPACK_MIXEDPREFIX_ cs</font>
<a name="line48"> 48: </a><font color="#A020F0"># elif defined(PETSC_USE_REAL_DOUBLE)</font>
<a name="line49"> 49: </a><font color="#A020F0"># define PETSC_BLASLAPACK_MIXEDPREFIX_ zd</font>
<a name="line50"> 50: </a><font color="#A020F0"># elif defined(PETSC_USE_REAL___FLOAT128)</font>
<a name="line51"> 51: </a><font color="#A020F0"># define PETSC_BLASLAPACK_MIXEDPREFIX_ wq</font>
<a name="line52"> 52: </a><font color="#A020F0"># else</font>
<a name="line53"> 53: </a><font color="#A020F0"># define PETSC_BLASLAPACK_MIXEDPREFIX_ kh</font>
<a name="line54"> 54: </a><font color="#A020F0"># endif</font>
<a name="line55"> 55: </a><font color="#A020F0"># endif</font>
<a name="line56"> 56: </a><font color="#A020F0">#endif</font>
<a name="line57"> 57: </a><font color="#A020F0">#if defined(PETSC_BLASLAPACK_CAPS)</font>
<a name="line58"> 58: </a><font color="#A020F0"># define PETSCBLASMIXED(x,X) PETSC_PASTE3(PETSC_BLASLAPACK_MIXEDPREFIX_, X, PETSC_BLASLAPACK_SUFFIX_)</font>
<a name="line59"> 59: </a><font color="#A020F0">#else</font>
<a name="line60"> 60: </a><font color="#A020F0"># define PETSCBLASMIXED(x,X) PETSC_PASTE3(PETSC_BLASLAPACK_MIXEDPREFIX_, x, PETSC_BLASLAPACK_SUFFIX_)</font>
<a name="line61"> 61: </a><font color="#A020F0">#endif</font>
<a name="line63"> 63: </a>#include <A href="slepcblaslapack_mangle.h.html"><slepcblaslapack_mangle.h></A>
<a name="line65"> 65: </a><font color="#B22222">/* LAPACK functions without string parameters */</font>
<a name="line66"> 66: </a><strong><font color="#4169E1">BLAS_EXTERN void BLASrot_(PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscScalar*)</font></strong>;
<a name="line67"> 67: </a><strong><font color="#4169E1">BLAS_EXTERN void BLASMIXEDrot_(PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscReal*)</font></strong>;
<a name="line68"> 68: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LAEV2)</font>
<a name="line69"> 69: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKlaev2_(PetscScalar*,PetscScalar*,PetscScalar*,PetscReal*,PetscReal*,PetscReal*,PetscScalar*)</font></strong>;
<a name="line70"> 70: </a><font color="#A020F0">#else</font>
<a name="line71"> 71: </a><strong><font color="#228B22">#define LAPACKlaev2_(a,b,c,d,e,f,g) PetscMissingLapack(</font><font color="#666666">"LAEV2"</font><font color="#228B22">,a,b,c,d,e,f,g);</font></strong>
<a name="line72"> 72: </a><font color="#A020F0">#endif</font>
<a name="line73"> 73: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_GEHRD)</font>
<a name="line74"> 74: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKgehrd_(PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line75"> 75: </a><font color="#A020F0">#else</font>
<a name="line76"> 76: </a><strong><font color="#228B22">#define LAPACKgehrd_(a,b,c,d,e,f,g,h,i) PetscMissingLapack(</font><font color="#666666">"GEHRD"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i);</font></strong>
<a name="line77"> 77: </a><font color="#A020F0">#endif</font>
<a name="line78"> 78: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LARFG)</font>
<a name="line79"> 79: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKlarfg_(PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*)</font></strong>;
<a name="line80"> 80: </a><font color="#A020F0">#else</font>
<a name="line81"> 81: </a><strong><font color="#228B22">#define LAPACKlarfg_(a,b,c,d,e) PetscMissingLapack(</font><font color="#666666">"LARFG"</font><font color="#228B22">,a,b,c,d,e);</font></strong>
<a name="line82"> 82: </a><font color="#A020F0">#endif</font>
<a name="line83"> 83: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LAG2)</font>
<a name="line84"> 84: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKlag2_(PetscReal*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscReal*)</font></strong>;
<a name="line85"> 85: </a><font color="#A020F0">#else</font>
<a name="line86"> 86: </a><strong><font color="#228B22">#define LAPACKlag2_(a,b,c,d,e,f,g,h,i,j) PetscMissingLapack(</font><font color="#666666">"LAG2"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j);</font></strong>
<a name="line87"> 87: </a><font color="#A020F0">#endif</font>
<a name="line88"> 88: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LASV2)</font>
<a name="line89"> 89: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKlasv2_(PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscReal*)</font></strong>;
<a name="line90"> 90: </a><font color="#A020F0">#else</font>
<a name="line91"> 91: </a><strong><font color="#228B22">#define LAPACKlasv2_(a,b,c,d,e,f,g,h,i) PetscMissingLapack(</font><font color="#666666">"LASV2"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i);</font></strong>
<a name="line92"> 92: </a><font color="#A020F0">#endif</font>
<a name="line93"> 93: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LARTG)</font>
<a name="line94"> 94: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKlartg_(PetscScalar*,PetscScalar*,PetscReal*,PetscScalar*,PetscScalar*)</font></strong>;
<a name="line95"> 95: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKREALlartg_(PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscReal*)</font></strong>;
<a name="line96"> 96: </a><font color="#A020F0">#else</font>
<a name="line97"> 97: </a><strong><font color="#228B22">#define LAPACKlartg_(a,b,c,d,e) PetscMissingLapack(</font><font color="#666666">"LARTG"</font><font color="#228B22">,a,b,c,d,e);</font></strong>
<a name="line98"> 98: </a><strong><font color="#228B22">#define LAPACKREALlartg_(a,b,c,d,e) PetscMissingLapack(</font><font color="#666666">"LARTG"</font><font color="#228B22">,a,b,c,d,e);</font></strong>
<a name="line99"> 99: </a><font color="#A020F0">#endif</font>
<a name="line100">100: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LAED4)</font>
<a name="line101">101: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKlaed4_(PetscBLASInt*,PetscBLASInt*,PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscBLASInt*)</font></strong>;
<a name="line102">102: </a><font color="#A020F0">#else</font>
<a name="line103">103: </a><strong><font color="#228B22">#define LAPACKlaed4_(a,b,c,d,e,f,g,h) PetscMissingLapack(</font><font color="#666666">"LAED4"</font><font color="#228B22">,a,b,c,d,e,f,g,h);</font></strong>
<a name="line104">104: </a><font color="#A020F0">#endif</font>
<a name="line105">105: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LAMRG)</font>
<a name="line106">106: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKlamrg_(PetscBLASInt*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line107">107: </a><font color="#A020F0">#else</font>
<a name="line108">108: </a><strong><font color="#228B22">#define LAPACKlamrg_(a,b,c,d,e,f) PetscMissingLapack(</font><font color="#666666">"LAMRG"</font><font color="#228B22">,a,b,c,d,e,f);</font></strong>
<a name="line109">109: </a><font color="#A020F0">#endif</font>
<a name="line110">110: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_ORGHR)</font>
<a name="line111">111: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKorghr_(PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line112">112: </a><font color="#A020F0">#else</font>
<a name="line113">113: </a><strong><font color="#228B22">#define LAPACKorghr_(a,b,c,d,e,f,g,h,i) PetscMissingLapack(</font><font color="#666666">"ORGHR"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i);</font></strong>
<a name="line114">114: </a><font color="#A020F0">#endif</font>
<a name="line115">115: </a><font color="#A020F0">#if !defined(PETSC_USE_COMPLEX)</font>
<a name="line116">116: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_TGEXC)</font>
<a name="line117">117: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKtgexc_(PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line118">118: </a><font color="#A020F0">#else</font>
<a name="line119">119: </a><strong><font color="#228B22">#define LAPACKtgexc_(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) PetscMissingLapack(</font><font color="#666666">"TGEXC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p);</font></strong>
<a name="line120">120: </a><font color="#A020F0">#endif</font>
<a name="line121">121: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKgeqp3_(PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line122">122: </a><font color="#A020F0">#else</font>
<a name="line123">123: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_TGEXC)</font>
<a name="line124">124: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKtgexc_(PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line125">125: </a><font color="#A020F0">#else</font>
<a name="line126">126: </a><strong><font color="#228B22">#define LAPACKtgexc_(a,b,c,d,e,f,g,h,i,j,k,l,m,n) PetscMissingLapack(</font><font color="#666666">"TGEXC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m,n);</font></strong>
<a name="line127">127: </a><font color="#A020F0">#endif</font>
<a name="line128">128: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKgeqp3_(PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscBLASInt*)</font></strong>;
<a name="line129">129: </a><font color="#A020F0">#endif</font>
<a name="line131">131: </a><font color="#B22222">/* LAPACK functions with string parameters */</font>
<a name="line133">133: </a><font color="#B22222">/* same name for real and complex */</font>
<a name="line134">134: </a><strong><font color="#4169E1">BLAS_EXTERN void BLAStrmm_(const char*,const char*,const char*,const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*)</font></strong>;
<a name="line135">135: </a><strong><font color="#4169E1">BLAS_EXTERN SlepcLRT LAPACKlange_(const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*)</font></strong>;
<a name="line136">136: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LANHS)</font>
<a name="line137">137: </a><strong><font color="#4169E1">BLAS_EXTERN SlepcLRT LAPACKlanhs_(const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*)</font></strong>;
<a name="line138">138: </a><font color="#A020F0">#else</font>
<a name="line139">139: </a><strong><font color="#4169E1"><a name="LAPACKlanhs_"></a>PETSC_STATIC_INLINE SlepcLRT LAPACKlanhs_(const char *norm,PetscBLASInt *n,PetscScalar *A,PetscBLASInt *lda,PetscReal *work)</font></strong> {<font color="#4169E1">return</font> LAPACKlange_(norm,n,n,A,lda,work);}
<a name="line140">140: </a><font color="#A020F0">#endif</font>
<a name="line141">141: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LARF)</font>
<a name="line142">142: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKlarf_(const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*)</font></strong>;
<a name="line143">143: </a><font color="#A020F0">#else</font>
<a name="line144">144: </a><strong><font color="#228B22">#define LAPACKlarf_(a,b,c,d,e,f,g,h,i) PetscMissingLapack(</font><font color="#666666">"LARF"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i);</font></strong>
<a name="line145">145: </a><font color="#A020F0">#endif</font>
<a name="line146">146: </a><strong><font color="#4169E1">BLAS_EXTERN SlepcLRT LAPACKlansy_(const char*,const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*)</font></strong>;
<a name="line147">147: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_TRSYL)</font>
<a name="line148">148: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKtrsyl_(const char*,const char*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscBLASInt*)</font></strong>;
<a name="line149">149: </a><font color="#A020F0">#else</font>
<a name="line150">150: </a><strong><font color="#228B22">#define LAPACKtrsyl_(a,b,c,d,e,f,g,h,i,j,k,l,m) PetscMissingLapack(</font><font color="#666666">"TRSYL"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m);</font></strong>
<a name="line151">151: </a><font color="#A020F0">#endif</font>
<a name="line152">152: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKtrtri_(const char*,const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line154">154: </a><font color="#B22222">/* subroutines in which we use only the real version, do not care whether they have different name */</font>
<a name="line155">155: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_STEVR)</font>
<a name="line156">156: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKstevr_(const char*,const char*,PetscBLASInt*,PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscBLASInt*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscReal*,PetscReal*,PetscBLASInt*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line157">157: </a><font color="#A020F0">#else</font>
<a name="line158">158: </a><strong><font color="#228B22">#define LAPACKstevr_(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t) PetscMissingLapack(</font><font color="#666666">"STEVR"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t);</font></strong>
<a name="line159">159: </a><font color="#A020F0">#endif</font>
<a name="line160">160: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_BDSDC)</font>
<a name="line161">161: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKbdsdc_(const char*,const char*,PetscBLASInt*,PetscReal*,PetscReal*,PetscReal*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line162">162: </a><font color="#A020F0">#else</font>
<a name="line163">163: </a><strong><font color="#228B22">#define LAPACKbdsdc_(a,b,c,d,e,f,g,h,i,j,k,l,m,n) PetscMissingLapack(</font><font color="#666666">"BDSDC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m,n);</font></strong>
<a name="line164">164: </a><font color="#A020F0">#endif</font>
<a name="line165">165: </a><strong><font color="#4169E1">BLAS_EXTERN SlepcLRT LAPACKlamch_(const char*)</font></strong>;
<a name="line166">166: </a><strong><font color="#4169E1">BLAS_EXTERN SlepcLRT LAPACKlamc3_(PetscReal*,PetscReal*)</font></strong>;
<a name="line168">168: </a><font color="#B22222">/* subroutines with different name in real/complex */</font>
<a name="line169">169: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_ORGTR)</font>
<a name="line170">170: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKorgtr_(const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line171">171: </a><font color="#A020F0">#else</font>
<a name="line172">172: </a><strong><font color="#228B22">#define LAPACKorgtr_(a,b,c,d,e,f,g,h) PetscMissingLapack(</font><font color="#666666">"ORGTR"</font><font color="#228B22">,a,b,c,d,e,f,g,h);</font></strong>
<a name="line173">173: </a><font color="#A020F0">#endif</font>
<a name="line174">174: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_SYTRD)</font>
<a name="line175">175: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKsytrd_(const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscReal*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line176">176: </a><font color="#A020F0">#else</font>
<a name="line177">177: </a><strong><font color="#228B22">#define LAPACKsytrd_(a,b,c,d,e,f,g,h,i,j) PetscMissingLapack(</font><font color="#666666">"SYTRD"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j);</font></strong>
<a name="line178">178: </a><font color="#A020F0">#endif</font>
<a name="line179">179: </a><font color="#A020F0">#if !defined(PETSC_USE_COMPLEX)</font>
<a name="line180">180: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKsyevd_(const char*,const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line181">181: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKsygvd_(PetscBLASInt*,const char*,const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line182">182: </a><font color="#A020F0">#else</font>
<a name="line183">183: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKsyevd_(const char*,const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line184">184: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKsygvd_(PetscBLASInt*,const char*,const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line185">185: </a><font color="#A020F0">#endif</font>
<a name="line187">187: </a><font color="#B22222">/* subroutines with different signature in real/complex */</font>
<a name="line188">188: </a><font color="#A020F0">#if !defined(PETSC_USE_COMPLEX)</font>
<a name="line189">189: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKggev_(const char*,const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line190">190: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_TREVC)</font>
<a name="line191">191: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKtrevc_(const char*,const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*)</font></strong>;
<a name="line192">192: </a><font color="#A020F0">#else</font>
<a name="line193">193: </a><strong><font color="#228B22">#define LAPACKtrevc_(a,b,c,d,e,f,g,h,i,j,k,l,m,n) PetscMissingLapack(</font><font color="#666666">"TREVC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m,n);</font></strong>
<a name="line194">194: </a><font color="#A020F0">#endif</font>
<a name="line195">195: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKgeevx_(const char*,const char*,const char*,const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscScalar*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line196">196: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKgees_(const char*,const char*,PetscBLASInt(*)(PetscReal,PetscReal),PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line197">197: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_TREXC)</font>
<a name="line198">198: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKtrexc_(const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*)</font></strong>;
<a name="line199">199: </a><font color="#A020F0">#else</font>
<a name="line200">200: </a><strong><font color="#228B22">#define LAPACKtrexc_(a,b,c,d,e,f,g,h,i,j) PetscMissingLapack(</font><font color="#666666">"TREXC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j);</font></strong>
<a name="line201">201: </a><font color="#A020F0">#endif</font>
<a name="line202">202: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKgesdd_(const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line203">203: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_TGEVC)</font>
<a name="line204">204: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKtgevc_(const char*,const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*)</font></strong>;
<a name="line205">205: </a><font color="#A020F0">#else</font>
<a name="line206">206: </a><strong><font color="#228B22">#define LAPACKtgevc_(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) PetscMissingLapack(</font><font color="#666666">"TGEVC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p);</font></strong>
<a name="line207">207: </a><font color="#A020F0">#endif</font>
<a name="line208">208: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_HSEIN)</font>
<a name="line209">209: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKhsein_(const char*,const char*,const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line210">210: </a><font color="#A020F0">#else</font>
<a name="line211">211: </a><strong><font color="#228B22">#define LAPACKhsein_(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s) PetscMissingLapack(</font><font color="#666666">"HSEIN"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s);</font></strong>
<a name="line212">212: </a><font color="#A020F0">#endif</font>
<a name="line213">213: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_STEDC)</font>
<a name="line214">214: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKstedc_(const char*,PetscBLASInt*,PetscReal*,PetscReal*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line215">215: </a><font color="#A020F0">#else</font>
<a name="line216">216: </a><strong><font color="#228B22">#define LAPACKstedc_(a,b,c,d,e,f,g,h,i,j,k) PetscMissingLapack(</font><font color="#666666">"STEDC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k);</font></strong>
<a name="line217">217: </a><font color="#A020F0">#endif</font>
<a name="line218">218: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LASCL)</font>
<a name="line219">219: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKlascl_(const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line220">220: </a><font color="#A020F0">#else</font>
<a name="line221">221: </a><strong><font color="#228B22">#define LAPACKlascl_(a,b,c,d,e,f,g,h,i,j) PetscMissingLapack(</font><font color="#666666">"LASCL"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j);</font></strong>
<a name="line222">222: </a><font color="#A020F0">#endif</font>
<a name="line223">223: </a><font color="#A020F0">#else</font>
<a name="line224">224: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKggev_(const char*,const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscBLASInt*)</font></strong>;
<a name="line225">225: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_TREVC)</font>
<a name="line226">226: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKtrevc_(const char*,const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscReal*,PetscBLASInt*)</font></strong>;
<a name="line227">227: </a><font color="#A020F0">#else</font>
<a name="line228">228: </a><strong><font color="#228B22">#define LAPACKtrevc_(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) PetscMissingLapack(</font><font color="#666666">"TREVC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o);</font></strong>
<a name="line229">229: </a><font color="#A020F0">#endif</font>
<a name="line230">230: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKgeevx_(const char*,const char*,const char*,const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscReal*,PetscReal*,PetscReal*,PetscReal*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscBLASInt*)</font></strong>;
<a name="line231">231: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKgees_(const char*,const char*,PetscBLASInt(*)(PetscScalar),PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line232">232: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_TREXC)</font>
<a name="line233">233: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKtrexc_(const char*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line234">234: </a><font color="#A020F0">#else</font>
<a name="line235">235: </a><strong><font color="#228B22">#define LAPACKtrexc_(a,b,c,d,e,f,g,h,i) PetscMissingLapack(</font><font color="#666666">"TREXC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i);</font></strong>
<a name="line236">236: </a><font color="#A020F0">#endif</font>
<a name="line237">237: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKgesdd_(const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line238">238: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_TGEVC)</font>
<a name="line239">239: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKtgevc_(const char*,const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscReal*,PetscBLASInt*)</font></strong>;
<a name="line240">240: </a><font color="#A020F0">#else</font>
<a name="line241">241: </a><strong><font color="#228B22">#define LAPACKtgevc_(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q) PetscMissingLapack(</font><font color="#666666">"TGEVC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q);</font></strong>
<a name="line242">242: </a><font color="#A020F0">#endif</font>
<a name="line243">243: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_HSEIN)</font>
<a name="line244">244: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKhsein_(const char*,const char*,const char*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscReal*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line245">245: </a><font color="#A020F0">#else</font>
<a name="line246">246: </a><strong><font color="#228B22">#define LAPACKhsein_(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s) PetscMissingLapack(</font><font color="#666666">"HSEIN"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s);</font></strong>
<a name="line247">247: </a><font color="#A020F0">#endif</font>
<a name="line248">248: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_STEDC)</font>
<a name="line249">249: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKstedc_(const char*,PetscBLASInt*,PetscReal*,PetscReal*,PetscScalar*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscReal*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line250">250: </a><font color="#A020F0">#else</font>
<a name="line251">251: </a><strong><font color="#228B22">#define LAPACKstedc_(a,b,c,d,e,f,g,h,i,j,k,l,m) PetscMissingLapack(</font><font color="#666666">"STEDC"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j,k,l,m);</font></strong>
<a name="line252">252: </a><font color="#A020F0">#endif</font>
<a name="line253">253: </a><font color="#A020F0">#if !defined(SLEPC_MISSING_LAPACK_LASCL)</font>
<a name="line254">254: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKlascl_(const char*,PetscBLASInt*,PetscBLASInt*,PetscReal*,PetscReal*,PetscBLASInt*,PetscBLASInt*,PetscScalar*,PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line255">255: </a><font color="#A020F0">#else</font>
<a name="line256">256: </a><strong><font color="#228B22">#define LAPACKlascl_(a,b,c,d,e,f,g,h,i,j) PetscMissingLapack(</font><font color="#666666">"LASCL"</font><font color="#228B22">,a,b,c,d,e,f,g,h,i,j);</font></strong>
<a name="line257">257: </a><font color="#A020F0">#endif</font>
<a name="line258">258: </a><font color="#A020F0">#endif</font>
<a name="line260">260: </a><font color="#A020F0">#if defined(PETSC_HAVE_COMPLEX)</font>
<a name="line261">261: </a><font color="#B22222">/* complex subroutines to be called with scalar-type=real */</font>
<a name="line262">262: </a><strong><font color="#4169E1">BLAS_EXTERN void BLASCOMPLEXgemm_(const char*,const char*,const PetscBLASInt*,const PetscBLASInt*,const PetscBLASInt*,const PetscComplex*,const PetscComplex*,const PetscBLASInt*,const PetscComplex*,const PetscBLASInt*,const PetscComplex*,PetscComplex*,const PetscBLASInt*)</font></strong>;
<a name="line263">263: </a><strong><font color="#4169E1">BLAS_EXTERN void BLASCOMPLEXscal_(const PetscBLASInt*,const PetscComplex*,PetscComplex*,const PetscBLASInt*)</font></strong>;
<a name="line264">264: </a><strong><font color="#4169E1">BLAS_EXTERN void LAPACKCOMPLEXgesv_(const PetscBLASInt*,const PetscBLASInt*,PetscComplex*,const PetscBLASInt*,PetscBLASInt*,PetscComplex*,const PetscBLASInt*,PetscBLASInt*)</font></strong>;
<a name="line265">265: </a><font color="#A020F0">#endif</font>
<a name="line267">267: </a><font color="#A020F0">#endif</font>
</pre>
</body>
</html>
|