SpM Handbook 1.2.4
Loading...
Searching...
No Matches
c_spm_sort.c File Reference
#include "common.h"

Go to the source code of this file.

Functions

static void c_spmSortNoDof (spmatrix_t *spm)
 This routine sorts the single dof spm matrix.
 
static void c_spm_sort_multidof_csx_values (const spmatrix_t *spm, const spm_complex32_t *values, spm_complex32_t *newval)
 Apply the permutations on the values array for a CSX spm The values array holds the permutation indexes of the new values array.
 
static void c_spm_sort_multidof_ijv_values (const spmatrix_t *spm, const spm_complex32_t *values, spm_complex32_t *newval)
 Apply the permutations on the values array fon an IJV spm. The values array holds the permutation indexes of the new values array.
 
static void c_spmSortMultidof (spmatrix_t *spm)
 This routine sorts the multiple dof spm matrix.
 
void c_spmSort (spmatrix_t *spm)
 This routine sorts the spm matrix.
 

Detailed Description

SParse Matrix package precision dependent sort routines.

Version
1.2.4
Author
Mathieu Faverge
Tony Delarue
Alycia Lisito
Date
2024-06-25
Generated arithmetic file from /builds/2mk6rsew/0/fpruvost/spm/src/z_spm_sort.c, normal z -> c, Fri Nov 29 11:34:29 2024

Definition in file c_spm_sort.c.

Function Documentation

◆ c_spm_sort_multidof_csx_values()

static void c_spm_sort_multidof_csx_values ( const spmatrix_t spm,
const spm_complex32_t values,
spm_complex32_t newval 
)
static

Apply the permutations on the values array for a CSX spm The values array holds the permutation indexes of the new values array.

Parameters
[in]spmThe pointer to the spm.
[in]valuesThe original values array.
[in,out]newvalThe new values array with the correct permutations. Must be allocated before this routine.

Definition at line 123 of file c_spm_sort.c.

References spmatrix_s::baseval, spmatrix_s::colptr, spmatrix_s::dof, spmatrix_s::dofs, spmatrix_s::fmttype, spmatrix_s::loc2glob, spmatrix_s::n, spmatrix_s::replicated, spmatrix_s::rowptr, SpmCSC, and spmatrix_s::values.

Referenced by c_spmSortMultidof().

◆ c_spm_sort_multidof_ijv_values()

static void c_spm_sort_multidof_ijv_values ( const spmatrix_t spm,
const spm_complex32_t values,
spm_complex32_t newval 
)
static

Apply the permutations on the values array fon an IJV spm. The values array holds the permutation indexes of the new values array.

Parameters
[in]spmThe pointer to the spm.
[in]valuesThe original values array.
[in,out]newvalThe new values array with the correct permutations. Must be allocated before this routine.

Definition at line 180 of file c_spm_sort.c.

References spmatrix_s::baseval, spmatrix_s::colptr, spmatrix_s::dof, spmatrix_s::dofs, spmatrix_s::nnz, spmatrix_s::rowptr, and spmatrix_s::values.

Referenced by c_spmSortMultidof().