10 #define TEST_COL_MJR 0
11 #define TEST_ROW_MJR 1
14 void F77_cgemm(
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_chemm(
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_chemm(
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_chemm(
CblasColMajor, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
151 cblas_chemm(
UNDEFINED, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
154 void F77_csymm(
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_csymm(
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_csymm(
CblasColMajor, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
205 cblas_csymm(
UNDEFINED, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
209 void F77_cherk(
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_csyrk(
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_cher2k(
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_csyr2k(
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_ctrmm(
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_ctrsm(
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 F77_cgemm(int *layout, char *transpa, char *transpb, int *m, int *n, int *k, CBLAS_TEST_COMPLEX *alpha, CBLAS_TEST_COMPLEX *a, int *lda, CBLAS_TEST_COMPLEX *b, int *ldb, CBLAS_TEST_COMPLEX *beta, CBLAS_TEST_COMPLEX *c, int *ldc)
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
void get_side_type(char *type, CBLAS_SIDE *side)
void F77_ctrsm(int *layout, char *rtlf, char *uplow, char *transp, char *diagn, int *m, int *n, CBLAS_TEST_COMPLEX *alpha, CBLAS_TEST_COMPLEX *a, int *lda, CBLAS_TEST_COMPLEX *b, int *ldb)
void F77_chemm(int *layout, char *rtlf, char *uplow, int *m, int *n, CBLAS_TEST_COMPLEX *alpha, CBLAS_TEST_COMPLEX *a, int *lda, CBLAS_TEST_COMPLEX *b, int *ldb, CBLAS_TEST_COMPLEX *beta, CBLAS_TEST_COMPLEX *c, int *ldc)
void cblas_cgemm(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 F77_cher2k(int *layout, char *uplow, char *transp, int *n, int *k, CBLAS_TEST_COMPLEX *alpha, CBLAS_TEST_COMPLEX *a, int *lda, CBLAS_TEST_COMPLEX *b, int *ldb, float *beta, CBLAS_TEST_COMPLEX *c, int *ldc)
void F77_csyr2k(int *layout, char *uplow, char *transp, int *n, int *k, CBLAS_TEST_COMPLEX *alpha, CBLAS_TEST_COMPLEX *a, int *lda, CBLAS_TEST_COMPLEX *b, int *ldb, CBLAS_TEST_COMPLEX *beta, CBLAS_TEST_COMPLEX *c, int *ldc)
void cblas_cher2k(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 float beta, void *C, const int ldc)
void cblas_cherk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const int N, const int K, const float alpha, const void *A, const int lda, const float beta, void *C, const int ldc)
void F77_csyrk(int *layout, char *uplow, char *transp, int *n, int *k, CBLAS_TEST_COMPLEX *alpha, CBLAS_TEST_COMPLEX *a, int *lda, CBLAS_TEST_COMPLEX *beta, CBLAS_TEST_COMPLEX *c, int *ldc)
void F77_ctrmm(int *layout, char *rtlf, char *uplow, char *transp, char *diagn, int *m, int *n, CBLAS_TEST_COMPLEX *alpha, CBLAS_TEST_COMPLEX *a, int *lda, CBLAS_TEST_COMPLEX *b, int *ldb)
void cblas_ctrsm(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_csyr2k(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_csyrk(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 cblas_chemm(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 cblas_csymm(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 F77_csymm(int *layout, char *rtlf, char *uplow, int *m, int *n, CBLAS_TEST_COMPLEX *alpha, CBLAS_TEST_COMPLEX *a, int *lda, CBLAS_TEST_COMPLEX *b, int *ldb, CBLAS_TEST_COMPLEX *beta, CBLAS_TEST_COMPLEX *c, int *ldc)
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
void F77_cherk(int *layout, char *uplow, char *transp, int *n, int *k, float *alpha, CBLAS_TEST_COMPLEX *a, int *lda, float *beta, CBLAS_TEST_COMPLEX *c, int *ldc)
void cblas_ctrmm(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)