GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Macros | Functions
bincrs.h File Reference

Types and functions for reading binary CRS files. More...

#include "config.h"
#include "types.h"
#include "error.h"
#include "context.h"
#include "sparsemat.h"
#include <stdio.h>
Include dependency graph for bincrs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ghost_bincrs_header_t
 The header of a sparse matrix file. More...
 

Macros

#define GHOST_BINCRS_SIZE_HEADER   44
 The header consumes 44 bytes. More...
 
#define GHOST_BINCRS_SIZE_RPT_EL   8
 One rpt element is 8 bytes. More...
 
#define GHOST_BINCRS_SIZE_COL_EL   8
 One col element is 8 bytes. More...
 
#define GHOST_BINCRS_LITTLE_ENDIAN   0
 Indicates that the file is stored in little endianess. More...
 
#define GHOST_BINCRS_SYMM_GENERAL   GHOST_SPARSEMAT_SYMM_GENERAL
 
#define GHOST_BINCRS_SYMM_SYMMETRIC   GHOST_SPARSEMAT_SYMM_SYMMETRIC
 
#define GHOST_BINCRS_SYMM_SKEW_SYMMETRIC   GHOST_SPARSEMAT_SYMM_SKEW_SYMMETRIC
 
#define GHOST_BINCRS_SYMM_HERMITIAN   GHOST_SPARSEMAT_SYMM_HERMITIAN
 
#define GHOST_BINCRS_DT_FLOAT   GHOST_DT_FLOAT
 
#define GHOST_BINCRS_DT_DOUBLE   GHOST_DT_DOUBLE
 
#define GHOST_BINCRS_DT_REAL   GHOST_DT_REAL
 
#define GHOST_BINCRS_DT_COMPLEX   GHOST_DT_COMPLEX
 
#define GHOST_SPARSEMAT_ROWFUNC_BINCRS_ROW_GETDIM   -4
 

Functions

int ghost_sparsemat_rowfunc_bincrs (ghost_gidx row, ghost_lidx *rowlen, ghost_gidx *col, void *val, void *arg)
 
ghost_error ghost_bincrs_header_read (ghost_bincrs_header_t *header, char *path)
 

Detailed Description

Types and functions for reading binary CRS files.

Author
Moritz Kreutzer morit.nosp@m.z.kr.nosp@m.eutze.nosp@m.r@fa.nosp@m.u.de

Macro Definition Documentation

#define GHOST_BINCRS_DT_COMPLEX   GHOST_DT_COMPLEX
#define GHOST_BINCRS_DT_DOUBLE   GHOST_DT_DOUBLE
#define GHOST_BINCRS_DT_FLOAT   GHOST_DT_FLOAT
#define GHOST_BINCRS_DT_REAL   GHOST_DT_REAL
#define GHOST_BINCRS_LITTLE_ENDIAN   0

Indicates that the file is stored in little endianess.

#define GHOST_BINCRS_SIZE_COL_EL   8

One col element is 8 bytes.

#define GHOST_BINCRS_SIZE_HEADER   44

The header consumes 44 bytes.

#define GHOST_BINCRS_SIZE_RPT_EL   8

One rpt element is 8 bytes.

#define GHOST_BINCRS_SYMM_GENERAL   GHOST_SPARSEMAT_SYMM_GENERAL
#define GHOST_BINCRS_SYMM_HERMITIAN   GHOST_SPARSEMAT_SYMM_HERMITIAN
#define GHOST_BINCRS_SYMM_SKEW_SYMMETRIC   GHOST_SPARSEMAT_SYMM_SKEW_SYMMETRIC
#define GHOST_BINCRS_SYMM_SYMMETRIC   GHOST_SPARSEMAT_SYMM_SYMMETRIC
#define GHOST_SPARSEMAT_ROWFUNC_BINCRS_ROW_GETDIM   -4

Function Documentation

ghost_error ghost_bincrs_header_read ( ghost_bincrs_header_t header,
char *  path 
)

Here is the call graph for this function:

int ghost_sparsemat_rowfunc_bincrs ( ghost_gidx  row,
ghost_lidx rowlen,
ghost_gidx col,
void *  val,
void *  arg 
)
Parameters
row
rowlen
col
val
Returns

If called with row #GHOST_SPARSEMAT_ROWFUNC_BINCRS_ROW_INIT, the parameter val has to be a ghost_sparsemat_rowfunc_bincrs_initargs * with the according information filled in. The parameter col has to be a ghost_gidx[2] in which the number of rows and columns will be stored.

Here is the call graph for this function: