Macros
gk_mkutils.h File Reference

Templates for various utility routines. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GK_MKARRAY2CSR(PRFX, TYPE)
 
#define GK_MKARRAY2CSR_PROTO(PRFX, TYPE)   void PRFX ## array2csr(TYPE n, TYPE range, TYPE *array, TYPE *ptr, TYPE *ind);\
 

Detailed Description

Templates for various utility routines.


Date
Started 5/28/07
Author
George
Version
$Id: gk_mkutils.h 10711 2011-08-31 22:23:04Z karypis $ 

Definition in file gk_mkutils.h.

Macro Definition Documentation

◆ GK_MKARRAY2CSR

#define GK_MKARRAY2CSR (   PRFX,
  TYPE 
)
Value:
/*************************************************************************/\\
/**************************************************************************/\
void PRFX ## array2csr(TYPE n, TYPE range, TYPE *array, TYPE *ptr, TYPE *ind)\
{\
TYPE i;\
for (i=0; i<=range; i++)\
ptr[i] = 0;\
for (i=0; i<n; i++)\
ptr[array[i]]++;\
\
/* Compute the ptr, ind structure */\
MAKECSR(i, range, ptr);\
for (i=0; i<n; i++)\
ind[ptr[array[i]]++] = i;\
SHIFTCSR(i, range, ptr);\
}

Definition at line 14 of file gk_mkutils.h.

◆ GK_MKARRAY2CSR_PROTO

#define GK_MKARRAY2CSR_PROTO (   PRFX,
  TYPE 
)    void PRFX ## array2csr(TYPE n, TYPE range, TYPE *array, TYPE *ptr, TYPE *ind);\

Definition at line 36 of file gk_mkutils.h.

ind
std::vector< int > ind
Definition: Slicing_stdvector_cxx11.cpp:1
gtsam::range
Double_ range(const Point2_ &p, const Point2_ &q)
Definition: slam/expressions.h:30
n
int n
Definition: BiCGSTAB_simple.cpp:1
TYPE
#define TYPE
Definition: benchFFT.cpp:31
array
Definition: numpy.h:821
i
int i
Definition: BiCGSTAB_step_by_step.cpp:9
for
for(size_t i=1;i< poses.size();++i)
Definition: doc/Code/VisualISAMExample.cpp:7


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:47