LAPACK 3.12.0
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ F77_sger()

void F77_sger ( CBLAS_INT layout,
CBLAS_INT m,
CBLAS_INT n,
float *  alpha,
float *  x,
CBLAS_INT incx,
float *  y,
CBLAS_INT incy,
float *  a,
CBLAS_INT lda 
)

Definition at line 38 of file c_sblas2.c.

39 {
40
41 float *A;
42 CBLAS_INT i,j,LDA;
43
44 if (*layout == TEST_ROW_MJR) {
45 LDA = *n+1;
46 A = ( float* )malloc( (*m)*LDA*sizeof( float ) );
47
48 for( i=0; i<*m; i++ ) {
49 for( j=0; j<*n; j++ )
50 A[ LDA*i+j ]=a[ (*lda)*j+i ];
51 }
52
53 cblas_sger(CblasRowMajor, *m, *n, *alpha, x, *incx, y, *incy, A, LDA );
54 for( i=0; i<*m; i++ )
55 for( j=0; j<*n; j++ )
56 a[ (*lda)*j+i ]=A[ LDA*i+j ];
57 free(A);
58 }
59 else
60 cblas_sger( CblasColMajor, *m, *n, *alpha, x, *incx, y, *incy, a, *lda );
61}
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
void cblas_sger(CBLAS_LAYOUT layout, const CBLAS_INT M, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT incX, const float *Y, const CBLAS_INT incY, float *A, const CBLAS_INT lda)
Definition cblas_sger.c:12
#define CBLAS_INT
Definition cblas.h:24
#define TEST_ROW_MJR
Definition cblas_test.h:12
Here is the call graph for this function: