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

Go to the source code of this file.

Functions

static void s_spmSortNoDof (spmatrix_t *spm)
 This routine sorts the single dof spm matrix.
 
static void s_spm_sort_multidof_csx_values (const spmatrix_t *spm, const float *values, float *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 s_spm_sort_multidof_ijv_values (const spmatrix_t *spm, const float *values, float *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 s_spmSortMultidof (spmatrix_t *spm)
 This routine sorts the multiple dof spm matrix.
 
void s_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 -> s, Fri Nov 29 11:34:30 2024

Definition in file s_spm_sort.c.

Function Documentation

◆ s_spm_sort_multidof_csx_values()

static void s_spm_sort_multidof_csx_values ( const spmatrix_t spm,
const float *  values,
float *  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 s_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 s_spmSortMultidof().

◆ s_spm_sort_multidof_ijv_values()

static void s_spm_sort_multidof_ijv_values ( const spmatrix_t spm,
const float *  values,
float *  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 s_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 s_spmSortMultidof().