GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
densemat.cpp File Reference
#include "ghost/densemat.h"
#include "ghost/densemat_cm.h"
#include "ghost/densemat_rm.h"
#include "ghost/util.h"
#include <string>
#include <sstream>
Include dependency graph for densemat.cpp:

Macros

#define _XOPEN_SOURCE   500
 
#define PASTER(x, y)   x ## _ ## y
 
#define EVALUATOR(x, y)   PASTER(x,y)
 
#define CM_FUNCNAME(fun)   EVALUATOR(ghost_densemat_cm,fun)
 
#define RM_FUNCNAME(fun)   EVALUATOR(ghost_densemat_rm,fun)
 
#define CALL_DENSEMAT_FUNC_NORET(ret, vec, func,...)
 

Functions

ghost_error ghost_densemat_string (char **str, ghost_densemat *x)
 Creates a string of the densemat's contents. More...
 

Macro Definition Documentation

#define _XOPEN_SOURCE   500
#define CALL_DENSEMAT_FUNC_NORET (   ret,
  vec,
  func,
  ... 
)
Value:
if (vec->traits.storage == GHOST_DENSEMAT_COLMAJOR) {\
ret = CM_FUNCNAME(func)(__VA_ARGS__);\
} else {\
ret = RM_FUNCNAME(func)(__VA_ARGS__);\
}
#define CM_FUNCNAME(fun)
Definition: densemat.cpp:12
Column-major storage (as in Fortran).
Definition: densemat.h:103
#define RM_FUNCNAME(fun)
Definition: densemat.cpp:13
#define CM_FUNCNAME (   fun)    EVALUATOR(ghost_densemat_cm,fun)
#define EVALUATOR (   x,
 
)    PASTER(x,y)
#define PASTER (   x,
 
)    x ## _ ## y
#define RM_FUNCNAME (   fun)    EVALUATOR(ghost_densemat_rm,fun)