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 INTEGER
  • N2 β€” 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 first N1 elements of A contain a list of numbers which are sorted in either ascending or descending order. Likewise for the final N2 elements.
  • DTRD1 β€” DTRD1 is INTEGER
  • DTRD2 β€” DTRD2 is INTEGER; these are the strides to be taken through the array A. Allowable strides are 1 and -1. They indicate whether a subset of A is 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 if B( I ) = A( INDEX( I ) ) for I=1,N1+N2, then B will 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 INTEGER
  • N2 β€” 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 first N1 elements of A contain a list of numbers which are sorted in either ascending or descending order. Likewise for the final N2 elements.
  • STRD1 β€” STRD1 is INTEGER
  • STRD2 β€” STRD2 is INTEGER; these are the strides to be taken through the array A. Allowable strides are 1 and -1. They indicate whether a subset of A is 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 if B( I ) = A( INDEX( I ) ) for I=1,N1+N2, then B will 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