本文整理汇总了C++中C2F_CHAR函数的典型用法代码示例。如果您正苦于以下问题:C++ C2F_CHAR函数的具体用法?C++ C2F_CHAR怎么用?C++ C2F_CHAR使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了C2F_CHAR函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: lapack_ztrexc
void lapack_ztrexc(const enum lapack_compute_type compq, const int n, void * t, const int ldt, void * q, const int ldq, const int ifst, const int ilst, int * info )
{
#ifdef F77_INT
F77_INT F77_n=n, F77_ldt=ldt, F77_ldq=ldq, F77_ifst=ifst, F77_ilst=ilst;
int i_local;
F77_INT F77_info[1];
#else
#define F77_n n
#define F77_ldt ldt
#define F77_ldq ldq
#define F77_ifst ifst
#define F77_ilst ilst
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_compq;
#else
#define F77_compq C_compq
#endif
char C_compq=' ';
if (compq == lapack_not_compute) {
C_compq = 'N';
} else if (compq == lapack_unitary) {
C_compq = 'I';
} else if (compq == lapack_product) {
C_compq = 'V';
}
#ifdef F77_CHAR
F77_compq = C2F_CHAR(&C_compq)
#endif
f77_ztrexc(&F77_compq, &F77_n, t, &F77_ldt, q, &F77_ldq, &F77_ifst, &F77_ilst, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例2: lapack_clange
float lapack_clange(const enum lapack_norm_type norm, const int m, const int n, const void * a, const int lda, float * work )
{
float output;
#ifdef F77_INT
F77_INT F77_m=m, F77_n=n, F77_lda=lda;
#else
#define F77_m m
#define F77_n n
#define F77_lda lda
#endif
#ifdef F77_CHAR
F77_CHAR F77_norm;
#else
#define F77_norm C_norm
#endif
char C_norm=' ';
if (norm == lapack_one_norm) {
C_norm = '1';
} else if (norm == lapack_inf_norm) {
C_norm = 'I';
} else if (norm == lapack_max_norm) {
C_norm = 'M';
} else if (norm == lapack_frobenius_norm) {
C_norm = 'F';
}
#ifdef F77_CHAR
F77_norm = C2F_CHAR(&C_norm)
#endif
f77_clange(&output, &F77_norm, &F77_m, &F77_n, a, &F77_lda, work);
#ifdef F77_INT
#endif
return output;
}
示例3: lapack_cpbrfs
void lapack_cpbrfs(const enum lapack_uplo_type uplo, const int n, const int kd, const int nrhs, const void * ab, const int ldab, const void * afb, const int ldafb, const void * b, const int ldb, void * x, const int ldx, float * ferr, float * berr, void * work, float * rwork, int * info )
{
#ifdef F77_INT
F77_INT F77_n=n, F77_kd=kd, F77_nrhs=nrhs, F77_ldab=ldab, F77_ldafb=ldafb, F77_ldb=ldb, F77_ldx=ldx;
int i_local;
F77_INT F77_info[1];
#else
#define F77_n n
#define F77_kd kd
#define F77_nrhs nrhs
#define F77_ldab ldab
#define F77_ldafb ldafb
#define F77_ldb ldb
#define F77_ldx ldx
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
f77_cpbrfs(&F77_uplo, &F77_n, &F77_kd, &F77_nrhs, ab, &F77_ldab, afb, &F77_ldafb, b, &F77_ldb, x, &F77_ldx, ferr, berr, work, rwork, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例4: lapack_csytri
void lapack_csytri(const enum lapack_uplo_type uplo, const int n, void * a, const int lda, const int * ipiv, void * work, int * info )
{
#ifdef F77_INT
F77_INT F77_n=n, F77_lda=lda;
int i_local;
F77_INT F77_ipiv[n*1];
for(i_local=0;i_local<n*1;i_local++) {
F77_ipiv[i_local]=(F77_INT) ipiv[i_local];
}
F77_INT F77_info[1];
#else
#define F77_n n
#define F77_lda lda
#define F77_ipiv ipiv
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
f77_csytri(&F77_uplo, &F77_n, a, &F77_lda, F77_ipiv, work, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例5: lapack_cbdsqr
void lapack_cbdsqr(const enum lapack_uplo_type uplo, const int n, const int ncvt, const int nru, const int ncc, float * d, float * e, void * vt, const int ldvt, void * u, const int ldu, void * c, const int ldc, float * rwork, int * info )
{
#ifdef F77_INT
F77_INT F77_n=n, F77_ncvt=ncvt, F77_nru=nru, F77_ncc=ncc, F77_ldvt=ldvt, F77_ldu=ldu, F77_ldc=ldc;
int i_local;
F77_INT F77_info[1];
#else
#define F77_n n
#define F77_ncvt ncvt
#define F77_nru nru
#define F77_ncc ncc
#define F77_ldvt ldvt
#define F77_ldu ldu
#define F77_ldc ldc
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
f77_cbdsqr(&F77_uplo, &F77_n, &F77_ncvt, &F77_nru, &F77_ncc, d, e, vt, &F77_ldvt, u, &F77_ldu, c, &F77_ldc, rwork, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例6: lapack_cspcon
void lapack_cspcon(const enum lapack_uplo_type uplo, const int n, const void * ap, const int * ipiv, const float anorm, float * rcond, void * work, int * info )
{
#ifdef F77_INT
F77_INT F77_n=n;
int i_local;
F77_INT F77_ipiv[n*1];
for(i_local=0;i_local<n*1;i_local++) {
F77_ipiv[i_local]=(F77_INT) ipiv[i_local];
}
F77_INT F77_info[1];
#else
#define F77_n n
#define F77_ipiv ipiv
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
f77_cspcon(&F77_uplo, &F77_n, ap, F77_ipiv, &anorm, rcond, work, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例7: lapack_slanst
float lapack_slanst(const enum lapack_norm_type norm, const int n, const float * d, const float * e )
{
float output;
#ifdef F77_INT
F77_INT F77_n=n;
#else
#define F77_n n
#endif
#ifdef F77_CHAR
F77_CHAR F77_norm;
#else
#define F77_norm C_norm
#endif
char C_norm=' ';
if (norm == lapack_one_norm) {
C_norm = '1';
} else if (norm == lapack_inf_norm) {
C_norm = 'I';
} else if (norm == lapack_max_norm) {
C_norm = 'M';
} else if (norm == lapack_frobenius_norm) {
C_norm = 'F';
}
#ifdef F77_CHAR
F77_norm = C2F_CHAR(&C_norm)
#endif
f77_slanst(&output, &F77_norm, &F77_n, d, e);
#ifdef F77_INT
#endif
return output;
}
示例8: lapack_zpbtrs
void lapack_zpbtrs(const enum lapack_uplo_type uplo, const int n, const int kd, const int nrhs, const void * ab, const int ldab, void * b, const int ldb, int * info )
{
#ifdef F77_INT
F77_INT F77_n=n, F77_kd=kd, F77_nrhs=nrhs, F77_ldab=ldab, F77_ldb=ldb;
int i_local;
F77_INT F77_info[1];
#else
#define F77_n n
#define F77_kd kd
#define F77_nrhs nrhs
#define F77_ldab ldab
#define F77_ldb ldb
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
f77_zpbtrs(&F77_uplo, &F77_n, &F77_kd, &F77_nrhs, ab, &F77_ldab, b, &F77_ldb, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例9: lapack_claqhb
void lapack_claqhb(const enum lapack_uplo_type uplo, const int n, const int kd, void * ab, const int ldab, float * s, const float scond, const float amax, char * equed )
{
#ifdef F77_INT
F77_INT F77_n=n, F77_kd=kd, F77_ldab=ldab;
#else
#define F77_n n
#define F77_kd kd
#define F77_ldab ldab
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
#ifdef F77_CHAR
F77_CHAR F77_equed = C2F_STR(equed, strlen(equed)) ;
#else
#define F77_equed equed
#endif
f77_claqhb(&F77_uplo, &F77_n, &F77_kd, ab, &F77_ldab, s, &scond, &amax, equed);
#ifdef F77_INT
#endif
}
示例10: lapack_ssygst
void lapack_ssygst(const int itype, const enum lapack_uplo_type uplo, const int n, float * a, const int lda, const float * b, const int ldb, int * info )
{
#ifdef F77_INT
F77_INT F77_itype=itype, F77_n=n, F77_lda=lda, F77_ldb=ldb;
int i_local;
F77_INT F77_info[1];
#else
#define F77_itype itype
#define F77_n n
#define F77_lda lda
#define F77_ldb ldb
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
f77_ssygst(&F77_itype, &F77_uplo, &F77_n, a, &F77_lda, b, &F77_ldb, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例11: lapack_zpteqr
void lapack_zpteqr(const enum lapack_compute_type compz, const int n, double * d, double * e, void * z, const int ldz, double * work, int * info )
{
#ifdef F77_INT
F77_INT F77_n=n, F77_ldz=ldz;
int i_local;
F77_INT F77_info[1];
#else
#define F77_n n
#define F77_ldz ldz
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_compz;
#else
#define F77_compz C_compz
#endif
char C_compz=' ';
if (compz == lapack_not_compute) {
C_compz = 'N';
} else if (compz == lapack_unitary) {
C_compz = 'I';
} else if (compz == lapack_product) {
C_compz = 'V';
}
#ifdef F77_CHAR
F77_compz = C2F_CHAR(&C_compz)
#endif
f77_zpteqr(&F77_compz, &F77_n, d, e, z, &F77_ldz, work, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例12: lapack_zpprfs
void lapack_zpprfs(const enum lapack_uplo_type uplo, const int n, const int nrhs, const void * ap, const void * afp, const void * b, const int ldb, void * x, const int ldx, double * ferr, double * berr, void * work, double * rwork, int * info )
{
#ifdef F77_INT
F77_INT F77_n=n, F77_nrhs=nrhs, F77_ldb=ldb, F77_ldx=ldx;
int i_local;
F77_INT F77_info[1];
#else
#define F77_n n
#define F77_nrhs nrhs
#define F77_ldb ldb
#define F77_ldx ldx
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
f77_zpprfs(&F77_uplo, &F77_n, &F77_nrhs, ap, afp, b, &F77_ldb, x, &F77_ldx, ferr, berr, work, rwork, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例13: lapack_dorgtr
void lapack_dorgtr(const enum lapack_uplo_type uplo, const int n, double * a, const int lda, const double * tau, double * work, const int lwork, int * info )
{
#ifdef F77_INT
F77_INT F77_n=n, F77_lda=lda, F77_lwork=lwork;
int i_local;
F77_INT F77_info[1];
#else
#define F77_n n
#define F77_lda lda
#define F77_lwork lwork
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
f77_dorgtr(&F77_uplo, &F77_n, a, &F77_lda, tau, work, &F77_lwork, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例14: lapack_dpbtf2
void lapack_dpbtf2(const enum lapack_uplo_type uplo, const int n, const int kd, double * ab, const int ldab, int * info )
{
#ifdef F77_INT
F77_INT F77_n=n, F77_kd=kd, F77_ldab=ldab;
int i_local;
F77_INT F77_info[1];
#else
#define F77_n n
#define F77_kd kd
#define F77_ldab ldab
#define F77_info info
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
f77_dpbtf2(&F77_uplo, &F77_n, &F77_kd, ab, &F77_ldab, F77_info);
#ifdef F77_INT
info[0]=(int) F77_info[0];
#endif
}
示例15: lapack_claqhp
void lapack_claqhp(const enum lapack_uplo_type uplo, const int n, void * ap, const float * s, const float scond, const float amax, char * equed )
{
#ifdef F77_INT
F77_INT F77_n=n;
#else
#define F77_n n
#endif
#ifdef F77_CHAR
F77_CHAR F77_uplo;
#else
#define F77_uplo C_uplo
#endif
char C_uplo=' ';
if (uplo == lapack_upper) {
C_uplo = 'U';
} else if (uplo == lapack_lower) {
C_uplo = 'L';
}
#ifdef F77_CHAR
F77_uplo = C2F_CHAR(&C_uplo)
#endif
#ifdef F77_CHAR
F77_CHAR F77_equed = C2F_STR(equed, strlen(equed)) ;
#else
#define F77_equed equed
#endif
f77_claqhp(&F77_uplo, &F77_n, ap, s, &scond, &amax, equed);
#ifdef F77_INT
#endif
}