DLASRT(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

okay bestie, welcome to DLASRT(3) from the Library Functions Manual πŸ’… this is the page for the routine that sorts numbers, and yes it’s giving main character energy.

🌸 NAME 🌸

this page is literally about /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dlasrt.f β€” that’s the whole NAME section, no cap.

✨ SYNOPSIS ✨

🧚 Functions/Subroutines 🧚

  • subroutine DLASRT (id, n, d, info) β€” DLASRT sorts numbers in increasing or decreasing order. slay.

πŸ’– Function/Subroutine Documentation πŸ’–

subroutine DLASRT (character id, integer n, double precision, dimension( * )
       d, integer info)

DLASRT sorts numbers in increasing or decreasing order. periodt.

🌟 Purpose 🌟

so the whole point, bestie: sort the numbers in D in increasing order if ID = 'I', or in decreasing order if ID = 'D'. it uses Quick Sort, but reverting to Insertion sort on arrays of size <= 20. also, heads up: the dimension of STACK limits N to about 2**32. that’s the vibe.

πŸŽ€ Parameters πŸŽ€

πŸ¦‹ ID πŸ¦‹

ID is CHARACTER*1.

  • = 'I': sort D in increasing order;
  • = 'D': sort D in decreasing order.

πŸ¦‹ N πŸ¦‹

N is INTEGER. it’s the length of the array D.

πŸ¦‹ D πŸ¦‹

D is DOUBLE PRECISION array, dimension (N).

on entry, it’s 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.

πŸ¦‹ INFO πŸ¦‹

INFO is INTEGER.

  • = 0: successful exit
  • < 0: if INFO = -i, the i-th argument had an illegal value

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 87 of file dlasrt.f.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for LAPACK from the source code.

mwah πŸ’‹ β€” this page is from LAPACK, Version 3.12.0, and the footer path /home/abui...RC/dlasrt.f(3). no date on the footer, bestie, so that’s the whole cute sign-off. 🫢

πŸ“¦ where this page comes from