1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
SUBROUTINE SVVDOT( N, DOT, X, INCX, Y, INCY )
*
* -- PBLAS auxiliary routine (version 2.0) --
* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
* and University of California, Berkeley.
* April 1, 1998
*
* .. Scalar Arguments ..
INTEGER INCX, INCY, N
REAL DOT
* ..
* .. Array Arguments ..
REAL X( * ), Y( * )
* ..
*
* Purpose
* =======
*
* SVVDOT computes the following dot product:
*
* dot = dot + x**T * y,
*
* where x and y are n vectors.
*
* Arguments
* =========
*
* N (input) INTEGER
* On entry, N specifies the length of the vectors x and y. N
* must be at least zero.
*
* DOT (input/output) REAL
* On exit, DOT is updated with the dot product of the vectors x
* and y.
*
* X (input) REAL array of dimension at least
* ( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented
* array X must contain the vector x.
*
* INCX (input) INTEGER
* On entry, INCX specifies the increment for the elements of X.
* INCX must not be zero.
*
* Y (input) REAL array of dimension at least
* ( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented
* array Y must contain the vector y.
*
* INCY (input) INTEGER
* On entry, INCY specifies the increment for the elements of Y.
* INCY must not be zero.
*
* -- Written on April 1, 1998 by
* Antoine Petitet, University of Tennessee, Knoxville 37996, USA.
*
* =====================================================================
*
* .. External Functions ..
REAL SDOT
EXTERNAL SDOT
* ..
* .. Executable Statements ..
*
DOT = DOT + SDOT( N, X, INCX, Y, INCY )
*
RETURN
*
* End of SVVDOT
*
END
|