35 #ifndef TEMPLATE_BLAS_GER_HEADER 36 #define TEMPLATE_BLAS_GER_HEADER 41 const Treal *x,
const integer *incx,
const Treal *y,
const integer *incy,
45 integer a_dim1, a_offset, i__1, i__2;
50 #define a_ref(a_1,a_2) a[(a_2)*a_dim1 + a_1] 108 a_offset = 1 + a_dim1 * 1;
116 }
else if (*incx == 0) {
118 }
else if (*incy == 0) {
128 if (*m == 0 || *n == 0 || *alpha == 0.) {
136 jy = 1 - (*n - 1) * *incy;
140 for (j = 1; j <= i__1; ++j) {
142 temp = *alpha * y[jy];
144 for (i__ = 1; i__ <= i__2; ++i__) {
145 a_ref(i__, j) =
a_ref(i__, j) + x[i__] * temp;
156 kx = 1 - (*m - 1) * *incx;
159 for (j = 1; j <= i__1; ++j) {
161 temp = *alpha * y[jy];
164 for (i__ = 1; i__ <= i__2; ++i__) {
int integer
Definition: template_blas_common.h:38
#define maxMACRO(a, b)
Definition: template_blas_common.h:43
int template_blas_ger(const integer *m, const integer *n, const Treal *alpha, const Treal *x, const integer *incx, const Treal *y, const integer *incy, Treal *a, const integer *lda)
Definition: template_blas_ger.h:40
int template_blas_erbla(const char *srname, integer *info)
Definition: template_blas_common.cc:144