![]() |
GHOST
1.1.2
General, Hybrid, and Optimized Sparse Toolkit
|
#include "ghost/config.h"
#include "ghost/types.h"
#include "ghost/sparsemat.h"
#include "ghost/context.h"
#include "ghost/util.h"
#include "ghost/locality.h"
Macros | |
#define | _GNU_SOURCE |
Functions | |
static int | ghost_cmp_entsperrow (const void *a, const void *b, void *arg) |
ghost_error | ghost_sparsemat_perm_sort (ghost_context *ctx, ghost_sparsemat *mat, ghost_lidx scope) |
Create a matrix permutation based on row length sorting within a given scope. More... | |
#define _GNU_SOURCE |
|
static |
ghost_error ghost_sparsemat_perm_sort | ( | ghost_context * | ctx, |
ghost_sparsemat * | mat, | ||
ghost_lidx | scope | ||
) |
Create a matrix permutation based on row length sorting within a given scope.
[out] | ctx | The context in which to store the permutations. |
[in] | mat | The unpermuted SELL-1-1 source sparse matrix. |
[in] | scope | The sorting scope. |