88 A = (
float* )malloc( (*m)*LDA*
sizeof( float ) );
91 A[i*LDA+j]=a[j*(*lda)+i];
95 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
98 A[i*LDA+j]=a[j*(*lda)+i];
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];
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,
112 for( j=0; j<*n; j++ )
113 for( i=0; i<*m; i++ )
114 c[j*(*ldc)+i]=C[i*LDC+j];
120 cblas_ssymm(
CblasColMajor, side, uplo, *m, *n, *alpha, a, *lda, b, *ldb,
123 cblas_ssymm(
UNDEFINED, side, uplo, *m, *n, *alpha, a, *lda, b, *ldb,
void get_side_type(char *type, CBLAS_SIDE *side)
void cblas_ssymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, const int M, const int N, const float alpha, const float *A, const int lda, const float *B, const int ldb, const float beta, float *C, const int ldc)
void get_uplo_type(char *type, CBLAS_UPLO *uplo)