10 #define TEST_COL_MJR 0
11 #define TEST_ROW_MJR 1
14 void F77_zgemm(
int *layout,
char *transpa,
char *transpb,
int *m,
int *n,
31 for( j=0; j<*k; j++ ) {
40 for( j=0; j<*m; j++ ) {
50 for( j=0; j<*n; j++ ) {
59 for( j=0; j<*k; j++ ) {
68 for( i=0; i<*m; i++ ) {
73 B, LDB, beta, C, LDC );
75 for( i=0; i<*m; i++ ) {
85 b, *ldb, beta, c, *ldc );
88 b, *ldb, beta, c, *ldc );
90 void F77_zhemm(
int *layout,
char *rtlf,
char *uplow,
int *m,
int *n,
107 for( i=0; i<*m; i++ )
108 for( j=0; j<*m; j++ ) {
116 for( i=0; i<*n; i++ )
117 for( j=0; j<*n; j++ ) {
124 for( i=0; i<*m; i++ )
125 for( j=0; j<*n; j++ ) {
131 for( j=0; j<*n; j++ )
132 for( i=0; i<*m; i++ ) {
136 cblas_zhemm(
CblasRowMajor, side, uplo, *m, *n, alpha, A, LDA, B, LDB,
138 for( j=0; j<*n; j++ )
139 for( i=0; i<*m; i++ ) {
148 cblas_zhemm(
CblasColMajor, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
151 cblas_zhemm(
UNDEFINED, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
154 void F77_zsymm(
int *layout,
char *rtlf,
char *uplow,
int *m,
int *n,
171 for( i=0; i<*m; i++ )
172 for( j=0; j<*m; j++ )
173 A[i*LDA+j]=a[j*(*lda)+i];
178 for( i=0; i<*n; i++ )
179 for( j=0; j<*n; j++ )
180 A[i*LDA+j]=a[j*(*lda)+i];
184 for( i=0; i<*m; i++ )
185 for( j=0; j<*n; j++ )
186 B[i*LDB+j]=b[j*(*ldb)+i];
189 for( j=0; j<*n; j++ )
190 for( i=0; i<*m; i++ )
191 C[i*LDC+j]=c[j*(*ldc)+i];
192 cblas_zsymm(
CblasRowMajor, side, uplo, *m, *n, alpha, A, LDA, B, LDB,
194 for( j=0; j<*n; j++ )
195 for( i=0; i<*m; i++ )
196 c[j*(*ldc)+i]=C[i*LDC+j];
202 cblas_zsymm(
CblasColMajor, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
205 cblas_zsymm(
UNDEFINED, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
209 void F77_zherk(
int *layout,
char *uplow,
char *transp,
int *n,
int *k,
225 for( i=0; i<*n; i++ )
226 for( j=0; j<*k; j++ ) {
234 for( i=0; i<*k; i++ )
235 for( j=0; j<*n; j++ ) {
242 for( i=0; i<*n; i++ )
243 for( j=0; j<*n; j++ ) {
249 for( j=0; j<*n; j++ )
250 for( i=0; i<*n; i++ ) {
265 void F77_zsyrk(
int *layout,
char *uplow,
char *transp,
int *n,
int *k,
281 for( i=0; i<*n; i++ )
282 for( j=0; j<*k; j++ ) {
290 for( i=0; i<*k; i++ )
291 for( j=0; j<*n; j++ ) {
298 for( i=0; i<*n; i++ )
299 for( j=0; j<*n; j++ ) {
305 for( j=0; j<*n; j++ )
306 for( i=0; i<*n; i++ ) {
320 void F77_zher2k(
int *layout,
char *uplow,
char *transp,
int *n,
int *k,
338 for( i=0; i<*n; i++ )
339 for( j=0; j<*k; j++ ) {
351 for( i=0; i<*k; i++ )
352 for( j=0; j<*n; j++ ){
361 for( i=0; i<*n; i++ )
362 for( j=0; j<*n; j++ ) {
367 B, LDB, *beta, C, LDC );
368 for( j=0; j<*n; j++ )
369 for( i=0; i<*n; i++ ) {
379 b, *ldb, *beta, c, *ldc );
382 b, *ldb, *beta, c, *ldc );
384 void F77_zsyr2k(
int *layout,
char *uplow,
char *transp,
int *n,
int *k,
402 for( i=0; i<*n; i++ )
403 for( j=0; j<*k; j++ ) {
415 for( i=0; i<*k; i++ )
416 for( j=0; j<*n; j++ ){
425 for( i=0; i<*n; i++ )
426 for( j=0; j<*n; j++ ) {
431 B, LDB, beta, C, LDC );
432 for( j=0; j<*n; j++ )
433 for( i=0; i<*n; i++ ) {
443 b, *ldb, beta, c, *ldc );
446 b, *ldb, beta, c, *ldc );
448 void F77_ztrmm(
int *layout,
char *rtlf,
char *uplow,
char *transp,
char *diagn,
467 for( i=0; i<*m; i++ )
468 for( j=0; j<*m; j++ ) {
476 for( i=0; i<*n; i++ )
477 for( j=0; j<*n; j++ ) {
484 for( i=0; i<*m; i++ )
485 for( j=0; j<*n; j++ ) {
491 for( j=0; j<*n; j++ )
492 for( i=0; i<*m; i++ ) {
507 void F77_ztrsm(
int *layout,
char *rtlf,
char *uplow,
char *transp,
char *diagn,
526 for( i=0; i<*m; i++ )
527 for( j=0; j<*m; j++ ) {
535 for( i=0; i<*n; i++ )
536 for( j=0; j<*n; j++ ) {
543 for( i=0; i<*m; i++ )
544 for( j=0; j<*n; j++ ) {
550 for( j=0; j<*n; j++ )
551 for( i=0; i<*m; i++ ) {
void cblas_ztrsm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const int M, const int N, const void *alpha, const void *A, const int lda, void *B, const int ldb)
void cblas_zsyrk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const int N, const int K, const void *alpha, const void *A, const int lda, const void *beta, void *C, const int ldc)
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
void cblas_zherk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const int N, const int K, const double alpha, const void *A, const int lda, const double beta, void *C, const int ldc)
void get_side_type(char *type, CBLAS_SIDE *side)
void F77_zsyr2k(int *layout, char *uplow, char *transp, int *n, int *k, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *b, int *ldb, CBLAS_TEST_ZOMPLEX *beta, CBLAS_TEST_ZOMPLEX *c, int *ldc)
void cblas_zgemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, const int M, const int N, const int K, const void *alpha, const void *A, const int lda, const void *B, const int ldb, const void *beta, void *C, const int ldc)
void cblas_ztrmm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const int M, const int N, const void *alpha, const void *A, const int lda, void *B, const int ldb)
void F77_zsyrk(int *layout, char *uplow, char *transp, int *n, int *k, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *beta, CBLAS_TEST_ZOMPLEX *c, int *ldc)
void F77_zher2k(int *layout, char *uplow, char *transp, int *n, int *k, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *b, int *ldb, double *beta, CBLAS_TEST_ZOMPLEX *c, int *ldc)
void cblas_zher2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const int N, const int K, const void *alpha, const void *A, const int lda, const void *B, const int ldb, const double beta, void *C, const int ldc)
void F77_zhemm(int *layout, char *rtlf, char *uplow, int *m, int *n, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *b, int *ldb, CBLAS_TEST_ZOMPLEX *beta, CBLAS_TEST_ZOMPLEX *c, int *ldc)
void F77_zgemm(int *layout, char *transpa, char *transpb, int *m, int *n, int *k, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *b, int *ldb, CBLAS_TEST_ZOMPLEX *beta, CBLAS_TEST_ZOMPLEX *c, int *ldc)
void cblas_zsyr2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const int N, const int K, const void *alpha, const void *A, const int lda, const void *B, const int ldb, const void *beta, void *C, const int ldc)
void cblas_zhemm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, const int M, const int N, const void *alpha, const void *A, const int lda, const void *B, const int ldb, const void *beta, void *C, const int ldc)
void get_diag_type(char *type, CBLAS_DIAG *diag)
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
void F77_zsymm(int *layout, char *rtlf, char *uplow, int *m, int *n, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *b, int *ldb, CBLAS_TEST_ZOMPLEX *beta, CBLAS_TEST_ZOMPLEX *c, int *ldc)
void F77_ztrsm(int *layout, char *rtlf, char *uplow, char *transp, char *diagn, int *m, int *n, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *b, int *ldb)
void F77_ztrmm(int *layout, char *rtlf, char *uplow, char *transp, char *diagn, int *m, int *n, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *b, int *ldb)
void F77_zherk(int *layout, char *uplow, char *transp, int *n, int *k, double *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, double *beta, CBLAS_TEST_ZOMPLEX *c, int *ldc)
void cblas_zsymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, const int M, const int N, const void *alpha, const void *A, const int lda, const void *B, const int ldb, const void *beta, void *C, const int ldc)