LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ F77_csymm()

void F77_csymm ( CBLAS_INT * layout,
char * rtlf,
char * uplow,
CBLAS_INT * m,
CBLAS_INT * n,
CBLAS_TEST_COMPLEX * alpha,
CBLAS_TEST_COMPLEX * a,
CBLAS_INT * lda,
CBLAS_TEST_COMPLEX * b,
CBLAS_INT * ldb,
CBLAS_TEST_COMPLEX * beta,
CBLAS_TEST_COMPLEX * c,
CBLAS_INT * ldc )

Definition at line 243 of file c_cblas3.c.

250 {
251
252 CBLAS_TEST_COMPLEX *A, *B, *C;
253 CBLAS_INT i,j,LDA, LDB, LDC;
254 CBLAS_UPLO uplo;
255 CBLAS_SIDE side;
256
257 get_uplo_type(uplow,&uplo);
258 get_side_type(rtlf,&side);
259
260 if (*layout == TEST_ROW_MJR) {
261 if (side == CblasLeft) {
262 LDA = *m+1;
263 A=(CBLAS_TEST_COMPLEX* )malloc((*m)*LDA*sizeof(CBLAS_TEST_COMPLEX));
264 for( i=0; i<*m; i++ )
265 for( j=0; j<*m; j++ )
266 A[i*LDA+j]=a[j*(*lda)+i];
267 }
268 else{
269 LDA = *n+1;
270 A=(CBLAS_TEST_COMPLEX* )malloc((*n)*LDA*sizeof(CBLAS_TEST_COMPLEX ) );
271 for( i=0; i<*n; i++ )
272 for( j=0; j<*n; j++ )
273 A[i*LDA+j]=a[j*(*lda)+i];
274 }
275 LDB = *n+1;
276 B=(CBLAS_TEST_COMPLEX* )malloc((*m)*LDB*sizeof(CBLAS_TEST_COMPLEX ));
277 for( i=0; i<*m; i++ )
278 for( j=0; j<*n; j++ )
279 B[i*LDB+j]=b[j*(*ldb)+i];
280 LDC = *n+1;
281 C=(CBLAS_TEST_COMPLEX* )malloc((*m)*LDC*sizeof(CBLAS_TEST_COMPLEX));
282 for( j=0; j<*n; j++ )
283 for( i=0; i<*m; i++ )
284 C[i*LDC+j]=c[j*(*ldc)+i];
285 cblas_csymm( CblasRowMajor, side, uplo, *m, *n, alpha, A, LDA, B, LDB,
286 beta, C, LDC );
287 for( j=0; j<*n; j++ )
288 for( i=0; i<*m; i++ )
289 c[j*(*ldc)+i]=C[i*LDC+j];
290 free(A);
291 free(B);
292 free(C);
293 }
294 else if (*layout == TEST_COL_MJR)
295 cblas_csymm( CblasColMajor, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
296 beta, c, *ldc );
297 else
298 cblas_csymm( UNDEFINED, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
299 beta, c, *ldc );
300}
#define UNDEFINED
Definition c_cblas3.c:12
#define TEST_ROW_MJR
Definition c_cblas3.c:11
#define TEST_COL_MJR
Definition c_cblas3.c:10
CBLAS_UPLO
Definition cblas.h:41
void cblas_csymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, const CBLAS_INT M, const CBLAS_INT N, const void *alpha, const void *A, const CBLAS_INT lda, const void *B, const CBLAS_INT ldb, const void *beta, void *C, const CBLAS_INT ldc)
Definition cblas_csymm.c:12
CBLAS_SIDE
Definition cblas.h:43
@ CblasLeft
Definition cblas.h:43
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
#define CBLAS_INT
Definition cblas.h:24
void get_side_type(char *type, CBLAS_SIDE *side)
Definition auxiliary.c:32
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
Here is the call graph for this function: