30 A = (
float *)malloc( (*m)*LDA*
sizeof( float ) );
33 A[i*LDA+j]=a[j*(*lda)+i];
37 A = (
float* )malloc( LDA*(*k)*
sizeof( float ) );
40 A[i*LDA+j]=a[j*(*lda)+i];
44 B = (
float* )malloc( (*k)*LDB*
sizeof( float ) );
47 B[i*LDB+j]=b[j*(*ldb)+i];
51 B = (
float* )malloc( LDB*(*n)*
sizeof( float ) );
54 B[i*LDB+j]=b[j*(*ldb)+i];
57 C = (
float* )malloc( (*m)*LDC*
sizeof( float ) );
60 C[i*LDC+j]=c[j*(*ldc)+i];
62 B, LDB, *beta, C, LDC );
65 c[j*(*ldc)+i]=C[i*LDC+j];
72 b, *ldb, *beta, c, *ldc );
75 b, *ldb, *beta, c, *ldc );
95 A=(
float*)malloc((*n)*LDA*
sizeof(float));
97 for( j=0; j<*k; j++ ) {
98 A[i*LDA+j]=a[j*(*lda)+i];
103 A=(
float* )malloc(LDA*(*k)*
sizeof(float));
104 for( i=0; i<*k; i++ )
105 for( j=0; j<*n; j++ ) {
106 A[i*LDA+j]=a[j*(*lda)+i];
112 B=(
float* )malloc((*k)*LDB*
sizeof(float) );
113 for( i=0; i<*k; i++ )
114 for( j=0; j<*n; j++ ) {
115 B[i*LDB+j]=b[j*(*ldb)+i];
120 B=(
float* )malloc(LDB*(*n)*
sizeof(float));
121 for( i=0; i<*n; i++ )
122 for( j=0; j<*k; j++ ) {
123 B[i*LDB+j]=b[j*(*ldb)+i];
128 C=(
float* )malloc((*n)*LDC*
sizeof(float));
129 for( j=0; j<*n; j++ )
130 for( i=0; i<*n; i++ ) {
131 C[i*LDC+j]=c[j*(*ldc)+i];
134 B, LDB, *beta, C, LDC );
135 for( j=0; j<*n; j++ )
136 for( i=0; i<*n; i++ ) {
137 c[j*(*ldc)+i]=C[i*LDC+j];
145 b, *ldb, *beta, c, *ldc );
148 b, *ldb, *beta, c, *ldc );
172 A = (
float* )malloc( (*m)*LDA*
sizeof( float ) );
173 for( i=0; i<*m; i++ )
174 for( j=0; j<*m; j++ )
175 A[i*LDA+j]=a[j*(*lda)+i];
179 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
180 for( i=0; i<*n; i++ )
181 for( j=0; j<*n; j++ )
182 A[i*LDA+j]=a[j*(*lda)+i];
185 B = (
float* )malloc( (*m)*LDB*
sizeof( float ) );
186 for( i=0; i<*m; i++ )
187 for( j=0; j<*n; j++ )
188 B[i*LDB+j]=b[j*(*ldb)+i];
190 C = (
float* )malloc( (*m)*LDC*
sizeof( float ) );
191 for( j=0; j<*n; j++ )
192 for( i=0; i<*m; i++ )
193 C[i*LDC+j]=c[j*(*ldc)+i];
194 cblas_ssymm(
CblasRowMajor, side, uplo, *m, *n, *alpha, A, LDA, B, LDB,
196 for( j=0; j<*n; j++ )
197 for( i=0; i<*m; i++ )
198 c[j*(*ldc)+i]=C[i*LDC+j];
204 cblas_ssymm(
CblasColMajor, side, uplo, *m, *n, *alpha, a, *lda, b, *ldb,
207 cblas_ssymm(
UNDEFINED, side, uplo, *m, *n, *alpha, a, *lda, b, *ldb,
230 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
231 for( i=0; i<*n; i++ )
232 for( j=0; j<*k; j++ )
233 A[i*LDA+j]=a[j*(*lda)+i];
237 A = (
float* )malloc( (*k)*LDA*
sizeof( float ) );
238 for( i=0; i<*k; i++ )
239 for( j=0; j<*n; j++ )
240 A[i*LDA+j]=a[j*(*lda)+i];
243 C = (
float* )malloc( (*n)*LDC*
sizeof( float ) );
244 for( i=0; i<*n; i++ )
245 for( j=0; j<*n; j++ )
246 C[i*LDC+j]=c[j*(*ldc)+i];
249 for( j=0; j<*n; j++ )
250 for( i=0; i<*n; i++ )
251 c[j*(*ldc)+i]=C[i*LDC+j];
282 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
283 B = (
float* )malloc( (*n)*LDB*
sizeof( float ) );
284 for( i=0; i<*n; i++ )
285 for( j=0; j<*k; j++ ) {
286 A[i*LDA+j]=a[j*(*lda)+i];
287 B[i*LDB+j]=b[j*(*ldb)+i];
293 A = (
float* )malloc( LDA*(*k)*
sizeof( float ) );
294 B = (
float* )malloc( LDB*(*k)*
sizeof( float ) );
295 for( i=0; i<*k; i++ )
296 for( j=0; j<*n; j++ ){
297 A[i*LDA+j]=a[j*(*lda)+i];
298 B[i*LDB+j]=b[j*(*ldb)+i];
302 C = (
float* )malloc( (*n)*LDC*
sizeof( float ) );
303 for( i=0; i<*n; i++ )
304 for( j=0; j<*n; j++ )
305 C[i*LDC+j]=c[j*(*ldc)+i];
307 B, LDB, *beta, C, LDC );
308 for( j=0; j<*n; j++ )
309 for( i=0; i<*n; i++ )
310 c[j*(*ldc)+i]=C[i*LDC+j];
317 b, *ldb, *beta, c, *ldc );
320 b, *ldb, *beta, c, *ldc );
344 A = (
float* )malloc( (*m)*LDA*
sizeof( float ) );
345 for( i=0; i<*m; i++ )
346 for( j=0; j<*m; j++ )
347 A[i*LDA+j]=a[j*(*lda)+i];
351 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
352 for( i=0; i<*n; i++ )
353 for( j=0; j<*n; j++ )
354 A[i*LDA+j]=a[j*(*lda)+i];
357 B = (
float* )malloc( (*m)*LDB*
sizeof( float ) );
358 for( i=0; i<*m; i++ )
359 for( j=0; j<*n; j++ )
360 B[i*LDB+j]=b[j*(*ldb)+i];
363 for( j=0; j<*n; j++ )
364 for( i=0; i<*m; i++ )
365 b[j*(*ldb)+i]=B[i*LDB+j];
399 A = (
float* )malloc( (*m)*LDA*
sizeof( float ) );
400 for( i=0; i<*m; i++ )
401 for( j=0; j<*m; j++ )
402 A[i*LDA+j]=a[j*(*lda)+i];
406 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
407 for( i=0; i<*n; i++ )
408 for( j=0; j<*n; j++ )
409 A[i*LDA+j]=a[j*(*lda)+i];
412 B = (
float* )malloc( (*m)*LDB*
sizeof( float ) );
413 for( i=0; i<*m; i++ )
414 for( j=0; j<*n; j++ )
415 B[i*LDB+j]=b[j*(*ldb)+i];
418 for( j=0; j<*n; j++ )
419 for( i=0; i<*m; i++ )
420 b[j*(*ldb)+i]=B[i*LDB+j];
void cblas_ssyrk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const CBLAS_INT N, const CBLAS_INT K, const float alpha, const float *A, const CBLAS_INT lda, const float beta, float *C, const CBLAS_INT ldc)
void cblas_sgemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, const CBLAS_INT M, const CBLAS_INT N, const CBLAS_INT K, 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)
void cblas_strsm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT M, const CBLAS_INT N, const float alpha, const float *A, const CBLAS_INT lda, float *B, const CBLAS_INT ldb)
void cblas_sgemmtr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, const CBLAS_INT N, const CBLAS_INT K, 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)
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)
void cblas_strmm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT M, const CBLAS_INT N, const float alpha, const float *A, const CBLAS_INT lda, float *B, const CBLAS_INT ldb)
void cblas_ssyr2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const CBLAS_INT N, const CBLAS_INT K, 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)
#define BLAS_FORTRAN_STRLEN_END
void get_diag_type(char *type, CBLAS_DIAG *diag)
void get_side_type(char *type, CBLAS_SIDE *side)
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)