lamrg(3)
π¦ lamrg(3) β Library Functions Manual π¦
okay bestie, welcome to the lamrg(3) page β yes, the Library Functions Manual one β and no cap, this is all about making a permutation list that merges two independently sorted sets into one ascending-sorted set. Itβs giving βtiny but important utility,β fr fr. π
πΈ NAME πΈ
lamrg β lamrg: permutation to merge 2 sorted lists
π SYNOPSIS π
β¨ Functions β¨
subroutine dlamrg (n1, n2, a, dtrd1, dtrd2, index)β DLAMRG creates a permutation list to merge the entries of two independently sorted sets into a single set sorted in ascending order.subroutine slamrg (n1, n2, a, strd1, strd2, index)β SLAMRG creates a permutation list to merge the entries of two independently sorted sets into a single set sorted in ascending order.
π¦ DETAILED DESCRIPTION π¦
The detailed description is basically βsee the function docs below,β bestie β the full tea is in Function Documentation. π«Ά
π FUNCTION DOCUMENTATION π
π dlamrg π
subroutine dlamrg (integer n1, integer n2, double precision, dimension( * )
a, integer dtrd1, integer dtrd2, integer, dimension( * ) index)
DLAMRG creates a permutation list to merge the entries of two independently sorted sets into a single set sorted in ascending order.
π Purpose π
DLAMRG 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.
π Parameters π
N1βN1 is INTEGERN2βN2 is INTEGER; these arguments contain the respective lengths of the two sorted lists to be merged.AβA is DOUBLE PRECISION array, dimension (N1+N2); the firstN1elements ofAcontain a list of numbers which are sorted in either ascending or descending order. Likewise for the finalN2elements.DTRD1βDTRD1 is INTEGERDTRD2βDTRD2 is INTEGER; these are the strides to be taken through the arrayA. Allowable strides are1and-1. They indicate whether a subset ofAis sorted in ascending (DTRDx = 1) or descending (DTRDx = -1) order.INDEXβINDEX is 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.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 98 of file dlamrg.f.
π slamrg π
subroutine slamrg (integer n1, integer n2, real, dimension( * ) a, integer
strd1, integer strd2, integer, dimension( * ) index)
SLAMRG creates a permutation list to merge the entries of two independently sorted sets into a single set sorted in ascending order.
β¨ Purpose β¨
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.
π Parameters π
N1βN1 is INTEGERN2βN2 is INTEGER; these arguments contain the respective lengths of the two sorted lists to be merged.AβA is 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.STRD1βSTRD1 is INTEGERSTRD2βSTRD2 is 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.INDEXβINDEX is 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.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 98 of file slamrg.f.
π AUTHOR π
Generated automatically by Doxygen for LAPACK from the source code.
okay thatβs the whole page, bestie! π
Source/version tea: LAPACK Version 3.12.0, and this is the lamrg(3) page. The footer doesnβt list a date, so no date to spill β just that version and the page name. Periodt. π«Άβ¨
π¦ 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