<commit_before>/* Note that LAPACKINDEX is not 'int' only for building MEX files. */
#ifndef LAPACKINDEX
#define LAPACKINDEX int
#endif

void ap_local_functions(double* restrict x, double* restrict y, LAPACKINDEX quad_points,
                        double* restrict ref_functions);

void ap_local_gradients(double* restrict x, double* restrict y, LAPACKINDEX quad_points,
                        double* restrict ref_dx, double* restrict ref_dy);

void ap_local_hessians(double* restrict x, double* restrict y, LAPACKINDEX quad_points,
                       double* restrict ref_dxx, double* restrict ref_dxy,
                       double* restrict ref_dyy);

void ap_global_maps(double* restrict x, double* restrict y, double* restrict C,
                    double* restrict B, double* restrict b, double* restrict Th);

void ap_global_functions(double* restrict C, double* restrict ref_values,
                         LAPACKINDEX quad_points, double* restrict values);

void ap_global_gradients(double* restrict C, double* restrict B,
                         double* restrict ref_dx, double* restrict ref_dy,
                         LAPACKINDEX quad_points,
                         double* restrict dx, double* restrict dy);

void ap_global_hessians(double* restrict C, double* restrict Th,
                        double* restrict ref_dxx, double* restrict ref_dxy,
                        double* restrict ref_dyy, LAPACKINDEX quad_points,
                        double* restrict dxx, double* restrict dxy,
                        double* restrict dyy);

void ap_matrix_mass(double* restrict C, double* restrict B,
                    double* restrict ref_functions, double* restrict weights,
                    LAPACKINDEX quad_points, double* restrict mass);

void ap_matrix_stiffness(double* restrict C, double* restrict B,
                         double* restrict ref_dx, double* restrict ref_dy,
                         double* restrict weights,
                         LAPACKINDEX quad_points, double* restrict stiffness);

void ap_matrix_biharmonic(double* restrict C, double* restrict B,
                          double* restrict Th,
                          double* restrict ref_dxx, double* restrict ref_dxy,
                          double* restrict ref_dyy, double* restrict weights,
                          LAPACKINDEX quad_points, double* restrict biharmonic);

#undef LAPACKINDEX
<commit_msg>BUG removed extraneous #undef so that this header file can be used by MEX files<commit_after>/* Note that LAPACKINDEX is not 'int' only for building MEX files. */
#ifndef LAPACKINDEX
#define LAPACKINDEX int
#endif

void ap_local_functions(double* restrict x, double* restrict y, LAPACKINDEX quad_points,
                        double* restrict ref_functions);

void ap_local_gradients(double* restrict x, double* restrict y, LAPACKINDEX quad_points,
                        double* restrict ref_dx, double* restrict ref_dy);

void ap_local_hessians(double* restrict x, double* restrict y, LAPACKINDEX quad_points,
                       double* restrict ref_dxx, double* restrict ref_dxy,
                       double* restrict ref_dyy);

void ap_global_maps(double* restrict x, double* restrict y, double* restrict C,
                    double* restrict B, double* restrict b, double* restrict Th);

void ap_global_functions(double* restrict C, double* restrict ref_values,
                         LAPACKINDEX quad_points, double* restrict values);

void ap_global_gradients(double* restrict C, double* restrict B,
                         double* restrict ref_dx, double* restrict ref_dy,
                         LAPACKINDEX quad_points,
                         double* restrict dx, double* restrict dy);

void ap_global_hessians(double* restrict C, double* restrict Th,
                        double* restrict ref_dxx, double* restrict ref_dxy,
                        double* restrict ref_dyy, LAPACKINDEX quad_points,
                        double* restrict dxx, double* restrict dxy,
                        double* restrict dyy);

void ap_matrix_mass(double* restrict C, double* restrict B,
                    double* restrict ref_functions, double* restrict weights,
                    LAPACKINDEX quad_points, double* restrict mass);

void ap_matrix_stiffness(double* restrict C, double* restrict B,
                         double* restrict ref_dx, double* restrict ref_dy,
                         double* restrict weights,
                         LAPACKINDEX quad_points, double* restrict stiffness);

void ap_matrix_biharmonic(double* restrict C, double* restrict B,
                          double* restrict Th,
                          double* restrict ref_dxx, double* restrict ref_dxy,
                          double* restrict ref_dyy, double* restrict weights,
                          LAPACKINDEX quad_points, double* restrict biharmonic);

void multiply_by_diagonal(const int rows, const int cols,
                          double* restrict diagonal, double* restrict matrix);

{'fraction_non_alphanumeric': 0.061483538278460925, 'fraction_numerical': 0.0, 'mean_word_length': 2.2326923076923078, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6090122', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1201, 'n_words': 445}