util.h File Reference

#include "machdefs.h"
#include "config.h"
#include "sortrus_common.h"
#include "allocrus.h"
#include "urandom.h"
#include "zeit.h"
#include "bgetopt.h"

Include dependency graph for util.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define EGLPNUM_SWAP(a, b, t)   ((EGlpNumCopy(t,a)),(EGlpNumCopy(a,b)),(EGlpNumCopy(b,t)))
#define FALSE   0
#define ILL_OURABS(a)   (((a) >= 0) ? (a) : -(a))
#define ILL_SWAP(a, b, t)   (((t)=(a)),((a)=(b)),((b)=(t)))
#define ILL_UTIL_STR(new, str)
#define QSLIB_INTERFACE   extern
#define TRUE   1

Typedefs

typedef char ILLbool

Functions

int ILLutil_array_index (char *list[], int n, const char *name)
int ILLutil_index (const char *list[], const char *name)
unsigned int ILLutil_nextprime (unsigned int x)
double ILLutil_norm_sqr (double *v, int len)
double ILLutil_our_ceil (double x)
double ILLutil_our_floor (double x)
double ILLutil_our_frac (double x)
int ILLutil_our_gcd (int a, int b)
int ILLutil_our_lcm (int a, int b)
int ILLutil_our_log2 (int a)
char * ILLutil_str (const char *str)
int ILLutil_strcasecmp (const char *s1, const char *s2)
const char * ILLutil_strchr (const char *s, int c)
int ILLutil_strncasecmp (const char *s1, const char *s2, size_t n)


Define Documentation

#define EGLPNUM_SWAP ( a,
b,
t   )     ((EGlpNumCopy(t,a)),(EGlpNumCopy(a,b)),(EGlpNumCopy(b,t)))

Definition at line 83 of file util.h.

Referenced by dense_swap(), elim(), move_pivot_col(), move_pivot_row(), and remove_row_nz().

#define FALSE   0

Definition at line 79 of file util.h.

#define ILL_OURABS (  )     (((a) >= 0) ? (a) : -(a))

Definition at line 85 of file util.h.

#define ILL_SWAP ( a,
b,
t   )     (((t)=(a)),((a)=(b)),((b)=(t)))

Definition at line 82 of file util.h.

Referenced by dense_swap(), getCmd(), ILLutil_double_perm_quicksort(), ILLutil_EGlpNum_perm_quicksort(), ILLutil_int_array_quicksort(), ILLutil_int_perm_quicksort(), ILLutil_our_gcd(), ILLutil_str_perm_quicksort(), move_pivot_col(), move_pivot_row(), remove_row_nz(), select_EGlpNum_split(), select_split(), and transpose().

#define ILL_UTIL_STR ( new,
str   ) 

Value:

{ new = ILLutil_str(str); \
      if (str != NULL) { ILL_CHECKnull(new, "out of memeory"); } }

Definition at line 96 of file util.h.

Referenced by convert_rawlpdata_to_lpdata(), fix_names(), get_row_col_name(), ILLlib_addcol(), ILLlib_readbasis(), ILLwrite_mps(), QScopy_prob(), QSget_objname(), QSget_prob(), QSget_probname(), read_mps_name(), read_mps_objname(), read_mps_refrow(), read_problem_name(), set_field_name(), transferColNamesLowerUpperIntMarker(), and transferSenseRhsRowNames().

#define QSLIB_INTERFACE   extern

Definition at line 40 of file util.h.

#define TRUE   1

Definition at line 80 of file util.h.


Typedef Documentation

typedef char ILLbool

Definition at line 77 of file util.h.


Function Documentation

int ILLutil_array_index ( char *  list[],
int  n,
const char *  name 
)

Definition at line 252 of file util.c.

References NULL.

Referenced by del_row_or_col().

int ILLutil_index ( const char *  list[],
const char *  name 
)

Definition at line 236 of file util.c.

References NULL.

Referenced by add_bounds(), getCmd(), ILLlib_readbasis(), and read_mps_section().

unsigned int ILLutil_nextprime ( unsigned int  x  ) 

Definition at line 101 of file util.c.

References isprime().

Referenced by grow_symboltab(), and ILLsymboltab_create().

Here is the call graph for this function:

double ILLutil_norm_sqr ( double *  v,
int  len 
)

Definition at line 183 of file util.c.

double ILLutil_our_ceil ( double  x  ) 

double ILLutil_our_floor ( double  x  ) 

double ILLutil_our_frac ( double  x  ) 

int ILLutil_our_gcd ( int  a,
int  b 
)

int ILLutil_our_lcm ( int  a,
int  b 
)

int ILLutil_our_log2 ( int  a  ) 

Definition at line 195 of file util.c.

Referenced by ILLprice_build_heap().

char* ILLutil_str ( const char *  str  ) 

Definition at line 269 of file util.c.

References ILL_SAFE_MALLOC_no_rval, and NULL.

int ILLutil_strcasecmp ( const char *  s1,
const char *  s2 
)

Definition at line 221 of file util.c.

Referenced by read_minmax(), and read_problem_name().

const char* ILLutil_strchr ( const char *  s,
int  c 
)

Definition at line 208 of file util.c.

References NULL.

Referenced by is_marker_line().

int ILLutil_strncasecmp ( const char *  s1,
const char *  s2,
size_t  n 
)

Definition at line 228 of file util.c.


Generated on Thu Mar 29 09:48:54 2012 for QSopt_ex by  doxygen 1.4.7