coefinit.h

Allocation and initialisation of the coeficient of the solver matrix.

Summary
coefinit.hAllocation and initialisation of the coeficient of the solver matrix.
Functions declarations
CoefMatrix_AllocateAllocate matrix coefficients in coeftab and ucoeftab.
CoefMatrix_InitInit coeftab and ucoeftab coefficients.
CoefMatrix_FreeFree the solver matrix coefficient tabular : coeftab and ucoeftab.

Functions declarations

CoefMatrix_Allocate

void CoefMatrix_Allocate (SopalinParam *sopar,
SolverMatrix *datacode,
pthread_mutex_t *mutex,
INT factotype,
INT me)

Allocate matrix coefficients in coeftab and ucoeftab.

Should be first called with me = -1 to allocated coeftab.  Then, should be called with me set to thread ID to allocate column blocks coefficients arrays.

Parameters

datacodesolverMatrix
factotypefactorization type (LU, LLT ou LDLT)
methread number.  (-1 for first call, from main thread.  >=0 to allocate column blocks assigned to each thread.)

CoefMatrix_Init

void CoefMatrix_Init (SolverMatrix *datacode,
sopthread_barrier_t *barrier,
INT me,
INT *iparm,
FLOAT **transcsc,
Sopalin_Data_t *sopalin_data)

Init coeftab and ucoeftab coefficients.

Parameters

datacodesolverMatrix
barrierBarrier used for thread synchronisation.
meThread ID
iparmInteger parameters array.
transcscvecteur transcsc
sopalin_data<Sopalin_Data_t> structure for NUMA version.

CoefMatrix_Free

void CoefMatrix_Free (SopalinParam *sopar,
SolverMatrix *datacode,
INT factotype)

Free the solver matrix coefficient tabular : coeftab and ucoeftab.

WARNING: Call it with one unnique thread.

Parameters

datacodesolverMatrix
factotypefactorisation type (API_FACT)
void CoefMatrix_Allocate (SopalinParam *sopar,
SolverMatrix *datacode,
pthread_mutex_t *mutex,
INT factotype,
INT me)
Allocate matrix coefficients in coeftab and ucoeftab.
void CoefMatrix_Init (SolverMatrix *datacode,
sopthread_barrier_t *barrier,
INT me,
INT *iparm,
FLOAT **transcsc,
Sopalin_Data_t *sopalin_data)
Init coeftab and ucoeftab coefficients.
void CoefMatrix_Free (SopalinParam *sopar,
SolverMatrix *datacode,
INT factotype)
Free the solver matrix coefficient tabular : coeftab and ucoeftab.
enum API_FACT
Factorization modes (index IPARM_FACTORISATION_TYPE)
Close