Go to the documentation of this file. 10 #ifndef _GK_MKUTILS_H_ 11 #define _GK_MKUTILS_H_ 14 #define GK_MKARRAY2CSR(PRFX, TYPE)\ 18 void PRFX ## array2csr(TYPE n, TYPE range, TYPE *array, TYPE *ptr, TYPE *ind)\ 22 for (i=0; i<=range; i++)\ 29 MAKECSR(i, range, ptr);\ 31 ind[ptr[array[i]]++] = i;\ 32 SHIFTCSR(i, range, ptr);\ 36 #define GK_MKARRAY2CSR_PROTO(PRFX, TYPE)\ 37 void PRFX ## array2csr(TYPE n, TYPE range, TYPE *array, TYPE *ptr, TYPE *ind);\
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:08