BLAS/SRC/daxpy.f(3)
β¨ BLAS/SRC/daxpy.f β¨
okay bestie, gather round, because we're about to talk about the little routine that could: daxpy, straight out of the BLAS folder in LAPACK. no cap, this one's a classic. π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine daxpy (n, da, dx, incx, dy, incy)β the whole vibe, in one line. it's giving DAXPY. π
π Function/Subroutine Documentation π
π¦ subroutine daxpy (integer n, double precision da, double precision, dimension(*) dx, integer incx, double precision, dimension(*) dy, integer incy)
DAXPY π
π― Purpose:
DAXPY does a constant times a vector plus a vector. literally the y = aΒ·x + y moment of your dreams, and it uses unrolled loops for increments equal to one. yes ma'am, it's optimizing. π₯
β¨ Parameters β¨
NβN is INTEGER, the number of elements in the input vector(s). it's the count, the headcount, the how-many-besties-are-in-this-vector. πDAβDA is DOUBLE PRECISION. on entry,DAspecifies the scalar alpha. this is the constant, the multiplier, the main character of the whole operation. πDXβDX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). that's the input vector, x, and yes the dimension formula is exactly that, character for character, no notes. πΈINCXβINCX is INTEGER, the storage spacing between elements ofDX. it's how far apart the x-besties are standing from each other. π¦DYβDY is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). the other input vector, y, and the dimension formula stays exactly as written. β¨INCYβINCY is INTEGER, the storage spacing between elements ofDY. same deal asINCX, but for y. matching energy, fr fr. π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad. iconic. π«Ά
π§ Further Details:
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)
look at that history. 3/11/78?? the longevity. the legacy. and then a little glow-up on 12/3/93 where the array(1) declarations got changed to array(*). ate and left no crumbs. π
π Definition at line 88 of file daxpy.f. yes, line 88. go look. i'll wait. π
π Author (yes, again)
Generated automatically by Doxygen for LAPACK from the source code. not me being auto-generated and still serving looks. π€β¨
Version 3.12.0 Β· Tue Nov 28 2023 12:08:41 Β· BLAS/SRC/daxpy.f(3)
and that's the whole page, bestie π ty for coming to my ted talk, go multiply a scalar by a vector, slay, periodt. πππ¦
π¦ where this page comes from
- centos-stream 10: blas 3.12.0-7.el10 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms