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

◆ F77_strmm()

void F77_strmm ( CBLAS_INT * layout,
char * rtlf,
char * uplow,
char * transp,
char * diagn,
CBLAS_INT * m,
CBLAS_INT * n,
float * alpha,
float * a,
CBLAS_INT * lda,
float * b,
CBLAS_INT * ldb )

Definition at line 322 of file c_sblas3.c.

328 {
329 CBLAS_INT i,j,LDA,LDB;
330 float *A, *B;
331 CBLAS_SIDE side;
332 CBLAS_DIAG diag;
333 CBLAS_UPLO uplo;
334 CBLAS_TRANSPOSE trans;
335
336 get_uplo_type(uplow,&uplo);
337 get_transpose_type(transp,&trans);
338 get_diag_type(diagn,&diag);
339 get_side_type(rtlf,&side);
340
341 if (*layout == TEST_ROW_MJR) {
342 if (side == CblasLeft) {
343 LDA = *m+1;
344 A = ( float* )malloc( (*m)*LDA*sizeof( float ) );
345 for( i=0; i<*m; i++ )
346 for( j=0; j<*m; j++ )
347 A[i*LDA+j]=a[j*(*lda)+i];
348 }
349 else{
350 LDA = *n+1;
351 A = ( float* )malloc( (*n)*LDA*sizeof( float ) );
352 for( i=0; i<*n; i++ )
353 for( j=0; j<*n; j++ )
354 A[i*LDA+j]=a[j*(*lda)+i];
355 }
356 LDB = *n+1;
357 B = ( float* )malloc( (*m)*LDB*sizeof( float ) );
358 for( i=0; i<*m; i++ )
359 for( j=0; j<*n; j++ )
360 B[i*LDB+j]=b[j*(*ldb)+i];
361 cblas_strmm(CblasRowMajor, side, uplo, trans, diag, *m, *n, *alpha,
362 A, LDA, B, LDB );
363 for( j=0; j<*n; j++ )
364 for( i=0; i<*m; i++ )
365 b[j*(*ldb)+i]=B[i*LDB+j];
366 free(A);
367 free(B);
368 }
369 else if (*layout == TEST_COL_MJR)
370 cblas_strmm(CblasColMajor, side, uplo, trans, diag, *m, *n, *alpha,
371 a, *lda, b, *ldb);
372 else
373 cblas_strmm(UNDEFINED, side, uplo, trans, diag, *m, *n, *alpha,
374 a, *lda, b, *ldb);
375}
CBLAS_UPLO
Definition cblas.h:41
CBLAS_TRANSPOSE
Definition cblas.h:40
CBLAS_SIDE
Definition cblas.h:43
@ CblasLeft
Definition cblas.h:43
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
void cblas_strmm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT M, const CBLAS_INT N, const float alpha, const float *A, const CBLAS_INT lda, float *B, const CBLAS_INT ldb)
Definition cblas_strmm.c:12
CBLAS_DIAG
Definition cblas.h:42
#define CBLAS_INT
Definition cblas.h:24
#define UNDEFINED
Definition cblas_test.h:28
void get_diag_type(char *type, CBLAS_DIAG *diag)
Definition auxiliary.c:25
void get_side_type(char *type, CBLAS_SIDE *side)
Definition auxiliary.c:32
#define TEST_ROW_MJR
Definition cblas_test.h:21
#define TEST_COL_MJR
Definition cblas_test.h:25
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
Definition auxiliary.c:8
Here is the call graph for this function: