SLAMRG(3)
π¦ SLAMRG(3) β the slamrg.f moment π
ok so bestie, before we even start: this page lives in the Library Functions Manual, and the file it's documenting is literally this path right here:
/home/abui...RC/slamrg.f(3)
(and yeah, the full path shows up in the NAME section below, no cap β it's a whole journey)
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slamrg.f
that's it. that's the name. the whole entire path. she's long, she's dramatic, she's iconic β¨
πΈ SYNOPSIS πΈ
Functions/Subroutines β yes queen, we're in the subroutines folder
subroutine SLAMRG (n1, n2, a, strd1, strd2, index)
so what does she do? SLAMRG creates a permutation list to merge the entries of two independently sorted sets into a single set sorted in ascending order. that's the whole vibe. merging but make it indexed π
π₯ Function/Subroutine Documentation π₯
here's the full signature, bestie, character for character:
subroutine SLAMRG (integer n1, integer n2, real, dimension( * ) a, integer
strd1, integer strd2, integer, dimension( * ) index)
and the one-liner again (she said it twice, she's confident):
SLAMRG creates a permutation list to merge the entries of two independently sorted sets into a single set sorted in ascending order.
β¨ Purpose β¨
ok so picture this: SLAMRG will create a permutation list which will merge the elements of A (which is composed of two independently sorted sets) into a single set which is sorted in ascending order. two sorted friend groups, one merged ascending-order party. main character energy fr fr π«Ά
(originally written in one of those !> Doxygen comment blocks, if you were wondering what the little arrows were about π)
π Parameters π
N1βN1is INTEGER.N2βN2is INTEGER. together, these two arguments contain the respective lengths of the two sorted lists to be merged. they're a duo, they don't do anything alone πAβAis REAL array, dimension(N1+N2). the firstN1elements ofAcontain a list of numbers which are sorted in either ascending or descending order. likewise for the finalN2elements. so like, two chunks, each one sorted, could be either direction β she's flexible like that πSTRD1βSTRD1is INTEGER.STRD2βSTRD2is INTEGER. these are the strides to be taken through the arrayA. allowable strides are1and-1. they indicate whether a subset ofAis sorted in ascending (STRDx=1) or descending (STRDx=-1) order. so1= ascending,-1= descending, and those are the only allowable values, okay? don't get creative πINDEXβINDEXis INTEGER array, dimension(N1+N2). on exit this array will contain a permutation such that ifB( I ) = A( INDEX( I ) )forI=1,N1+N2, thenBwill be sorted in ascending order. she literally hands you the sorted result via an index. the way that works? obsessed β¨
π§ Author π§
the whole squad gets credit, bestie:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β Definition β
definition at line 98 of file slamrg.f. line ninety-eight. go look, she's there π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. so like, no human typed this page out by hand, a robot did it, and honestly? slay π€π
heads up bestie: this whole page was auto-generated, so if something looks weird, blame the robot, not me π«Ά
aaand that's the page!! made with LAPACK Version 3.12.0, dated with that same dramatic /home/abui...RC/slamrg.f(3) energy at the bottom β bye bestie, go merge those sorted lists πβ¨π
π¦ 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