BLAS/SRC/dasum.f(3)
π okay bestie, BLAS time π
This is the Library Functions Manual page for BLAS/SRC/dasum.f(3), and itβs lowkey iconic because itβs all about one little double precision function doing absolute-value math. π
β¨
π NAME π
BLAS/SRC/dasum.f β thatβs the name, bestie. Itβs giving βI live in the BLAS directory and I know it.β π¦
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines πΈ
double precision function dasum (n, dx, incx)β this is theDASUMfunction, coming through with main character energy. π
π¦ Function/Subroutine Documentation π¦
Hereβs the full signature, no cap:
double precision function dasum (integer n, double precision, dimension(*)
dx, integer incx)
It is DASUM, periodt. π«
π Purpose: π
The purpose is literally this: DASUM takes the sum of the absolute values. Thatβs it, thatβs the whole vibe.
The original Fortran doc block wraps it in !> comment markers like this:
!>
!> DASUM takes the sum of the absolute values.
!>
π Parameters π
NβN is INTEGER, and itβs thenumber of elements in input vector(s). So itβs the count bestie, the amount, the βhow many are we doing here.β π’DXβDX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). That dimension expression is( 1 + ( N - 1 )*abs( INCX ) ), exactly, no edits. π«ΆINCXβINCX is INTEGER, and itβs thestorage spacing between elements of DX. So it controls the stride situation. π§
π§ Author π§
The functionβs author section lists these absolute legends:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Further Details: π
The further-details lore is exactly this, preserved in all its Fortran-comment glory:
!>
!> jack dongarra, linpack, 3/11/78.
!> modified 3/93 to return if incx .le. 0.
!> modified 12/3/93, array(1) declarations changed to array(*)
!>
Definition at line 70 of file dasum.f. π
π Author π
This page is Generated automatically by Doxygen for LAPACK from the source code. So yes, itβs auto-generated, but weβre still giving it a personality. πβ¨
π cute little sign-off: this pageβs footer energy is LAPACK, Version 3.12.0, and page BLAS/SRC/dasum.f(3). The original footer doesnβt give a date, so Iβm not inventing one β no cap. π«Άπ
π¦ 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