SpM Handbook 1.2.4
|
#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. | |
SParse Matrix package precision dependent sort routines.
Definition in file c_spm_sort.c.
|
static |
Apply the permutations on the values array for a CSX spm The values array holds the permutation indexes of the new values array.
[in] | spm | The pointer to the spm. |
[in] | values | The original values array. |
[in,out] | newval | The 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().
|
static |
Apply the permutations on the values array fon an IJV spm. The values array holds the permutation indexes of the new values array.
[in] | spm | The pointer to the spm. |
[in] | values | The original values array. |
[in,out] | newval | The 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().