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

◆ F77_ssymm()

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

Definition at line 73 of file c_sblas3.c.

75 {
76
77 float *A, *B, *C;
78 CBLAS_INT i,j,LDA, LDB, LDC;
79 CBLAS_UPLO uplo;
80 CBLAS_SIDE side;
81
82 get_uplo_type(uplow,&uplo);
83 get_side_type(rtlf,&side);
84
85 if (*layout == TEST_ROW_MJR) {
86 if (side == CblasLeft) {
87 LDA = *m+1;
88 A = ( float* )malloc( (*m)*LDA*sizeof( float ) );
89 for( i=0; i<*m; i++ )
90 for( j=0; j<*m; j++ )
91 A[i*LDA+j]=a[j*(*lda)+i];
92 }
93 else{
94 LDA = *n+1;
95 A = ( float* )malloc( (*n)*LDA*sizeof( float ) );
96 for( i=0; i<*n; i++ )
97 for( j=0; j<*n; j++ )
98 A[i*LDA+j]=a[j*(*lda)+i];
99 }
100 LDB = *n+1;
101 B = ( float* )malloc( (*m)*LDB*sizeof( float ) );
102 for( i=0; i<*m; i++ )
103 for( j=0; j<*n; j++ )
104 B[i*LDB+j]=b[j*(*ldb)+i];
105 LDC = *n+1;
106 C = ( float* )malloc( (*m)*LDC*sizeof( float ) );
107 for( j=0; j<*n; j++ )
108 for( i=0; i<*m; i++ )
109 C[i*LDC+j]=c[j*(*ldc)+i];
110 cblas_ssymm( CblasRowMajor, side, uplo, *m, *n, *alpha, A, LDA, B, LDB,
111 *beta, C, LDC );
112 for( j=0; j<*n; j++ )
113 for( i=0; i<*m; i++ )
114 c[j*(*ldc)+i]=C[i*LDC+j];
115 free(A);
116 free(B);
117 free(C);
118 }
119 else if (*layout == TEST_COL_MJR)
120 cblas_ssymm( CblasColMajor, side, uplo, *m, *n, *alpha, a, *lda, b, *ldb,
121 *beta, c, *ldc );
122 else
123 cblas_ssymm( UNDEFINED, side, uplo, *m, *n, *alpha, a, *lda, b, *ldb,
124 *beta, c, *ldc );
125}
CBLAS_UPLO
Definition cblas.h:41
CBLAS_SIDE
Definition cblas.h:43
@ CblasLeft
Definition cblas.h:43
void cblas_ssymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, const CBLAS_INT M, const CBLAS_INT N, const float alpha, const float *A, const CBLAS_INT lda, const float *B, const CBLAS_INT ldb, const float beta, float *C, const CBLAS_INT ldc)
Definition cblas_ssymm.c:12
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
#define CBLAS_INT
Definition cblas.h:24
#define UNDEFINED
Definition cblas_test.h:19
void get_side_type(char *type, CBLAS_SIDE *side)
Definition auxiliary.c:32
#define TEST_ROW_MJR
Definition cblas_test.h:12
#define TEST_COL_MJR
Definition cblas_test.h:16
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
Here is the call graph for this function: