float128_dstruct.c File Reference

#include "config.h"
#include "float128_iqsutil.h"
#include "float128_dstruct.h"
#include "float128_qsopt.h"
#include "float128_lpdefs.h"

Include dependency graph for float128_dstruct.c:

Go to the source code of this file.

Defines

#define float128_DEBUG_HEAP   0
#define float128_HEAP_D   3
#define float128_HEAP_DOWN(x)   (((x)*float128_HEAP_D)+1)
#define float128_HEAP_UP(x)   (((x)-1)/float128_HEAP_D)

Functions

int float128_ILLheap_build (float128_heap *const h, int const nelems, float128 *key)
void float128_ILLheap_delete (float128_heap *const h, int const ix)
int float128_ILLheap_findmin (float128_heap *const h)
void float128_ILLheap_free (float128_heap *const h)
void float128_ILLheap_init (float128_heap *const h)
void float128_ILLheap_insert (float128_heap *const h, int const ix)
void float128_ILLheap_modify (float128_heap *const h, int const ix)
void float128_ILLmatrix_free (float128_ILLmatrix *A)
void float128_ILLmatrix_init (float128_ILLmatrix *A)
void float128_ILLmatrix_prt (EGioFile_t *fd, float128_ILLmatrix *A)
int float128_ILLsvector_alloc (float128_svector *s, int nzcnt)
int float128_ILLsvector_copy (const float128_svector *s_in, float128_svector *s_out)
void float128_ILLsvector_free (float128_svector *s)
void float128_ILLsvector_init (float128_svector *s)
static int float128_maxchild (float128_heap *h, int hloc)
static int float128_siftdown (float128_heap *h, int hloc, int ix)
static int float128_siftup (float128_heap *h, int hloc, int ix)

Variables

static int TRACE = 0


Define Documentation

#define float128_DEBUG_HEAP   0

Definition at line 119 of file float128_dstruct.c.

#define float128_HEAP_D   3

Definition at line 121 of file float128_dstruct.c.

#define float128_HEAP_DOWN (  )     (((x)*float128_HEAP_D)+1)

Definition at line 123 of file float128_dstruct.c.

#define float128_HEAP_UP (  )     (((x)-1)/float128_HEAP_D)

Definition at line 122 of file float128_dstruct.c.


Function Documentation

int float128_ILLheap_build ( float128_heap *const   h,
int const   nelems,
float128 *  key 
)

Definition at line 365 of file float128_dstruct.c.

References float128_heap::entry, float128_ILLheap_free(), float128_siftdown(), float128_heap::hexist, ILL_IFTRACE, ILL_IFTRACE2, ILL_RETURN, ILL_SAFE_MALLOC, float128_heap::key, float128_heap::loc, float128_heap::maxsize, and float128_heap::size.

Referenced by float128_ILLprice_build_heap().

Here is the call graph for this function:

void float128_ILLheap_delete ( float128_heap *const   h,
int const   ix 
)

Definition at line 309 of file float128_dstruct.c.

References float128_heap::entry, float128_siftdown(), float128_siftup(), ILL_IFTRACE, float128_heap::loc, and float128_heap::size.

Here is the call graph for this function:

int float128_ILLheap_findmin ( float128_heap *const   h  ) 

Definition at line 348 of file float128_dstruct.c.

References float128_heap::entry, float128_heap::hexist, and float128_heap::size.

void float128_ILLheap_free ( float128_heap *const   h  ) 

Definition at line 413 of file float128_dstruct.c.

References float128_heap::entry, float128_heap::hexist, ILL_IFFREE, float128_heap::loc, float128_heap::maxsize, and float128_heap::size.

Referenced by float128_ILLheap_build(), and float128_ILLprice_free_heap().

void float128_ILLheap_init ( float128_heap *const   h  ) 

Definition at line 356 of file float128_dstruct.c.

References float128_heap::entry, float128_heap::hexist, float128_heap::key, float128_heap::loc, and NULL.

void float128_ILLheap_insert ( float128_heap *const   h,
int const   ix 
)

Definition at line 267 of file float128_dstruct.c.

References float128_siftup(), ILL_IFTRACE, float128_heap::key, and float128_heap::size.

Here is the call graph for this function:

void float128_ILLheap_modify ( float128_heap *const   h,
int const   ix 
)

Definition at line 286 of file float128_dstruct.c.

References float128_siftdown(), float128_siftup(), ILL_IFTRACE, and float128_heap::loc.

Here is the call graph for this function:

void float128_ILLmatrix_free ( float128_ILLmatrix A  ) 

Definition at line 456 of file float128_dstruct.c.

References float128_ILLmatrix_init(), ILL_IFFREE, float128_ILLmatrix::matbeg, float128_ILLmatrix::matcnt, float128_ILLmatrix::matind, and float128_ILLmatrix::matval.

Referenced by float128_add_col(), float128_add_row(), float128_ILLlp_sinfo_free(), and float128_ILLlpdata_free().

Here is the call graph for this function:

void float128_ILLmatrix_init ( float128_ILLmatrix A  ) 

Definition at line 439 of file float128_dstruct.c.

References float128_ILLmatrix::matbeg, float128_ILLmatrix::matcnt, float128_ILLmatrix::matcols, float128_ILLmatrix::matcolsize, float128_ILLmatrix::matfree, float128_ILLmatrix::matind, float128_ILLmatrix::matrows, float128_ILLmatrix::matsize, and float128_ILLmatrix::matval.

Referenced by float128_add_col(), float128_add_row(), float128_ILLlp_sinfo_init(), float128_ILLlpdata_init(), and float128_ILLmatrix_free().

void float128_ILLmatrix_prt ( EGioFile_t *  fd,
float128_ILLmatrix A 
)

Definition at line 470 of file float128_dstruct.c.

References float128_ILLmatrix::matrows, and NULL.

Referenced by float128_convert_rawlpdata_to_lpdata().

int float128_ILLsvector_alloc ( float128_svector s,
int  nzcnt 
)

Definition at line 63 of file float128_dstruct.c.

References float128_svector::coef, ILL_IFFREE, ILL_RETURN, ILL_SAFE_MALLOC, float128_svector::indx, and float128_svector::nzcnt.

int float128_ILLsvector_copy ( const float128_svector s_in,
float128_svector s_out 
)

Definition at line 88 of file float128_dstruct.c.

References float128_svector::coef, float128_ILLsvector_alloc(), ILL_CLEANUP_IF, ILL_RETURN, float128_svector::indx, and float128_svector::nzcnt.

Here is the call graph for this function:

void float128_ILLsvector_free ( float128_svector s  ) 

Definition at line 54 of file float128_dstruct.c.

References float128_svector::coef, ILL_IFFREE, float128_svector::indx, and float128_svector::nzcnt.

Referenced by float128_free_internal_lpinfo(), float128_ILLbasis_tableau_row(), float128_ILLfactor_free_factor_work(), float128_ILLprice_build_dsteep_norms(), float128_ILLprice_build_psteep_norms(), float128_ILLprice_get_dsteep_norms(), float128_ILLprice_get_newnorms(), and float128_ILLsimplex().

void float128_ILLsvector_init ( float128_svector s  ) 

Definition at line 46 of file float128_dstruct.c.

References float128_svector::coef, float128_svector::indx, and float128_svector::nzcnt.

static int float128_maxchild ( float128_heap h,
int  hloc 
)

Definition at line 191 of file float128_dstruct.c.

References float128_heap::entry, float128_HEAP_D, float128_ILL_MINDOUBLE, ILL_IFTRACE2, float128_heap::key, and float128_heap::size.

Referenced by float128_siftdown().

static int float128_siftdown ( float128_heap h,
int  hloc,
int  ix 
)

Definition at line 163 of file float128_dstruct.c.

References float128_heap::entry, float128_maxchild(), ILL_IFTRACE2, float128_heap::key, and float128_heap::loc.

Referenced by float128_ILLheap_build(), float128_ILLheap_delete(), and float128_ILLheap_modify().

Here is the call graph for this function:

static int float128_siftup ( float128_heap h,
int  hloc,
int  ix 
) [static]

Definition at line 137 of file float128_dstruct.c.

References float128_heap::entry, float128_HEAP_UP, ILL_IFTRACE2, float128_heap::key, and float128_heap::loc.

Referenced by float128_ILLheap_delete(), float128_ILLheap_insert(), and float128_ILLheap_modify().


Variable Documentation

int TRACE = 0 [static]

Definition at line 24 of file float128_dstruct.c.


Generated on Thu Mar 29 09:35:41 2012 for QSopt_ex by  doxygen 1.4.7