CoinUtils 2.11.10
Loading...
Searching...
No Matches
Macros | Functions
CoinOslC.h File Reference
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "CoinHelperFunctions.hpp"
#include <stddef.h>
#include <assert.h>
+ Include dependency graph for CoinOslC.h:

Go to the source code of this file.

Macros

#define CLP_OSL   0
 
#define C_EKK_GO_SPARSE   200
 
#define SPARSE_UPDATE
 
#define NO_SHIFT
 
#define c_ekkscpy_0_1(s, ival, array)   CoinFillN(array, s, ival)
 
#define c_ekks1cpy(n, marr1, marr2)   CoinMemcpyN(marr1, n, marr2)
 
#define SLACK_VALUE   -1.0
 
#define C_EKK_REMOVE_LINK(hpiv, hin, link, ipivot)
 
#define C_EKK_ADD_LINK(hpiv, nzi, link, npr)
 
#define SHIFT_INDEX(limit)   (limit)
 
#define UNSHIFT_INDEX(limit)   (limit)
 
#define SHIFT_REF(arr, ind)   (arr)[ind]
 
#define NOT_ZERO(x)   ((x) != 0.0)
 
#define SWAP(type, _x, _y)
 
#define UNROLL_LOOP_BODY1(code)
 
#define UNROLL_LOOP_BODY2(code)
 
#define UNROLL_LOOP_BODY4(code)
 

Functions

int c_ekkbtrn (const EKKfactinfo *fact, double *dwork1, int *mpt, int first_nonzero)
 
int c_ekkbtrn_ipivrw (const EKKfactinfo *fact, double *dwork1, int *mpt, int ipivrw, int *spare)
 
int c_ekketsj (EKKfactinfo *fact, double *dwork1, int *mpt2, double dalpha, int orig_nincol, int npivot, int *nuspikp, const int ipivrw, int *spare)
 
int c_ekkftrn (const EKKfactinfo *fact, double *dwork1, double *dpermu, int *mpt, int numberNonZero)
 
int c_ekkftrn_ft (EKKfactinfo *fact, double *dwork1, int *mpt, int *nincolp)
 
void c_ekkftrn2 (EKKfactinfo *fact, double *dwork1, double *dpermu1, int *mpt1, int *nincolp, double *dwork1_ft, int *mpt_ft, int *nincolp_ft)
 
int c_ekklfct (EKKfactinfo *fact)
 
int c_ekkslcf (const EKKfactinfo *fact)
 
void c_ekkscpy (int n, const int *marr1, int *marr2)
 
void c_ekkdcpy (int n, const double *marr1, double *marr2)
 
int c_ekk_IsSet (const int *array, int bit)
 
void c_ekk_Set (int *array, int bit)
 
void c_ekk_Unset (int *array, int bit)
 
void c_ekkzero (int length, int n, void *array)
 
void c_ekkdzero (int n, double *marray)
 
void c_ekkizero (int n, int *marray)
 
void c_ekkczero (int n, char *marray)
 
void clp_setup_pointers (EKKfactinfo *fact)
 
void clp_memory (int type)
 
double * clp_double (int number_entries)
 
int * clp_int (int number_entries)
 
voidclp_malloc (int number_entries)
 
void clp_free (void *oldArray)
 

Macro Definition Documentation

◆ CLP_OSL

#define CLP_OSL   0

Definition at line 12 of file CoinOslC.h.

◆ C_EKK_GO_SPARSE

#define C_EKK_GO_SPARSE   200

Definition at line 14 of file CoinOslC.h.

◆ SPARSE_UPDATE

#define SPARSE_UPDATE

Definition at line 28 of file CoinOslC.h.

◆ NO_SHIFT

#define NO_SHIFT

Definition at line 29 of file CoinOslC.h.

◆ c_ekkscpy_0_1

#define c_ekkscpy_0_1 ( s,
ival,
array )   CoinFillN(array, s, ival)

Definition at line 90 of file CoinOslC.h.

◆ c_ekks1cpy

#define c_ekks1cpy ( n,
marr1,
marr2 )   CoinMemcpyN(marr1, n, marr2)

Definition at line 91 of file CoinOslC.h.

◆ SLACK_VALUE

#define SLACK_VALUE   -1.0

Definition at line 99 of file CoinOslC.h.

◆ C_EKK_REMOVE_LINK

#define C_EKK_REMOVE_LINK ( hpiv,
hin,
link,
ipivot )
Value:
{ \
int ipre = link[ipivot].pre; \
int isuc = link[ipivot].suc; \
if (ipre > 0) { \
link[ipre].suc = isuc; \
} \
if (ipre <= 0) { \
} \
if (isuc > 0) { \
link[isuc].pre = ipre; \
} \
}
An ordered pair.
Definition CoinSort.hpp:30

Definition at line 100 of file CoinOslC.h.

◆ C_EKK_ADD_LINK

#define C_EKK_ADD_LINK ( hpiv,
nzi,
link,
npr )
Value:
{ \
int ifiri = hpiv[nzi]; \
hpiv[nzi] = npr; \
link[npr].suc = ifiri; \
link[npr].pre = 0; \
if (ifiri != 0) { \
link[ifiri].pre = npr; \
} \
}

Definition at line 115 of file CoinOslC.h.

◆ SHIFT_INDEX

#define SHIFT_INDEX ( limit)    (limit)

Definition at line 128 of file CoinOslC.h.

◆ UNSHIFT_INDEX

#define UNSHIFT_INDEX ( limit)    (limit)

Definition at line 129 of file CoinOslC.h.

◆ SHIFT_REF

#define SHIFT_REF ( arr,
ind )   (arr)[ind]

Definition at line 130 of file CoinOslC.h.

◆ NOT_ZERO

#define NOT_ZERO ( x)    ((x) != 0.0)

Definition at line 143 of file CoinOslC.h.

◆ SWAP

#define SWAP ( type,
_x,
_y )
Value:
{ \
type _tmp = (_x); \
(_x) = (_y); \
(_y) = _tmp; \
}

Definition at line 146 of file CoinOslC.h.

◆ UNROLL_LOOP_BODY1

#define UNROLL_LOOP_BODY1 ( code)
Value:
{ \
{ \
code \
} \
}

Definition at line 153 of file CoinOslC.h.

◆ UNROLL_LOOP_BODY2

#define UNROLL_LOOP_BODY2 ( code)
Value:
{ \
{ code } { \
code \
} \
}

Definition at line 159 of file CoinOslC.h.

◆ UNROLL_LOOP_BODY4

#define UNROLL_LOOP_BODY4 ( code)
Value:
{ \
{ code } { code } { code } { \
code \
} \
}

Definition at line 165 of file CoinOslC.h.

Function Documentation

◆ c_ekkbtrn()

int c_ekkbtrn ( const EKKfactinfo * fact,
double * dwork1,
int * mpt,
int first_nonzero )

◆ c_ekkbtrn_ipivrw()

int c_ekkbtrn_ipivrw ( const EKKfactinfo * fact,
double * dwork1,
int * mpt,
int ipivrw,
int * spare )

◆ c_ekketsj()

int c_ekketsj ( EKKfactinfo * fact,
double * dwork1,
int * mpt2,
double dalpha,
int orig_nincol,
int npivot,
int * nuspikp,
const int ipivrw,
int * spare )

◆ c_ekkftrn()

int c_ekkftrn ( const EKKfactinfo * fact,
double * dwork1,
double * dpermu,
int * mpt,
int numberNonZero )

◆ c_ekkftrn_ft()

int c_ekkftrn_ft ( EKKfactinfo * fact,
double * dwork1,
int * mpt,
int * nincolp )

◆ c_ekkftrn2()

void c_ekkftrn2 ( EKKfactinfo * fact,
double * dwork1,
double * dpermu1,
int * mpt1,
int * nincolp,
double * dwork1_ft,
int * mpt_ft,
int * nincolp_ft )

◆ c_ekklfct()

int c_ekklfct ( EKKfactinfo * fact)

◆ c_ekkslcf()

int c_ekkslcf ( const EKKfactinfo * fact)

◆ c_ekkscpy()

void c_ekkscpy ( int n,
const int * marr1,
int * marr2 )
inline

Definition at line 61 of file CoinOslC.h.

◆ c_ekkdcpy()

void c_ekkdcpy ( int n,
const double * marr1,
double * marr2 )
inline

Definition at line 65 of file CoinOslC.h.

◆ c_ekk_IsSet()

int c_ekk_IsSet ( const int * array,
int bit )

◆ c_ekk_Set()

void c_ekk_Set ( int * array,
int bit )

◆ c_ekk_Unset()

void c_ekk_Unset ( int * array,
int bit )

◆ c_ekkzero()

void c_ekkzero ( int length,
int n,
void * array )

◆ c_ekkdzero()

void c_ekkdzero ( int n,
double * marray )
inline

Definition at line 74 of file CoinOslC.h.

◆ c_ekkizero()

void c_ekkizero ( int n,
int * marray )
inline

Definition at line 78 of file CoinOslC.h.

◆ c_ekkczero()

void c_ekkczero ( int n,
char * marray )
inline

Definition at line 82 of file CoinOslC.h.

◆ clp_setup_pointers()

void clp_setup_pointers ( EKKfactinfo * fact)

◆ clp_memory()

void clp_memory ( int type)

◆ clp_double()

double * clp_double ( int number_entries)

◆ clp_int()

int * clp_int ( int number_entries)

◆ clp_malloc()

void * clp_malloc ( int number_entries)

◆ clp_free()

void clp_free ( void * oldArray)