1 #ifndef SimTK_SimTKCOMMON_TEMPLATIZED_LAPACK_H_ 2 #define SimTK_SimTKCOMMON_TEMPLATIZED_LAPACK_H_ 34 #include "SimTKlapack.h" 45 template <
class P>
static void 47 (
char transa,
char transb,
49 const P& alpha,
const P a[],
int lda,
51 const P& beta, P c[],
int ldc) {assert(
false);}
53 template <
class P>
static void 61 int &info ) {assert(
false);}
63 template <
class P>
static void 70 int &info ) {assert(
false);}
76 template <>
inline void Lapack::gemm<float>
77 (
char transa,
char transb,
79 const float& alpha,
const float a[],
int lda,
80 const float b[],
int ldb,
81 const float& beta,
float c[],
int ldc)
85 m,n,k,alpha,a,lda,b,ldb,beta,c,ldc
88 template <>
inline void Lapack::gemm<double>
89 (
char transa,
char transb,
91 const double& alpha,
const double a[],
int lda,
92 const double b[],
int ldb,
93 const double& beta,
double c[],
int ldc)
97 m,n,k,alpha,a,lda,b,ldb,beta,c,ldc
100 template <>
inline void Lapack::gemm< complex<float> >
101 (
char transa,
char transb,
103 const complex<float>& alpha,
const complex<float> a[],
int lda,
104 const complex<float> b[],
int ldb,
105 const complex<float>& beta, complex<float> c[],
int ldc)
109 m,n,k,alpha,a,lda,b,ldb,beta,c,ldc
112 template <>
inline void Lapack::gemm< complex<double> >
113 (
char transa,
char transb,
115 const complex<double>& alpha,
const complex<double> a[],
int lda,
116 const complex<double> b[],
int ldb,
117 const complex<double>& beta, complex<double> c[],
int ldc)
121 m,n,k,alpha,a,lda,b,ldb,beta,c,ldc
127 template <>
inline void Lapack::getri<float>
136 sgetri_(n,a,lda,ipiv,work,lwork,info);
139 template <>
inline void Lapack::getri<double>
148 dgetri_(n,a,lda,ipiv,work,lwork,info);
151 template <>
inline void Lapack::getri< complex<float> >
156 complex<float> work[],
160 cgetri_(n,a,lda,ipiv,work,lwork,info);
163 template <>
inline void Lapack::getri< complex<double> >
168 complex<double> work[],
172 zgetri_(n,a,lda,ipiv,work,lwork,info);
176 template <>
inline void Lapack::getrf<float>
184 sgetrf_(m,n,a,lda,ipiv,info);
187 template <>
inline void Lapack::getrf<double>
195 dgetrf_(m,n,a,lda,ipiv,info);
198 template <>
inline void Lapack::getrf< complex<float> >
206 cgetrf_(m,n,a,lda,ipiv,info);
209 template <>
inline void Lapack::getrf< complex<double> >
217 zgetrf_(m,n,a,lda,ipiv,info);
361 #endif // SimTK_SimTKCOMMON_TEMPLATIZED_LAPACK_H_ This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition: Assembler.h:37
static void getri(int n, P a[], int lda, const int ipiv[], P work[], int lwork, int &info)
Definition: TemplatizedLapack.h:55
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the work(an example is provided in the Appendix below)."Derivative Works"shall mean any work
m
Definition: CMakeCache.txt:469
static void getrf(int m, int n, P a[], int lda, int ipiv[], int &info)
Definition: TemplatizedLapack.h:65
Definition: TemplatizedLapack.h:41
static void gemm(char transa, char transb, int m, int n, int k, const P &alpha, const P a[], int lda, const P b[], int ldb, const P &beta, P c[], int ldc)
Definition: TemplatizedLapack.h:47
gikDdMV wfaIJt A٩t1 JcA nr S q is3 ֧ VK C 9Z D q Fxn n T Y < ['jd< K JvTMH"sw>}o_o? z'z:mV$yng͖i۸J{ Ta*dE|lzbX@!^Ooi_=O}&ŲQUVWTsh!P_7DRAVfʿbOԹɫt0Y!|'x'óݥ:/ V[,}-B֞/܂;:;;Iޘ[nK4#-='Gf\lb41۩> Os7x f pZzB I g n
Definition: SimmathUserGuide.doc:2262
Mandatory first inclusion for any Simbody source or header file.