PaStiX Handbook 6.4.0
Loading...
Searching...
No Matches
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-2024 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
8 * Univ. Bordeaux. All rights reserved.
9 *
10 * @version 6.4.0
11 * @author Pascal Henon
12 * @author Mathieu Faverge
13 * @date 2024-07-05
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*/
29typedef 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
pastix_int_t eltnbr
pastix_int_t vecsize
pastix_int_t extendint_Size(const ExtendVectorINT *)
Return the number of element stored in the vector.
void extendint_incr(ExtendVectorINT *)
Increment the number of element stored.
void extendint_Clear(ExtendVectorINT *)
Cleanup the vector.
pastix_int_t extendint_Read(const ExtendVectorINT *, pastix_int_t)
Return the element of index eltnum.
pastix_int_t * extendint_Init(ExtendVectorINT *, pastix_int_t)
Initialize the extendVector structure with the initial size given.
void extendint_Add(ExtendVectorINT *, pastix_int_t)
Add an element elt to the end of the vector.
void extendint_ToSize(ExtendVectorINT *, pastix_int_t)
Reallocate the vector to the given size.
void extendint_Exit(ExtendVectorINT *)
Free the extendVector structure.
struct ExtendVectorINT_s ExtendVectorINT
The extend integer array structure.
The extend integer array structure.