SLASSQ(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’… 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) β€” SLASSQ updates 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 β€” N is INTEGER. The number of elements to be used from the vector x.
  • X β€” X is 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 β€” INCX is INTEGER. The increment between successive values of the vector x. 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 β€” SCALE is REAL. On entry, the value scale in the equation above. On exit, SCALE is overwritten by scale_out, the scaling factor for the sum of squares.
  • SUMSQ β€” SUMSQ is REAL. On entry, the value sumsq in the equation above. On exit, SUMSQ is overwritten by sumsq_out, the basic sum of squares from which scale_out has 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 πŸ“š

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