MIDAPACK - MIcrowave Data Analysis PACKage
1.1b
Parallel software tools for high performance CMB DA analysis
|
Declaration of subroutines handling sets of indices or sets of values. More...
Go to the source code of this file.
Functions | |
int | card (int *A, int nA) |
void | merge (int *A, int nA, int *B) |
int | card_or (int *A1, int n1, int *A2, int n2) |
int | card_and (int *A1, int n1, int *A2, int n2) |
int | map_and (int *A1, int n1, int *A2, int n2, int *mapA1andA2) |
Compute map A1 and A2 / A1. | |
int | set_or (int *A1, int n1, int *A2, int n2, int *A1orA2) |
int | set_and (int *A1, int n1, int *A2, int n2, int *A1andA2) |
void | subset2map (int *A, int nA, int *subA, int nsubA) |
Declaration of subroutines handling sets of indices or sets of values.
Definition in file als.h.
int card | ( | int * | A, |
int | nA | ||
) |
void merge | ( | int * | A, |
int | nA, | ||
int * | B | ||
) |
Merge redundant elements. Fill a new array containing elements of A, merging redundant elements. The array A should be in ascending order with possible redundancy. The array B has to be allocated.
nA | number of elemnets in A |
A | set of indices |
B | output array |
int map_and | ( | int * | A1, |
int | n1, | ||
int * | A2, | ||
int | n2, | ||
int * | mapA1andA2 | ||
) |
void subset2map | ( | int * | A, |
int | nA, | ||
int * | subA, | ||
int | nsubA | ||
) |
Transform a subset into a mapper array Parse a subset and replace element by his index in the larger set. A and subA should be two monotony sets in ascending ordered. subA has to belong to A.
A | a set of indices(monotony) |
nA | number of elemnets in A |
subA | a subset of A(monotony) |
nsubA | number of elemnets in A |