157 {
158
163
166
169 LDA = *m+1;
171 for( i=0; i<*m; i++ )
172 for( j=0; j<*m; j++ )
173 A[i*LDA+j]=a[j*(*lda)+i];
174 }
175 else{
176 LDA = *n+1;
178 for( i=0; i<*n; i++ )
179 for( j=0; j<*n; j++ )
180 A[i*LDA+j]=a[j*(*lda)+i];
181 }
182 LDB = *n+1;
184 for( i=0; i<*m; i++ )
185 for( j=0; j<*n; j++ )
186 B[i*LDB+j]=b[j*(*ldb)+i];
187 LDC = *n+1;
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,
193 beta, C, LDC );
194 for( j=0; j<*n; j++ )
195 for( i=0; i<*m; i++ )
196 c[j*(*ldc)+i]=C[i*LDC+j];
197 free(A);
198 free(B);
199 free(C);
200 }
202 cblas_zsymm(
CblasColMajor, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
203 beta, c, *ldc );
204 else
205 cblas_zsymm(
UNDEFINED, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
206 beta, c, *ldc );
207}
void cblas_zsymm(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)
void get_side_type(char *type, CBLAS_SIDE *side)
void get_uplo_type(char *type, CBLAS_UPLO *uplo)