GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sparsemat_perm_sort.c File Reference
#include "ghost/config.h"
#include "ghost/types.h"
#include "ghost/sparsemat.h"
#include "ghost/context.h"
#include "ghost/util.h"
#include "ghost/locality.h"
Include dependency graph for sparsemat_perm_sort.c:

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...
 

Macro Definition Documentation

#define _GNU_SOURCE

Function Documentation

static int ghost_cmp_entsperrow ( const void *  a,
const void *  b,
void *  arg 
)
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.

Parameters
[out]ctxThe context in which to store the permutations.
[in]matThe unpermuted SELL-1-1 source sparse matrix.
[in]scopeThe sorting scope.
Returns
GHOST_SUCCESS on success or an error indicator.

Here is the call graph for this function: