table of contents
other versions
- jessie-backports 3.7.0-1~bpo8+1
- stretch 3.7.0-2
- testing 3.8.0-1
- unstable 3.8.0-1
real(3) | LAPACK | real(3) |
NAME¶
real -Functions¶
real function sasum (N, SX, INCX)
Detailed Description¶
This is the group of real LEVEL 1 BLAS routines.Function Documentation¶
real function sasum (integerN, real, dimension(*)SX, integerINCX)¶
SASUM Purpose:SASUM takes the sum of the absolute values. uses unrolled loops for increment equal to one.
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
jack dongarra, linpack, 3/11/78. modified 3/93 to return if incx .le. 0. modified 12/3/93, array(1) declarations changed to array(*)
subroutine saxpy (integerN, realSA, real, dimension(*)SX, integerINCX, real, dimension(*)SY, integerINCY)¶
SAXPY Purpose:SAXPY constant times a vector plus a vector. uses unrolled loops for increments equal to one.
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
jack dongarra, linpack, 3/11/78. modified 12/3/93, array(1) declarations changed to array(*)
real function scabs1 (complexZ)¶
SCABS1 Purpose:SCABS1 computes |Re(.)| + |Im(.)| of a complex number
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
real function scasum (integerN, complex, dimension(*)CX, integerINCX)¶
SCASUM Purpose:SCASUM takes the sum of the (|Re(.)| + |Im(.)|)'s of a complex vector and returns a single precision result.
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
jack dongarra, linpack, 3/11/78. modified 3/93 to return if incx .le. 0. modified 12/3/93, array(1) declarations changed to array(*)
real function scnrm2 (integerN, complex, dimension(*)X, integerINCX)¶
SCNRM2 Purpose:SCNRM2 returns the euclidean norm of a vector via the function name, so that SCNRM2 := sqrt( x**H*x )
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
-- This version written on 25-October-1982. Modified on 14-October-1993 to inline the call to CLASSQ. Sven Hammarling, Nag Ltd.
subroutine scopy (integerN, real, dimension(*)SX, integerINCX, real, dimension(*)SY, integerINCY)¶
SCOPY Purpose:SCOPY copies a vector, x, to a vector, y. uses unrolled loops for increments equal to 1.
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
jack dongarra, linpack, 3/11/78. modified 12/3/93, array(1) declarations changed to array(*)
real function sdot (integerN, real, dimension(*)SX, integerINCX, real, dimension(*)SY, integerINCY)¶
SDOT Purpose:SDOT forms the dot product of two vectors. uses unrolled loops for increments equal to one.
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
jack dongarra, linpack, 3/11/78. modified 12/3/93, array(1) declarations changed to array(*)
real function sdsdot (integerN, realSB, real, dimension(*)SX, integerINCX, real, dimension(*)SY, integerINCY)¶
SDSDOT Purpose:Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
real function snrm2 (integerN, real, dimension(*)X, integerINCX)¶
SNRM2 Purpose:SNRM2 returns the euclidean norm of a vector via the function name, so that SNRM2 := sqrt( x'*x ).
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
-- This version written on 25-October-1982. Modified on 14-October-1993 to inline the call to SLASSQ. Sven Hammarling, Nag Ltd.
subroutine srot (integerN, real, dimension(*)SX, integerINCX, real, dimension(*)SY, integerINCY, realC, realS)¶
SROT Purpose:applies a plane rotation.
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
jack dongarra, linpack, 3/11/78. modified 12/3/93, array(1) declarations changed to array(*)
subroutine srotg (realSA, realSB, realC, realS)¶
SROTG Purpose:SROTG construct givens plane rotation.
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
jack dongarra, linpack, 3/11/78.
subroutine srotm (integerN, real, dimension(*)SX, integerINCX, real, dimension(*)SY, integerINCY, real, dimension(5)SPARAM)¶
SROTM Purpose:APPLY THE MODIFIED GIVENS TRANSFORMATION, H, TO THE 2 BY N MATRIX (SX**T) , WHERE **T INDICATES TRANSPOSE. THE ELEMENTS OF SX ARE IN (SX**T) SX(LX+I*INCX), I = 0 TO N-1, WHERE LX = 1 IF INCX .GE. 0, ELSE LX = (-INCX)*N, AND SIMILARLY FOR SY USING USING LY AND INCY. WITH SPARAM(1)=SFLAG, H HAS ONE OF THE FOLLOWING FORMS.. SFLAG=-1.E0 SFLAG=0.E0 SFLAG=1.E0 SFLAG=-2.E0 (SH11 SH12) (1.E0 SH12) (SH11 1.E0) (1.E0 0.E0) H=( ) ( ) ( ) ( ) (SH21 SH22), (SH21 1.E0), (-1.E0 SH22), (0.E0 1.E0). SEE SROTMG FOR A DESCRIPTION OF DATA STORAGE IN SPARAM.
N
Author:
N is INTEGER number of elements in input vector(s)SX
SX is REAL array, dimension N double precision vector with N elementsINCX
INCX is INTEGER storage spacing between elements of SXSY
SY is REAL array, dimension N double precision vector with N elementsINCY
INCY is INTEGER storage spacing between elements of SYSPARAM
SPARAM is REAL array, dimension 5 SPARAM(1)=SFLAG SPARAM(2)=SH11 SPARAM(3)=SH21 SPARAM(4)=SH12 SPARAM(5)=SH22
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
subroutine srotmg (realSD1, realSD2, realSX1, realSY1, real, dimension(5)SPARAM)¶
SROTMG Purpose:CONSTRUCT THE MODIFIED GIVENS TRANSFORMATION MATRIX H WHICH ZEROS THE SECOND COMPONENT OF THE 2-VECTOR (SQRT(SD1)*SX1,SQRT(SD2)*> SY2)**T. WITH SPARAM(1)=SFLAG, H HAS ONE OF THE FOLLOWING FORMS.. SFLAG=-1.E0 SFLAG=0.E0 SFLAG=1.E0 SFLAG=-2.E0 (SH11 SH12) (1.E0 SH12) (SH11 1.E0) (1.E0 0.E0) H=( ) ( ) ( ) ( ) (SH21 SH22), (SH21 1.E0), (-1.E0 SH22), (0.E0 1.E0). LOCATIONS 2-4 OF SPARAM CONTAIN SH11,SH21,SH12, AND SH22 RESPECTIVELY. (VALUES OF 1.E0, -1.E0, OR 0.E0 IMPLIED BY THE VALUE OF SPARAM(1) ARE NOT STORED IN SPARAM.) THE VALUES OF GAMSQ AND RGAMSQ SET IN THE DATA STATEMENT MAY BE INEXACT. THIS IS OK AS THEY ARE ONLY USED FOR TESTING THE SIZE OF SD1 AND SD2. ALL ACTUAL SCALING OF DATA IS DONE USING GAM.
SD1
Author:
SD1 is REALSD2
SD2 is REALSX1
SX1 is REALSY1
SY1 is REALSPARAM
SPARAM is REAL array, dimension 5 SPARAM(1)=SFLAG SPARAM(2)=SH11 SPARAM(3)=SH21 SPARAM(4)=SH12 SPARAM(5)=SH22
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
subroutine sscal (integerN, realSA, real, dimension(*)SX, integerINCX)¶
SSCAL Purpose:scales a vector by a constant. uses unrolled loops for increment equal to 1.
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
jack dongarra, linpack, 3/11/78. modified 3/93 to return if incx .le. 0. modified 12/3/93, array(1) declarations changed to array(*)
subroutine sswap (integerN, real, dimension(*)SX, integerINCX, real, dimension(*)SY, integerINCY)¶
SSWAP Purpose:interchanges two vectors. uses unrolled loops for increments equal to 1.
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
December 2016
Further Details:
jack dongarra, linpack, 3/11/78. modified 12/3/93, array(1) declarations changed to array(*)
Author¶
Generated automatically by Doxygen for LAPACK from the source code.Wed Mar 8 2017 | Version 3.7.0 |