#include <cstdio>
#include <math.h>
#include "CoinTime.hpp"
#include "misc_util.hpp"
Include dependency graph for misc_util.cpp:
Go to the source code of this file.
Functions | |
void | cpp_fprintvecINT (FILE *file, char const *vecstr, const int *x, const int n, const int numberAcross) |
void | cpp_fprintvecINT (FILE *file, char const *vecstr, const int *x, const int n) |
void | cpp_printvecINT (char const *vecstr, const int *x, const int n) |
void | cpp_fprintmatINT (FILE *file, char const *vecstr, const int **x, const int m, const int n) |
void | cpp_fprintmatINT (FILE *file, char const *vecstr, int **x, const int m, const int n) |
void | cpp_printmatINT (char const *vecstr, const int **x, const int m, const int n) |
void | cpp_printmatINT (char const *vecstr, int **x, const int m, const int n) |
void | cpp_printvecCHAR (char const *vecstr, const char *x, const int n) |
void | cpp_printvecCHAR (char const *vecstr, char *x, const int n) |
void | cpp_fprintvecCHAR (FILE *file, char const *vecstr, const char *x, const int n) |
void | cpp_fprintvecCHAR (FILE *file, char const *vecstr, char *x, const int n) |
void | cpp_fprintvecDBL (FILE *file, char const *vecstr, const double *x, const int n, const int numberAcross, char *form) |
void | cpp_fprintvecDBL (FILE *file, char const *vecstr, const double *x, const int n, const int numberAcross, const int print_pos, const int decimals) |
void | cpp_fprintvecDBLg (FILE *file, char const *vecstr, const double *x, const int n, const int numberAcross, const int print_pos, const int print_digits) |
void | cpp_fprintvecDBL (FILE *file, char const *vecstr, const double *x, const int n) |
void | cpp_printvecDBL (char const *vecstr, const double *x, const int n) |
void | cpp_printmatDBL (char const *vecstr, const double **x, const int m, const int n) |
void | cpp_printmatDBL (char const *vecstr, double **x, const int m, const int n) |
void | cpp_fprintmatDBL (FILE *file, char const *vecstr, const double **x, const int m, const int n) |
void | cpp_fprintmatDBL (FILE *file, char const *vecstr, double **x, const int m, const int n) |
double | cpp_genalea (int *x0) |
int | cpp_partition_dec (const int q, const int r, int *key, double *value) |
void | cpp_quicksort_dec (const int k, const int l, int *key, double *value) |
int | cpp_partitionINT_dec (const int q, const int r, int *key, int *value) |
void | cpp_quicksortINT_dec (const int k, const int l, int *key, int *value) |
int | cpp_partition_inc (const int q, const int r, int *key, double *value) |
void | cpp_quicksort_inc (const int k, const int l, int *key, double *value) |
int | cpp_partitionINT_inc (const int q, const int r, int *key, int *value) |
void | cpp_quicksortINT_inc (const int k, const int l, int *key, int *value) |
void | get_barQ (double **Q, const double *b, const int n, double **mat) |
void | print_barQ (FILE *f, char *header, double **Q, const double *b, const int n) |
void | get_vec_from_matbar (double **mat, const int dim, double *v, const int include_entry_00) |
void | get_mat_from_vec (const double *v, const int n, const double entry_00, double **mat) |
void | print_mat_from_vec (FILE *f, char *header, const double *v, const int n, const double entry_00) |
void | get_LPsol_vec_from_vvT (const double *v, const int n, double *vec, const int include_entry_00) |
void | get_mat_from_vvT (const double *v, const int n, double **mat) |
void | print_mat_from_vvT (FILE *f, char *header, const double *v, const int n) |
void | fprintvecmat (FILE *f, char *header, const double *v, const int n, const double entry_00) |
void | check_prod_row_barQ (double **Q, const double *b, const int n, const OsiSolverInterface *si, const int from) |
void cpp_fprintvecINT | ( | FILE * | file, | |
char const * | vecstr, | |||
const int * | x, | |||
const int | n, | |||
const int | numberAcross | |||
) |
Definition at line 131 of file misc_util.cpp.
Referenced by cpp_fprintvecINT(), and cpp_printvecINT().
void cpp_fprintvecINT | ( | FILE * | file, | |
char const * | vecstr, | |||
const int * | x, | |||
const int | n | |||
) |
void cpp_printvecINT | ( | char const * | vecstr, | |
const int * | x, | |||
const int | n | |||
) |
Definition at line 160 of file misc_util.cpp.
References cpp_fprintvecINT().
Referenced by CutGen::sparsify(), and CutGen::sparsify_new().
void cpp_fprintmatINT | ( | FILE * | file, | |
char const * | vecstr, | |||
const int ** | x, | |||
const int | m, | |||
const int | n | |||
) |
Definition at line 166 of file misc_util.cpp.
void cpp_fprintmatINT | ( | FILE * | file, | |
char const * | vecstr, | |||
int ** | x, | |||
const int | m, | |||
const int | n | |||
) |
Definition at line 184 of file misc_util.cpp.
void cpp_printmatINT | ( | char const * | vecstr, | |
const int ** | x, | |||
const int | m, | |||
const int | n | |||
) |
Definition at line 201 of file misc_util.cpp.
void cpp_printmatINT | ( | char const * | vecstr, | |
int ** | x, | |||
const int | m, | |||
const int | n | |||
) |
Definition at line 217 of file misc_util.cpp.
void cpp_printvecCHAR | ( | char const * | vecstr, | |
const char * | x, | |||
const int | n | |||
) |
Definition at line 233 of file misc_util.cpp.
void cpp_printvecCHAR | ( | char const * | vecstr, | |
char * | x, | |||
const int | n | |||
) |
Definition at line 251 of file misc_util.cpp.
void cpp_fprintvecCHAR | ( | FILE * | file, | |
char const * | vecstr, | |||
const char * | x, | |||
const int | n | |||
) |
Definition at line 269 of file misc_util.cpp.
void cpp_fprintvecCHAR | ( | FILE * | file, | |
char const * | vecstr, | |||
char * | x, | |||
const int | n | |||
) |
Definition at line 287 of file misc_util.cpp.
void cpp_fprintvecDBL | ( | FILE * | file, | |
char const * | vecstr, | |||
const double * | x, | |||
const int | n, | |||
const int | numberAcross, | |||
char * | form | |||
) |
Definition at line 305 of file misc_util.cpp.
Referenced by cpp_fprintvecDBL(), cpp_fprintvecDBLg(), and cpp_printvecDBL().
void cpp_fprintvecDBL | ( | FILE * | file, | |
char const * | vecstr, | |||
const double * | x, | |||
const int | n, | |||
const int | numberAcross, | |||
const int | print_pos, | |||
const int | decimals | |||
) |
Definition at line 327 of file misc_util.cpp.
void cpp_fprintvecDBLg | ( | FILE * | file, | |
char const * | vecstr, | |||
const double * | x, | |||
const int | n, | |||
const int | numberAcross, | |||
const int | print_pos, | |||
const int | print_digits | |||
) |
Definition at line 337 of file misc_util.cpp.
void cpp_fprintvecDBL | ( | FILE * | file, | |
char const * | vecstr, | |||
const double * | x, | |||
const int | n | |||
) |
Definition at line 347 of file misc_util.cpp.
void cpp_printvecDBL | ( | char const * | vecstr, | |
const double * | x, | |||
const int | n | |||
) |
Definition at line 353 of file misc_util.cpp.
References cpp_fprintvecDBL().
Referenced by _dsyevx_index_range_wrapper(), _dsyevx_value_range_wrapper(), CutGen::add_v_cut(), CutGen::sparsify(), and CutGen::sparsify_new().
void cpp_printmatDBL | ( | char const * | vecstr, | |
const double ** | x, | |||
const int | m, | |||
const int | n | |||
) |
Definition at line 359 of file misc_util.cpp.
Referenced by check_prod_row_barQ(), CutGen::sparsify(), and CutGen::sparsify_new().
void cpp_printmatDBL | ( | char const * | vecstr, | |
double ** | x, | |||
const int | m, | |||
const int | n | |||
) |
Definition at line 375 of file misc_util.cpp.
void cpp_fprintmatDBL | ( | FILE * | file, | |
char const * | vecstr, | |||
const double ** | x, | |||
const int | m, | |||
const int | n | |||
) |
Definition at line 391 of file misc_util.cpp.
Referenced by fprintvecmat(), print_barQ(), print_mat_from_vec(), and print_mat_from_vvT().
void cpp_fprintmatDBL | ( | FILE * | file, | |
char const * | vecstr, | |||
double ** | x, | |||
const int | m, | |||
const int | n | |||
) |
Definition at line 408 of file misc_util.cpp.
double cpp_genalea | ( | int * | x0 | ) |
Definition at line 436 of file misc_util.cpp.
Referenced by CutGen::generateCuts(), CutGen::genSDPcut(), CutGen::sparsify(), and CutGen::sparsify_new().
int cpp_partition_dec | ( | const int | q, | |
const int | r, | |||
int * | key, | |||
double * | value | |||
) |
void cpp_quicksort_dec | ( | const int | k, | |
const int | l, | |||
int * | key, | |||
double * | value | |||
) |
Definition at line 489 of file misc_util.cpp.
References cpp_partition_dec(), and r.
Referenced by CutGen::compareSparsify(), CutGen::generateCuts(), CutGen::sparsify(), and CutGen::sparsify_new().
int cpp_partitionINT_dec | ( | const int | q, | |
const int | r, | |||
int * | key, | |||
int * | value | |||
) |
void cpp_quicksortINT_dec | ( | const int | k, | |
const int | l, | |||
int * | key, | |||
int * | value | |||
) |
Definition at line 557 of file misc_util.cpp.
References cpp_partitionINT_dec(), and r.
Referenced by CutGen::generateCuts().
int cpp_partition_inc | ( | const int | q, | |
const int | r, | |||
int * | key, | |||
double * | value | |||
) |
void cpp_quicksort_inc | ( | const int | k, | |
const int | l, | |||
int * | key, | |||
double * | value | |||
) |
int cpp_partitionINT_inc | ( | const int | q, | |
const int | r, | |||
int * | key, | |||
int * | value | |||
) |
void cpp_quicksortINT_inc | ( | const int | k, | |
const int | l, | |||
int * | key, | |||
int * | value | |||
) |
void get_barQ | ( | double ** | Q, | |
const double * | b, | |||
const int | n, | |||
double ** | mat | |||
) |
Definition at line 736 of file misc_util.cpp.
References np.
Referenced by check_prod_row_barQ(), and print_barQ().
void print_barQ | ( | FILE * | f, | |
char * | header, | |||
double ** | Q, | |||
const double * | b, | |||
const int | n | |||
) |
void get_vec_from_matbar | ( | double ** | mat, | |
const int | dim, | |||
double * | v, | |||
const int | include_entry_00 | |||
) |
void get_mat_from_vec | ( | const double * | v, | |
const int | n, | |||
const double | entry_00, | |||
double ** | mat | |||
) |
Definition at line 800 of file misc_util.cpp.
References indexQ.
Referenced by check_prod_row_barQ(), fprintvecmat(), and print_mat_from_vec().
void print_mat_from_vec | ( | FILE * | f, | |
char * | header, | |||
const double * | v, | |||
const int | n, | |||
const double | entry_00 | |||
) |
Definition at line 820 of file misc_util.cpp.
References cpp_fprintmatDBL(), get_mat_from_vec(), and np.
void get_LPsol_vec_from_vvT | ( | const double * | v, | |
const int | n, | |||
double * | vec, | |||
const int | include_entry_00 | |||
) |
void get_mat_from_vvT | ( | const double * | v, | |
const int | n, | |||
double ** | mat | |||
) |
void print_mat_from_vvT | ( | FILE * | f, | |
char * | header, | |||
const double * | v, | |||
const int | n | |||
) |
Definition at line 881 of file misc_util.cpp.
References cpp_fprintmatDBL(), get_mat_from_vvT(), and np.
Referenced by CutGen::generateCuts().
void fprintvecmat | ( | FILE * | f, | |
char * | header, | |||
const double * | v, | |||
const int | n, | |||
const double | entry_00 | |||
) |
Definition at line 901 of file misc_util.cpp.
References cpp_fprintmatDBL(), get_mat_from_vec(), and np.
void check_prod_row_barQ | ( | double ** | Q, | |
const double * | b, | |||
const int | n, | |||
const OsiSolverInterface * | si, | |||
const int | from | |||
) |
Definition at line 923 of file misc_util.cpp.
References cpp_printmatDBL(), e, get_barQ(), get_mat_from_vec(), k, and np.