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 2359 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 2379 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 2403 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 2417 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 2572 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 2603 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 2624 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 2693 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 2711 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 2721 of file misc.c. References SCIP_RealArray::maxusedidx, and NULL. Referenced by SCIPgetRealarrayMaxIdx().
creates a dynamic array of int values
Definition at line 2731 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 2751 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 2774 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 2788 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 2943 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 2974 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 2995 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 3063 of file misc.c. References SCIPintarrayGetVal(), and SCIPintarraySetVal(). Referenced by SCIPincIntarrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 3075 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 3085 of file misc.c. References SCIP_IntArray::maxusedidx, and NULL. Referenced by SCIPgetIntarrayMaxIdx().
creates a dynamic array of bool values
Definition at line 3096 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 3116 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 3140 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 3154 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 3311 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 3342 of file misc.c. References FALSE, SCIP_BoolArray::firstidx, SCIP_BoolArray::maxusedidx, NULL, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPgetBoolarrayVal(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolRound(), SCIPsolSetVal(), solGetArrayVal(), solIncArrayVal(), and solUnlinkVar().
sets value of entry in dynamic array
Definition at line 3363 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 3431 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 3441 of file misc.c. References SCIP_BoolArray::maxusedidx, and NULL. Referenced by SCIPgetBoolarrayMaxIdx().
creates a dynamic array of pointer values
Definition at line 3452 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 3472 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 3495 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 3509 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 3664 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 3695 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 3716 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 3784 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 3794 of file misc.c. References SCIP_PtrArray::maxusedidx, and NULL. Referenced by SCIPgetPtrarrayMaxIdx(). |