184 {
185
190
193
196 LDA = *m+1;
198 for( i=0; i<*m; i++ )
199 for( j=0; j<*m; j++ ) {
202 }
203 }
204 else{
205 LDA = *n+1;
207 for( i=0; i<*n; i++ )
208 for( j=0; j<*n; j++ ) {
211 }
212 }
213 LDB = *n+1;
215 for( i=0; i<*m; i++ )
216 for( j=0; j<*n; j++ ) {
219 }
220 LDC = *n+1;
222 for( j=0; j<*n; j++ )
223 for( i=0; i<*m; i++ ) {
226 }
227 cblas_zhemm(
CblasRowMajor, side, uplo, *m, *n, alpha, A, LDA, B, LDB,
228 beta, C, LDC );
229 for( j=0; j<*n; j++ )
230 for( i=0; i<*m; i++ ) {
233 }
234 free(A);
235 free(B);
236 free(C);
237 }
239 cblas_zhemm(
CblasColMajor, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
240 beta, c, *ldc );
241 else
242 cblas_zhemm(
UNDEFINED, side, uplo, *m, *n, alpha, a, *lda, b, *ldb,
243 beta, c, *ldc );
244}
void cblas_zhemm(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)