BLAS/SRC/dcopy.f(3)
π BLAS/SRC/dcopy.f(3) β the LAPACK manual, but make it make sense π
okay bestie, sit down, hydrate, and let me tell you about the most lowkey iconic little subroutine in the whole BLAS lineup: dcopy. it lives in the LAPACK manual under BLAS/SRC/dcopy.f(3), and honestly? it's giving "does one thing and does it flawlessly." π¦
β¨ NAME β¨
BLAS/SRC/dcopy.f β that's the file, that's the vibe, that's the whole thing. π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine dcopy (n, dx, incx, dy, incy)
DCOPY β she's a subroutine, she takes five arguments, she does not elaborate. π
π Function/Subroutine Documentation π
subroutine dcopy (integer n, double precision, dimension(*) dx, integer
incx, double precision, dimension(*) dy, integer incy)
DCOPY π
π« Purpose π«
DCOPY copies a vector, x, to a vector, y.
and the tea? it uses unrolled loops for increments equal to 1. so when your spacing is exactly 1, she's zooming. no cap. π₯
π Parameters π
NβN is INTEGER, and she is the number of elements in the input vector(s). like, how many lil guys are we moving today, bestie.DXβDX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). this is your source vector, the one getting copied from. π«ΆINCXβINCX is INTEGER, and it's the storage spacing between elements ofDX. basically: how far apart are we hopping throughDX? πDYβDY is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). this is your destination vector, the one everything lands in. β¨INCYβINCY is INTEGER, the storage spacing between elements ofDY. same deal asINCXbut for the destination. π―
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad really showed up for this one. respect. π
π§ Further Details π§
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)
so yeah β jack dongarra, linpack, dated 3/11/78, and then a lil glow-up on 12/3/93 where the array(1) declarations got changed to array(*). a historic makeover moment, fr fr. π
π Definition π
Definition at line 81 of file dcopy.f.
β Author β
Generated automatically by Doxygen for LAPACK from the source code. (yes, even the docs have main character energy and generate themselves. we love an independent queen. π)
Version 3.12.0 Β· Tue Nov 28 2023 12:08:41 Β· BLAS/SRC/dcopy.f(3)
and that's the whole page, bestie!! π go forth, copy your vectors, respect the INCX and INCY spacing, and remember: increments equal to 1 get the unrolled-loop treatment because she's that girl. slay, periodt, mwah πβ¨π¦
π¦ 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