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

#define GK_MKARRAY2CSR (   PRFX,
  TYPE 
)
Value:
/*************************************************************************/\\
/**************************************************************************/\
void PRFX ## array2csr(TYPE n, TYPE range, TYPE *array, TYPE *ptr, TYPE *ind)\
{\
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);\
}
for(size_t i=1;i< poses.size();++i)
#define MAKECSR(i, n, a)
Definition: gk_macros.h:73
Definition: numpy.h:543
int n
#define TYPE
Definition: benchFFT.cpp:31
float * ptr
#define SHIFTCSR(i, n, a)
Definition: gk_macros.h:80

Definition at line 14 of file gk_mkutils.h.

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



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:30