PaStiX Handbook  6.3.2
extendVector.h
Go to the documentation of this file.
1 /**
2  *
3  * @file extendVector.h
4  *
5  * PaStiX analyse header for extend vector structure.
6  *
7  * @copyright 1998-2023 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
8  * Univ. Bordeaux. All rights reserved.
9  *
10  * @version 6.3.2
11  * @author Pascal Henon
12  * @author Mathieu Faverge
13  * @date 2023-07-21
14  *
15  * @addtogroup blend_dev_extint
16  * @{
17  * This module contains all subroutines to manage the extend int vector
18  * arrays. This structure manage a vector of integer automatically extensible
19  * when elements are added. This is used in the simulation algorithm to store
20  * the available tasks per worker.
21  *
22  **/
23 #ifndef _extendvector_h_
24 #define _extendvector_h_
25 
26 /**
27  * @brief The extend integer array structure.
28 */
29 typedef struct ExtendVectorINT_s {
30  pastix_int_t vecsize; /**< The size of the vector */
31  pastix_int_t eltnbr; /**< The number of elements stored */
32  pastix_int_t *inttab; /**< The actual array with the elements */
34 
43 
44 #endif /* _extendvector_h_ */
45 
46 /**
47  *@}
48  */
BEGIN_C_DECLS typedef int pastix_int_t
Definition: datatypes.h:51
pastix_int_t * inttab
Definition: extendVector.h:32
pastix_int_t eltnbr
Definition: extendVector.h:31
pastix_int_t vecsize
Definition: extendVector.h:30
pastix_int_t extendint_Size(const ExtendVectorINT *)
Return the number of element stored in the vector.
Definition: extendVector.c:112
void extendint_incr(ExtendVectorINT *)
Increment the number of element stored.
Definition: extendVector.c:189
void extendint_Clear(ExtendVectorINT *)
Cleanup the vector.
Definition: extendVector.c:220
pastix_int_t extendint_Read(const ExtendVectorINT *, pastix_int_t)
Return the element of index eltnum.
Definition: extendVector.c:136
pastix_int_t * extendint_Init(ExtendVectorINT *, pastix_int_t)
Initialize the extendVector structure with the initial size given.
Definition: extendVector.c:45
void extendint_Add(ExtendVectorINT *, pastix_int_t)
Add an element elt to the end of the vector.
Definition: extendVector.c:90
void extendint_ToSize(ExtendVectorINT *, pastix_int_t)
Reallocate the vector to the given size.
Definition: extendVector.c:159
void extendint_Exit(ExtendVectorINT *)
Free the extendVector structure.
Definition: extendVector.c:66
struct ExtendVectorINT_s ExtendVectorINT
The extend integer array structure.
The extend integer array structure.
Definition: extendVector.h:29