separate C header file to dense / sparse