SLASSQ(3)
π SLASSQ(3) β Library Functions Manual π
Ok bestie, welcome to SLASSQ(3) from the Library Functions Manual. It's a Fortran subroutine situation, and the whole vibe is updating a sum of squares represented in scaled form. Let's get into it. β¨
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slassq.f90
Yes, the NAME section is literally a path β that's what the page says, no cap. π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine SLASSQ (n, x, incx, scale, sumsq)βSLASSQupdates a sum of squares represented in scaled form.
β¨ Function/Subroutine Documentation β¨
π subroutine SLASSQ (integer n, real(wp), dimension(*) x, integer incx, real(wp) scale, real(wp) sumsq) π
SLASSQ updates a sum of squares represented in scaled form. π«Ά
π Purpose π
SLASSQ returns the values scale_out and sumsq_out such that:
(scale_out**2)*sumsq_out = x( 1 )**2 +...+ x( n )**2 + (scale**2)*sumsq,
where
x( i ) = X( 1 + ( i - 1 )*INCX ).
The value of sumsq is assumed to be non-negative. π¨
scale and sumsq must be supplied in SCALE and SUMSQ, and scale_out and sumsq_out are overwritten on SCALE and SUMSQ respectively. That's the whole contract, periodt.
π Parameters π
NβNis INTEGER. The number of elements to be used from the vectorx.XβXis REAL array, dimension(1+(N-1)*abs(INCX)). The vector for which a scaled sum of squares is computed:
x( i ) = X( 1 + ( i - 1 )*INCX ), 1 <= i <= n.
INCXβINCXis INTEGER. The increment between successive values of the vectorx. Here's the tea:
If INCX > 0, X(1+(i-1)*INCX) = x(i) for 1 <= i <= n
If INCX < 0, X(1-(n-i)*INCX) = x(i) for 1 <= i <= n
If INCX = 0, x isn't a vector so there is no need to call
this subroutine. If you call it anyway, it will count x(1)
in the vector norm N times.
SCALEβSCALEis REAL. On entry, the valuescalein the equation above. On exit,SCALEis overwritten byscale_out, the scaling factor for the sum of squares.SUMSQβSUMSQis REAL. On entry, the valuesumsqin the equation above. On exit,SUMSQis overwritten bysumsq_out, the basic sum of squares from whichscale_outhas been factored out.
π Author π
Edward Anderson, Lockheed Martin.
π«Ά Contributors π«Ά
- Weslley Pereira, University of Colorado Denver, USA
- Nick Papior, Technical University of Denmark, DK
π Further Details π
- Anderson E. (2017) Algorithm 978: Safe Scaling in the Level 1 BLAS ACM Trans Math Softw 44:1--28
https://doi.org/10.1145/3061665 - Blue, James L. (1978) A Portable Fortran Program to Find the Euclidean Norm of a Vector ACM Trans Math Softw 4:15--23
https://doi.org/10.1145/355769.355771
Definition at line 123 of file slassq.f90.
ποΈ Author ποΈ
Generated automatically by Doxygen for LAPACK from the source code.
Sign-off, bestie: this footer is LAPACK, Version 3.12.0, from /home/abui.../slassq.f90(3). No date line here, so no invented date β just that exact footer energy. π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms