SLASRT(3)
π slasrt(3) β like, the LAPACK Library Functions Manual, bestie
okay so this is the page for slasrt.f(3), straight outta the LAPACK Library Functions Manual, and honestly? it's a whole vibe. it's a little Fortran file that sorts numbers and it does NOT need to be complicated. let's get into it π
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slasrt.f
that's the whole path, yeah, it's giving "found deep in the build directory and nobody's ever gonna type it manually". iconic honestly πΈ
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine SLASRT (id, n, d, info)
SLASRT sorts numbers in increasing or decreasing order.
literally what it says on the tin, no cap π
π₯ Function/Subroutine Documentation π₯
subroutine SLASRT (character id, integer n, real, dimension( * ) d, integer info)
SLASRT sorts numbers in increasing or decreasing order. that's the entire personality and she owns it π
π Purpose π
!>
!> Sort the numbers in D in increasing order (if ID = 'I') or
!> in decreasing order (if ID = 'D' ).
!>
!> Use Quick Sort, reverting to Insertion sort on arrays of
!> size <= 20. Dimension of STACK limits N to about 2**32.
!>
so the tea is: it uses Quick Sort, but for little arrays of size <= 20 it switches to Insertion sort because sometimes the small stuff just hits different π§ and yeah, the dimension of STACK caps N at about 2**32, so likeβ¦ don't get any big ideas π«Ά
πΈ Parameters πΈ
ID
!> ID is CHARACTER*1
!> = 'I': sort D in increasing order;
!> = 'D': sort D in decreasing order.
one whole character, that's all she needs. 'I' means sort D in increasing order, 'D' means sort D in decreasing order. pick your fighter π
N
!> N is INTEGER
!> The length of the array D.
just the length of array D. the size of the group chat, if you will β¨
D
!> D is REAL array, dimension (N)
!> On entry, the array to be sorted.
!> On exit, D has been sorted into increasing order
!> (D(1) <= ... <= D(N) ) or into decreasing order
!> (D(1) >= ... >= D(N) ), depending on ID.
a REAL array, dimension (N). on entry it's the array you wanna sort, on exit it's the sorted array β increasing order (D(1) <= ... <= D(N)) or decreasing order (D(1) >= ... >= D(N)), all depending on ID. she said "I'll be whatever you need me to be" π
INFO
!> INFO is INTEGER
!> = 0: successful exit
!> < 0: if INFO = -i, the i-th argument had an illegal value
the vibe check of return codes:
INFO = 0β successful exit, we ate πINFO < 0β ifINFO = -i, then thei-th argument had an illegal value π
fr fr though: negative INFO means you passed something bad in, so check your args before you blame the subroutine, bestie π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
an absolute supergroup, no notes π«Ά
β Definition at line 87 of file slasrt.f. β
yep, line 87, go look, she's right there β¨
π Author π
Generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this bad boy, a robot did it, and honestly? slay π€π
and that's the whole page!! written for LAPACK Version 3.12.0 and dated /home/abui...RC/slasrt.f(3) β mwah, go sort something cute ππ
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms