All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
misc.h File Reference Detailed Descriptioninternal miscellaneous methods Definition in file misc.h. #include "scip/def.h" #include "blockmemshell/memory.h" #include "scip/type_retcode.h" #include "scip/type_set.h" #include "scip/type_misc.h" #include "scip/pub_misc.h" Go to the source code of this file. Function Documentation
creates a dynamic array of real values
Definition at line 2166 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPcreateRealarray(), SCIPrealarrayCopy(), SCIPsolCreate(), SCIPsolCreateOriginal(), and SCIPsolCreateUnknown().
creates a copy of a dynamic array of real values
Definition at line 2186 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_RealArray::firstidx, SCIP_RealArray::maxusedidx, SCIP_RealArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPrealarrayCreate(), SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPsolCopy().
frees a dynamic array of real values
Definition at line 2210 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreeRealarray(), and SCIPsolFree().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 2224 of file misc.c. References SCIP_RealArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_RealArray::firstidx, MAX, SCIP_RealArray::maxusedidx, MIN, SCIP_RealArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPextendRealarray(), SCIPlpSumRows(), and SCIPrealarraySetVal().
clears a dynamic real array
Definition at line 2379 of file misc.c. References BMSclearMemoryArray, SCIP_RealArray::firstidx, SCIP_RealArray::maxusedidx, SCIP_RealArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPclearRealarray(), and SCIPlpSumRows().
gets value of entry in dynamic array
Definition at line 2410 of file misc.c. References SCIP_RealArray::firstidx, SCIP_RealArray::maxusedidx, NULL, SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPgetRealarrayVal(), SCIPrealarrayIncVal(), solGetArrayVal(), and solIncArrayVal().
sets value of entry in dynamic array
Definition at line 2431 of file misc.c. References SCIP_RealArray::firstidx, MAX, SCIP_RealArray::maxusedidx, MIN, SCIP_RealArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPrealarrayExtend(), SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPrealarrayIncVal(), SCIPsetRealarrayVal(), solIncArrayVal(), and solSetArrayVal().
increases value of entry in dynamic array
Definition at line 2500 of file misc.c. References SCIP_INVALID, SCIP_OKAY, SCIP_Real, SCIPrealarrayGetVal(), and SCIPrealarraySetVal(). Referenced by SCIPincRealarrayVal(), SCIPlpSumRows(), and solIncArrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 2518 of file misc.c. References SCIP_RealArray::minusedidx, and NULL. Referenced by SCIPgetRealarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 2528 of file misc.c. References SCIP_RealArray::maxusedidx, and NULL. Referenced by SCIPgetRealarrayMaxIdx().
creates a dynamic array of int values
Definition at line 2538 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPcreateIntarray(), and SCIPintarrayCopy().
creates a copy of a dynamic array of int values
Definition at line 2558 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_IntArray::firstidx, SCIP_IntArray::maxusedidx, SCIP_IntArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPintarrayCreate(), SCIP_IntArray::vals, and SCIP_IntArray::valssize.
frees a dynamic array of int values
Definition at line 2581 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreeIntarray().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 2595 of file misc.c. References SCIP_IntArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_IntArray::firstidx, MAX, SCIP_IntArray::maxusedidx, MIN, SCIP_IntArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPdebugMessage, SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPextendIntarray(), and SCIPintarraySetVal().
clears a dynamic int array
Definition at line 2750 of file misc.c. References BMSclearMemoryArray, SCIP_IntArray::firstidx, SCIP_IntArray::maxusedidx, SCIP_IntArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPclearIntarray().
gets value of entry in dynamic array
Definition at line 2781 of file misc.c. References SCIP_IntArray::firstidx, SCIP_IntArray::maxusedidx, NULL, SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPgetIntarrayVal(), and SCIPintarrayIncVal().
sets value of entry in dynamic array
Definition at line 2802 of file misc.c. References SCIP_IntArray::firstidx, MAX, SCIP_IntArray::maxusedidx, MIN, SCIP_IntArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPintarrayExtend(), SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPintarrayIncVal(), and SCIPsetIntarrayVal().
increases value of entry in dynamic array
Definition at line 2870 of file misc.c. References SCIPintarrayGetVal(), and SCIPintarraySetVal(). Referenced by SCIPincIntarrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 2882 of file misc.c. References SCIP_IntArray::minusedidx, and NULL. Referenced by SCIPgetIntarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 2892 of file misc.c. References SCIP_IntArray::maxusedidx, and NULL. Referenced by SCIPgetIntarrayMaxIdx().
creates a dynamic array of bool values
Definition at line 2903 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPboolarrayCopy(), SCIPcreateBoolarray(), SCIPsolCreate(), SCIPsolCreateOriginal(), and SCIPsolCreateUnknown().
creates a copy of a dynamic array of bool values
Definition at line 2923 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_BoolArray::firstidx, SCIP_BoolArray::maxusedidx, SCIP_BoolArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPboolarrayCreate(), SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPsolCopy().
frees a dynamic array of bool values
Definition at line 2947 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreeBoolarray(), and SCIPsolFree().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 2961 of file misc.c. References SCIP_BoolArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, BMSmoveMemoryArray, calcGrowSize(), FALSE, SCIP_BoolArray::firstidx, MAX, SCIP_BoolArray::maxusedidx, MIN, SCIP_BoolArray::minusedidx, NULL, SCIP_ALLOC, SCIP_Bool, SCIP_OKAY, SCIPdebugMessage, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPboolarraySetVal(), and SCIPextendBoolarray().
clears a dynamic bool array
Definition at line 3118 of file misc.c. References BMSclearMemoryArray, SCIP_BoolArray::firstidx, SCIP_BoolArray::maxusedidx, SCIP_BoolArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPclearBoolarray(), and solClearArrays().
gets value of entry in dynamic array
Definition at line 3149 of file misc.c. References FALSE, SCIP_BoolArray::firstidx, SCIP_BoolArray::maxusedidx, NULL, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPgetBoolarrayVal(), solGetArrayVal(), solIncArrayVal(), and solUnlinkVar().
sets value of entry in dynamic array
Definition at line 3170 of file misc.c. References FALSE, SCIP_BoolArray::firstidx, MAX, SCIP_BoolArray::maxusedidx, MIN, SCIP_BoolArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPboolarrayExtend(), SCIPdebugMessage, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPsetBoolarrayVal(), solIncArrayVal(), and solSetArrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 3238 of file misc.c. References SCIP_BoolArray::minusedidx, and NULL. Referenced by SCIPgetBoolarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 3248 of file misc.c. References SCIP_BoolArray::maxusedidx, and NULL. Referenced by SCIPgetBoolarrayMaxIdx().
creates a dynamic array of pointer values
Definition at line 3259 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPcreatePtrarray(), and SCIPptrarrayCopy().
creates a copy of a dynamic array of pointer values
Definition at line 3279 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_PtrArray::firstidx, SCIP_PtrArray::maxusedidx, SCIP_PtrArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPptrarrayCreate(), SCIP_PtrArray::vals, and SCIP_PtrArray::valssize.
frees a dynamic array of pointer values
Definition at line 3302 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreePtrarray().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 3316 of file misc.c. References SCIP_PtrArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_PtrArray::firstidx, MAX, SCIP_PtrArray::maxusedidx, MIN, SCIP_PtrArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPdebugMessage, SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPextendPtrarray(), and SCIPptrarraySetVal().
clears a dynamic pointer array
Definition at line 3471 of file misc.c. References BMSclearMemoryArray, SCIP_PtrArray::firstidx, SCIP_PtrArray::maxusedidx, SCIP_PtrArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPclearPtrarray().
gets value of entry in dynamic array
Definition at line 3502 of file misc.c. References SCIP_PtrArray::firstidx, SCIP_PtrArray::maxusedidx, NULL, SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPgetPtrarrayVal().
sets value of entry in dynamic array
Definition at line 3523 of file misc.c. References SCIP_PtrArray::firstidx, MAX, SCIP_PtrArray::maxusedidx, MIN, SCIP_PtrArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPptrarrayExtend(), SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPsetPtrarrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 3591 of file misc.c. References SCIP_PtrArray::minusedidx, and NULL. Referenced by SCIPgetPtrarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 3601 of file misc.c. References SCIP_PtrArray::maxusedidx, and NULL. Referenced by SCIPgetPtrarrayMaxIdx(). |