1SGER(1)                          BLAS routine                          SGER(1)
2
3
4

NAME

6       SGER - performs the rank 1 operation   A := alpha*x*y' + A,
7

SYNOPSIS

9       SUBROUTINE SGER(M,N,ALPHA,X,INCX,Y,INCY,A,LDA)
10
11           REAL                                       ALPHA
12
13           INTEGER                                    INCX,INCY,LDA,M,N
14
15           REAL                                       A(LDA,*),X(*),Y(*)
16

PURPOSE

18       SGER   performs the rank 1 operation
19
20       where  alpha  is  a scalar, x is an m element vector, y is an n element
21       vector and A is an m by n matrix.
22
23

ARGUMENTS

25       M      - INTEGER.
26              On entry, M specifies the number of rows of  the  matrix  A.   M
27              must be at least zero.  Unchanged on exit.
28
29       N      - INTEGER.
30              On  entry, N specifies the number of columns of the matrix A.  N
31              must be at least zero.  Unchanged on exit.
32
33       ALPHA  - REAL            .
34              On entry, ALPHA specifies the scalar alpha.  Unchanged on exit.
35
36       X      - REAL             array of dimension at least
37              ( 1 + ( m - 1 )*abs( INCX ) ).  Before  entry,  the  incremented
38              array X must contain the m element vector x.  Unchanged on exit.
39
40       INCX   - INTEGER.
41              On  entry,  INCX  specifies the increment for the elements of X.
42              INCX must not be zero.  Unchanged on exit.
43
44       Y      - REAL             array of dimension at least
45              ( 1 + ( n - 1 )*abs( INCY ) ).  Before  entry,  the  incremented
46              array Y must contain the n element vector y.  Unchanged on exit.
47
48       INCY   - INTEGER.
49              On  entry,  INCY  specifies the increment for the elements of Y.
50              INCY must not be zero.  Unchanged on exit.
51
52       A      - REAL             array of DIMENSION ( LDA, n ).
53              Before entry, the leading m by n part of the array A  must  con‐
54              tain  the  matrix  of coefficients. On exit, A is overwritten by
55              the updated matrix.
56
57       LDA    - INTEGER.
58              On entry, LDA specifies the first dimension of A as declared  in
59              the  calling  (sub)  program.  LDA must be at least max( 1, m ).
60              Unchanged on exit.
61

FURTHER DETAILS

63       Level 2 Blas routine.
64
65       -- Written on 22-October-1986.
66          Jack Dongarra, Argonne National Lab.
67          Jeremy Du Croz, Nag Central Office.
68          Sven Hammarling, Nag Central Office.
69          Richard Hanson, Sandia National Labs.
70
71
72
73
74BLAS routine                     November 2008                         SGER(1)
Impressum