axpy(3)
π NAME π
okay so this is axpy(3), straight out of the Library Functions Manual, and the name line is literally:
axpy - axpy: y = ax + y
that's the whole vibe, bestie: multiply a vector by a constant, add it to another vector, slay. π β¨
β¨ SYNOPSIS β¨
πΈ Functions
subroutine caxpy (n, ca, cx, incx, cy, incy)β CAXPYsubroutine daxpy (n, da, dx, incx, dy, incy)β DAXPYsubroutine saxpy (n, sa, sx, incx, sy, incy)β SAXPYsubroutine zaxpy (n, za, zx, incx, zy, incy)β ZAXPY
π¦ Detailed Description π¦
this heading is here, and then the page immediately gets into the function documentation. no extra lore paragraph, no side quest β just the four subroutines below. π«Ά
π Function Documentation π
π subroutine caxpy π
subroutine caxpy (integer n, complex ca, complex, dimension(*) cx, integer incx, complex, dimension(*) cy, integer incy)
CAXPY
πΈ Purpose
CAXPY does the iconic move: constant times a vector plus a vector. that's it, that's the whole purpose. β¨
π Parameters
NβN is INTEGER; number of elements in input vector(s).CAβCA is COMPLEX; on entry,CAspecifies the scalar alpha.CXβCX is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) )INCXβINCX is INTEGER; storage spacing between elements ofCX.CYβCY is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCY ) )INCYβINCY is INTEGER; storage spacing between elements ofCY.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β Further Details:
!>
!> jack dongarra, linpack, 3/11/78.
!> modified 12/3/93, array(1) declarations changed to array(*)
!>
Definition at line 87 of file caxpy.f.
π subroutine daxpy π
subroutine daxpy (integer n, double precision da, double precision, dimension(*) dx, integer incx, double precision, dimension(*) dy, integer incy)
DAXPY
πΈ Purpose
DAXPY is also constant times a vector plus a vector, and it uses unrolled loops for increments equal to one. okay, performance queen. π₯
π Parameters
NβN is INTEGER; number of elements in input vector(s).DAβDA is DOUBLE PRECISION; on entry,DAspecifies the scalar alpha.DXβDX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) )INCXβINCX is INTEGER; storage spacing between elements ofDX.DYβDY is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) )INCYβINCY is INTEGER; storage spacing between elements ofDY.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β Further Details:
!>
!> jack dongarra, linpack, 3/11/78.
!> modified 12/3/93, array(1) declarations changed to array(*)
!>
Definition at line 88 of file daxpy.f.
π subroutine saxpy π
subroutine saxpy (integer n, real sa, real, dimension(*) sx, integer incx, real, dimension(*) sy, integer incy)
SAXPY
πΈ Purpose
SAXPY is the real-scalar version of the constant-times-a-vector-plus-a-vector agenda, and it uses unrolled loops for increments equal to one. yes bestie, same energy. π
π Parameters
NβN is INTEGER; number of elements in input vector(s).SAβSA is REAL; on entry,SAspecifies the scalar alpha.SXβSX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) )INCXβINCX is INTEGER; storage spacing between elements ofSX.SYβSY is REAL array, dimension ( 1 + ( N - 1 )*abs( INCY ) )INCYβINCY is INTEGER; storage spacing between elements ofSY.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β Further Details:
!>
!> jack dongarra, linpack, 3/11/78.
!> modified 12/3/93, array(1) declarations changed to array(*)
!>
Definition at line 88 of file saxpy.f.
π subroutine zaxpy π
subroutine zaxpy (integer n, complex*16 za, complex*16, dimension(*) zx, integer incx, complex*16, dimension(*) zy, integer incy)
ZAXPY
πΈ Purpose
ZAXPY is the complex*16 edition: constant times a vector plus a vector. no extra notes, just double-complex business. π
π Parameters
NβN is INTEGER; number of elements in input vector(s).ZAβZA is COMPLEX*16; on entry,ZAspecifies the scalar alpha.ZXβZX is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) )INCXβINCX is INTEGER; storage spacing between elements ofZX.ZYβZY is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCY ) )INCYβINCY is INTEGER; storage spacing between elements ofZY.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β Further Details:
!>
!> jack dongarra, 3/11/78.
!> modified 12/3/93, array(1) declarations changed to array(*)
!>
Definition at line 87 of file zaxpy.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
source/version check, bestie: this is LAPACK, Version 3.12.0, and the footer is giving axpy(3) β no date listed, so I'm not inventing one. periodt. πβ¨π
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms