SpM Handbook 1.2.4
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spm_update_compute_fields.c File Reference
#include "common.h"

Go to the source code of this file.

Functions

static void spm_ucf_variadic_shm (spmatrix_t *spm)
 Compute the expended field for variadic dof in the shared memory case.
 
static void spm_ucf_variadic_mpi_csx (spmatrix_t *spm, const spm_int_t *colptr, const spm_int_t *rowptr)
 Compute the expended field for variadic dof in the distributed case for CSC/CSR formats.
 
static void spm_ucf_variadic_mpi_ijv (spmatrix_t *spm)
 Compute the expended field for variadic dof in the distributed case for IJV format.
 
static void spm_ucf_variadic_mpi (spmatrix_t *spm)
 Compute the expended field for variadic dof in the distributed case.
 
SPM basic subroutines
void spmUpdateComputedFields (spmatrix_t *spm)
 Update all the computed fields based on the static values stored.
 

Detailed Description

SPM routine to update the computed fields in the data structure.

Version
1.2.4
Author
Pierre Ramet
Mathieu Faverge
Tony Delarue
Alycia Lisito
Date
2024-06-25

Definition in file spm_update_compute_fields.c.

Function Documentation

◆ spm_ucf_variadic_shm()

static void spm_ucf_variadic_shm ( spmatrix_t spm)
static

Compute the expended field for variadic dof in the shared memory case.

Parameters
[in,out]spmThe sparse matrix for which nexp and nnzexp must be computed.

Definition at line 34 of file spm_update_compute_fields.c.

References spmatrix_s::baseval, spmatrix_s::colptr, spmatrix_s::dofs, spmatrix_s::fmttype, spmatrix_s::loc2glob, spmatrix_s::n, spmatrix_s::nexp, spmatrix_s::nnz, spmatrix_s::nnzexp, spmatrix_s::replicated, spmatrix_s::rowptr, SpmCSC, SpmCSR, and SpmIJV.

Referenced by spmUpdateComputedFields().

◆ spm_ucf_variadic_mpi_csx()

static void spm_ucf_variadic_mpi_csx ( spmatrix_t spm,
const spm_int_t colptr,
const spm_int_t rowptr 
)
static

Compute the expended field for variadic dof in the distributed case for CSC/CSR formats.

Parameters
[in,out]spmThe sparse matrix for which nexp and nnzexp must be computed.
[in]colptrThe colptr/rowptr array to adapt to the CSC computations
[in]rowptrThe rowptr/colptr array to adapt to the CSC computations

Definition at line 104 of file spm_update_compute_fields.c.

References spmatrix_s::baseval, spmatrix_s::dofs, spmatrix_s::loc2glob, spmatrix_s::n, spmatrix_s::nexp, and spmatrix_s::nnzexp.

Referenced by spm_ucf_variadic_mpi().

◆ spm_ucf_variadic_mpi_ijv()

static void spm_ucf_variadic_mpi_ijv ( spmatrix_t spm)
static

Compute the expended field for variadic dof in the distributed case for IJV format.

Parameters
[in,out]spmThe sparse matrix for which nexp and nnzexp must be computed.

Definition at line 147 of file spm_update_compute_fields.c.

References spmatrix_s::baseval, spmatrix_s::colptr, spmatrix_s::dofs, spmatrix_s::loc2glob, spmatrix_s::n, spmatrix_s::nexp, spmatrix_s::nnz, spmatrix_s::nnzexp, and spmatrix_s::rowptr.

Referenced by spm_ucf_variadic_mpi().

◆ spm_ucf_variadic_mpi()

static void spm_ucf_variadic_mpi ( spmatrix_t spm)
static

Compute the expended field for variadic dof in the distributed case.

Parameters
[in,out]spmThe sparse matrix for which nexp and nnzexp must be computed.

Definition at line 190 of file spm_update_compute_fields.c.

References spmatrix_s::colptr, spmatrix_s::dofs, spmatrix_s::fmttype, spmatrix_s::loc2glob, spmatrix_s::nexp, spmatrix_s::nnzexp, spmatrix_s::rowptr, spm_ucf_variadic_mpi_csx(), spm_ucf_variadic_mpi_ijv(), SpmCSC, SpmCSR, and SpmIJV.

Referenced by spmUpdateComputedFields().