Detailed Description
miscellaneous methods for arrays
Functions | |
SCIP_RETCODE | SCIPcomputeArraysIntersection (int *array1, int narray1, int *array2, int narray2, int *intersectarray, int *nintersectarray) |
void | SCIPcomputeArraysIntersectionInt (int *array1, int narray1, int *array2, int narray2, int *intersectarray, int *nintersectarray) |
void | SCIPcomputeArraysIntersectionPtr (void **array1, int narray1, void **array2, int narray2, SCIP_DECL_SORTPTRCOMP((*ptrcomp)), void **intersectarray, int *nintersectarray) |
SCIP_RETCODE | SCIPcomputeArraysSetminus (int *array1, int narray1, int *array2, int narray2, int *setminusarray, int *nsetminusarray) |
void | SCIPcomputeArraysSetminusInt (int *array1, int narray1, int *array2, int narray2, int *setminusarray, int *nsetminusarray) |
Function Documentation
◆ SCIPcomputeArraysIntersection()
SCIP_RETCODE SCIPcomputeArraysIntersection | ( | int * | array1, |
int | narray1, | ||
int * | array2, | ||
int | narray2, | ||
int * | intersectarray, | ||
int * | nintersectarray | ||
) |
computes set intersection (duplicates removed) of two integer arrays that are ordered ascendingly
computes set intersection (duplicates removed) of two integer arrays that are ordered ascendingly
- Parameters
-
array1 first array (in ascending order) narray1 number of entries of first array array2 second array (in ascending order) narray2 number of entries of second array intersectarray intersection of array1 and array2 (note: it is possible to use array1 for this input argument) nintersectarray pointer to store number of entries of intersection array (note: it is possible to use narray1 for this input argument)
Definition at line 10453 of file misc.c.
References SCIP_OKAY, and SCIPcomputeArraysIntersectionInt().
◆ SCIPcomputeArraysIntersectionInt()
void SCIPcomputeArraysIntersectionInt | ( | int * | array1, |
int | narray1, | ||
int * | array2, | ||
int | narray2, | ||
int * | intersectarray, | ||
int * | nintersectarray | ||
) |
computes set intersection (duplicates removed) of two integer arrays that are ordered ascendingly
- Parameters
-
array1 first array (in ascending order) narray1 number of entries of first array array2 second array (in ascending order) narray2 number of entries of second array intersectarray intersection of array1 and array2 (note: it is possible to use array1 for this input argument) nintersectarray pointer to store number of entries of intersection array (note: it is possible to use narray1 for this input argument)
Definition at line 10470 of file misc.c.
References NULL.
Referenced by detectMinors(), presolRoundConssSOS1(), and SCIPcomputeArraysIntersection().
◆ SCIPcomputeArraysIntersectionPtr()
void SCIPcomputeArraysIntersectionPtr | ( | void ** | array1, |
int | narray1, | ||
void ** | array2, | ||
int | narray2, | ||
SCIP_DECL_SORTPTRCOMP((*ptrcomp)) | , | ||
void ** | intersectarray, | ||
int * | nintersectarray | ||
) |
computes set intersection (duplicates removed) of two void-pointer arrays that are ordered ascendingly
- Parameters
-
array1 pointer to first data array narray1 number of entries of first array array2 pointer to second data array narray2 number of entries of second array intersectarray intersection of array1 and array2 (note: it is possible to use array1 for this input argument) nintersectarray pointer to store number of entries of intersection array (note: it is possible to use narray1 for this input argument)
Definition at line 10523 of file misc.c.
References NULL.
Referenced by exprIsSemicontinuous().
◆ SCIPcomputeArraysSetminus()
SCIP_RETCODE SCIPcomputeArraysSetminus | ( | int * | array1, |
int | narray1, | ||
int * | array2, | ||
int | narray2, | ||
int * | setminusarray, | ||
int * | nsetminusarray | ||
) |
computes set difference (duplicates removed) of two integer arrays that are ordered ascendingly
- Deprecated:
- Switch to SCIPcomputeArraysSetminusInt().
computes set difference (duplicates removed) of two integer arrays that are ordered ascendingly
- Deprecated:
- Switch to SCIPcomputeArraysSetminusInt().
- Parameters
-
array1 first array (in ascending order) narray1 number of entries of first array array2 second array (in ascending order) narray2 number of entries of second array setminusarray array to store entries of array1 that are not an entry of array2 (note: it is possible to use array1 for this input argument) nsetminusarray pointer to store number of entries of setminus array (note: it is possible to use narray1 for this input argument)
Definition at line 10583 of file misc.c.
References SCIP_OKAY, and SCIPcomputeArraysSetminusInt().
◆ SCIPcomputeArraysSetminusInt()
void SCIPcomputeArraysSetminusInt | ( | int * | array1, |
int | narray1, | ||
int * | array2, | ||
int | narray2, | ||
int * | setminusarray, | ||
int * | nsetminusarray | ||
) |
computes set difference (duplicates removed) of two integer arrays that are ordered ascendingly
- Parameters
-
array1 first array (in ascending order) narray1 number of entries of first array array2 second array (in ascending order) narray2 number of entries of second array setminusarray array to store entries of array1 that are not an entry of array2 (note: it is possible to use array1 for this input argument) nsetminusarray pointer to store number of entries of setminus array (note: it is possible to use narray1 for this input argument)
Definition at line 10600 of file misc.c.
References NULL.
Referenced by addBranchingComplementaritiesSOS1(), resetConflictgraphSOS1(), and SCIPcomputeArraysSetminus().