lamrg#
Functions
-
void slamrg(const INT n1, const INT n2, const f32 *A, const INT dtrd1, const INT dtrd2, INT *index)#
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
inn1The length of the first sorted list.
inn2The length of the second sorted list.
inADouble precision array, dimension (n1+n2). The first n1 elements contain a list sorted in ascending or descending order. Likewise for the final n2 elements.
indtrd1Stride through the first subset of A. 1 = ascending, -1 = descending.
indtrd2Stride through the second subset of A. 1 = ascending, -1 = descending.
outindexInteger array, dimension (n1+n2). On exit, a permutation with 0-based indices such that if B[i] = A[index[i]] for i=0,…,n1+n2-1, then B is sorted in ascending order.
void slamrg(
const INT n1,
const INT n2,
const f32* A,
const INT dtrd1,
const INT dtrd2,
INT* index
);
Functions
-
void dlamrg(const INT n1, const INT n2, const f64 *A, const INT dtrd1, const INT dtrd2, INT *index)#
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
inn1The length of the first sorted list.
inn2The length of the second sorted list.
inADouble precision array, dimension (n1+n2). The first n1 elements contain a list sorted in ascending or descending order. Likewise for the final n2 elements.
indtrd1Stride through the first subset of A. 1 = ascending, -1 = descending.
indtrd2Stride through the second subset of A. 1 = ascending, -1 = descending.
outindexInteger array, dimension (n1+n2). On exit, a permutation with 0-based indices such that if B[i] = A[index[i]] for i=0,…,n1+n2-1, then B is sorted in ascending order.
void dlamrg(
const INT n1,
const INT n2,
const f64* A,
const INT dtrd1,
const INT dtrd2,
INT* index
);