91 A = (
double* )malloc( (*m)*LDA*
sizeof( double ) );
94 A[i*LDA+j]=a[j*(*lda)+i];
98 A = (
double* )malloc( (*n)*LDA*
sizeof( double ) );
100 for( j=0; j<*n; j++ )
101 A[i*LDA+j]=a[j*(*lda)+i];
104 B = (
double* )malloc( (*m)*LDB*
sizeof( double ) );
105 for( i=0; i<*m; i++ )
106 for( j=0; j<*n; j++ )
107 B[i*LDB+j]=b[j*(*ldb)+i];
109 C = (
double* )malloc( (*m)*LDC*
sizeof( double ) );
110 for( j=0; j<*n; j++ )
111 for( i=0; i<*m; i++ )
112 C[i*LDC+j]=c[j*(*ldc)+i];
113 cblas_dsymm(
CblasRowMajor, side, uplo, *m, *n, *alpha, A, LDA, B, LDB,
115 for( j=0; j<*n; j++ )
116 for( i=0; i<*m; i++ )
117 c[j*(*ldc)+i]=C[i*LDC+j];
123 cblas_dsymm(
CblasColMajor, side, uplo, *m, *n, *alpha, a, *lda, b, *ldb,
126 cblas_dsymm(
UNDEFINED, side, uplo, *m, *n, *alpha, a, *lda, b, *ldb,
void get_side_type(char *type, CBLAS_SIDE *side)
void cblas_dsymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, const int M, const int N, const double alpha, const double *A, const int lda, const double *B, const int ldb, const double beta, double *C, const int ldc)
void get_uplo_type(char *type, CBLAS_UPLO *uplo)